ignored by xsltproc, but the recent version generates an error. - Delete share/xsl only it is emtpy, since it is shared by other xsl packages. Bump PKGREVISION.
58 lines
2.1 KiB
Text
58 lines
2.1 KiB
Text
$NetBSD: patch-aa,v 1.1 2005/11/18 08:04:26 minskim Exp $
|
|
|
|
--- xsl/qandaset.mod.xsl.orig 2004-01-04 05:22:27.000000000 -0800
|
|
+++ xsl/qandaset.mod.xsl
|
|
@@ -363,53 +363,4 @@
|
|
</doc:template>
|
|
<xsl:template match="revhistory" mode="qandatoc.mode"/>
|
|
|
|
-<xsl:template name="question.answer.label">
|
|
- <!-- variable: deflabel -->
|
|
- <xsl:variable name="deflabel">
|
|
- <!-- chck whether someone has a defaultlabel attribute -->
|
|
- <xsl:choose>
|
|
- <xsl:when test="ancestor-or-self::*[@defaultlabel]">
|
|
- <xsl:value-of select="(ancestor-or-self::*[@defaultlabel])[last()]/@defaultlabel"/>
|
|
- </xsl:when>
|
|
- <xsl:otherwise>
|
|
- <xsl:value-of select="latex.qanda.defaultlabel"/>
|
|
- </xsl:otherwise>
|
|
- </xsl:choose>
|
|
- </xsl:variable>
|
|
-
|
|
- <xsl:variable name="label" select="@label"/>
|
|
- <xsl:choose>
|
|
- <xsl:when test="$deflabel = 'qanda'">
|
|
- <xsl:call-template name="gentext">
|
|
- <xsl:with-param name="key">
|
|
- <xsl:choose>
|
|
- <xsl:when test="local-name(.) = 'question'">question</xsl:when>
|
|
- <xsl:when test="local-name(.) = 'answer'">answer</xsl:when>
|
|
- <xsl:when test="local-name(.) = 'qandadiv'">qandadiv</xsl:when>
|
|
- <xsl:otherwise>qandaset</xsl:otherwise>
|
|
- </xsl:choose>
|
|
- </xsl:with-param>
|
|
- </xsl:call-template>
|
|
- </xsl:when>
|
|
- <xsl:when test="$deflabel = 'label'">
|
|
- <xsl:value-of select="$label"/>
|
|
- </xsl:when>
|
|
- <xsl:when test="$deflabel = 'number' and local-name(.) = 'question'">
|
|
- <xsl:apply-templates select="ancestor::qandaset[1]" mode="number"/>
|
|
- <xsl:choose>
|
|
- <xsl:when test="ancestor::qandadiv">
|
|
- <xsl:apply-templates select="ancestor::qandadiv[1]" mode="number"/>
|
|
- <xsl:apply-templates select="ancestor::qandaentry" mode="number"/>
|
|
- </xsl:when>
|
|
- <xsl:otherwise>
|
|
- <xsl:apply-templates select="ancestor::qandaentry" mode="number"/>
|
|
- </xsl:otherwise>
|
|
- </xsl:choose>
|
|
- </xsl:when>
|
|
- <xsl:otherwise>
|
|
- <!-- nothing -->
|
|
- </xsl:otherwise>
|
|
- </xsl:choose>
|
|
-</xsl:template>
|
|
-
|
|
</xsl:stylesheet>
|