1*00b67f09SDavid van Moolenbroek;; Id: patch-db2latex-xsltproc-title-bug,v 1.2 2007/01/12 22:24:20 sra Exp 2*00b67f09SDavid van Moolenbroek;; 3*00b67f09SDavid van Moolenbroek;; This patches around a problem that I don't completely understand, 4*00b67f09SDavid van Moolenbroek;; and which may in fact be an xsltproc bug rather than a db2latex 5*00b67f09SDavid van Moolenbroek;; bug. Symptom is that the generated \title{} contains not only the 6*00b67f09SDavid van Moolenbroek;; book title but also the concatenation of all the chapter titles. 7*00b67f09SDavid van Moolenbroek;; This makes no sense, it doesn't happen with saxon, it doesn't 8*00b67f09SDavid van Moolenbroek;; happen with all versions of xsltproc, and attempts to trace this 9*00b67f09SDavid van Moolenbroek;; with --verbose and <xsl:message/> leave me more wondering whether 10*00b67f09SDavid van Moolenbroek;; it's me or xsltproc that doesn't understand the XSLT pattern 11*00b67f09SDavid van Moolenbroek;; matching rules. 12*00b67f09SDavid van Moolenbroek;; 13*00b67f09SDavid van Moolenbroek;; All that said, the change below prevents the bad behavior and 14*00b67f09SDavid van Moolenbroek;; should be completely harmless, so it will do as a workaround. 15*00b67f09SDavid van Moolenbroek 16*00b67f09SDavid van MoolenbroekIndex: xsl/book-article.mod.xsl 17*00b67f09SDavid van Moolenbroek--- xsl/book-article.mod.xsl.~1~ Tue May 3 21:51:18 2005 18*00b67f09SDavid van Moolenbroek+++ xsl/book-article.mod.xsl Sat May 7 09:00:26 2005 19*00b67f09SDavid van Moolenbroek@@ -87,8 +87,8 @@ 20*00b67f09SDavid van Moolenbroek <xsl:call-template name="generate.latex.book.preamble"/> 21*00b67f09SDavid van Moolenbroek <!-- book:2: output title information --> 22*00b67f09SDavid van Moolenbroek <xsl:text>\title{</xsl:text> 23*00b67f09SDavid van Moolenbroek- <xsl:apply-templates select="title|bookinfo/title"/> 24*00b67f09SDavid van Moolenbroek- <xsl:apply-templates select="subtitle|bookinfo/subtitle"/> 25*00b67f09SDavid van Moolenbroek+ <xsl:apply-templates select="/book/title|/book/bookinfo/title"/> 26*00b67f09SDavid van Moolenbroek+ <xsl:apply-templates select="/book/subtitle|/book/bookinfo/subtitle"/> 27*00b67f09SDavid van Moolenbroek <xsl:text>} </xsl:text> 28*00b67f09SDavid van Moolenbroek <!-- book:3: output author information --> 29*00b67f09SDavid van Moolenbroek <xsl:text>\author{</xsl:text> 30