summaryrefslogtreecommitdiff
path: root/textproc/db2latex/patches/patch-aa
blob: 4e00934ed2948f25524a4c23560e0f26c3c86042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
$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>