1 This patch removes a duplicate template from db2latex that was being
2 included (violates strict XSLT, something newer versions of xsltproc don't like)
4 Looks like upstream is inactive for over a year, so I'm putting this quick fix
7 --- db2latex-xsl-0.8pre1+20050310/xsl/common/common.xsl 2005-03-10 23:09:55.639189152 +0100
8 +++ db2latex-xsl-0.8pre1+20050310/xsl/common/common.xsl 2005-03-10 23:10:50.762690340 +0100
10 <xsl:value-of select="count($anc.divs) + number($section.level)"/>
13 -<xsl:template name="question.answer.label">
14 - <xsl:variable name="deflabel">
16 - <xsl:when test="ancestor-or-self::*[@defaultlabel]">
17 - <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]
21 - <xsl:value-of select="$qanda.defaultlabel"/>
26 - <xsl:variable name="label" select="@label"/>
29 - (hnr (hierarchical-number-recursive (normalize "qandadiv") node))
31 - (parsect (ancestor-member node (section-element-list)))
33 - (defnum (if (and %qanda-inherit-numeration%
34 - %section-autolabel%)
35 - (if (node-list-empty? parsect)
36 - (section-autolabel-prefix node)
37 - (section-autolabel parsect))
40 - (hnumber (let loop ((numlist hnr) (number defnum)
41 - (sep (if (equal? defnum "") "" ".")))
45 - (string-append number
47 - (number->string (car numlist)))
49 - (cnumber (child-number (parent node)))
50 - (number (string-append hnumber
51 - (if (equal? hnumber "")
54 - (number->string cnumber))))
58 - <xsl:when test="$deflabel = 'qanda'">
59 - <xsl:call-template name="gentext">
60 - <xsl:with-param name="key">
62 - <xsl:when test="local-name(.) = 'question'">question</xsl:when>
63 - <xsl:when test="local-name(.) = 'answer'">answer</xsl:when>
64 - <xsl:when test="local-name(.) = 'qandadiv'">qandadiv</xsl:when>
65 - <xsl:otherwise>qandaset</xsl:otherwise>
68 - </xsl:call-template>
70 - <xsl:when test="$deflabel = 'label'">
71 - <xsl:value-of select="$label"/>
73 - <xsl:when test="$deflabel = 'number'
74 - and local-name(.) = 'question'">
75 - <xsl:apply-templates select="ancestor::qandaset[1]"
78 - <xsl:when test="ancestor::qandadiv">
79 - <xsl:apply-templates select="ancestor::qandadiv[1]"
81 - <xsl:apply-templates select="ancestor::qandaentry"
85 - <xsl:apply-templates select="ancestor::qandaentry"
96 <xsl:template match="qandaset" mode="number">