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