]> granicus.if.org Git - docbook-dsssl/commitdiff
Reorganized templates for clarity
authorNorman Walsh <ndw@nwalsh.com>
Wed, 23 May 2001 20:24:13 +0000 (20:24 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 23 May 2001 20:24:13 +0000 (20:24 +0000)
xsl/html/component.xsl

index fe638f5a54bccecb47ecfc52adbb84686d889192..35f1f4872a53ad3dea06d5880eb9ac8caf972d5c 100644 (file)
   </div>
 </xsl:template>
 
+<xsl:template match="article/appendix">
+  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
+
+  <div id="{$id}" class="{name(.)}">
+    <xsl:call-template name="section.heading">
+      <xsl:with-param name="level" select="2"/>
+      <xsl:with-param name="title">
+        <xsl:apply-templates select="." mode="object.title.markup"/>
+      </xsl:with-param>
+    </xsl:call-template>
+
+    <xsl:apply-templates/>
+  </div>
+</xsl:template>
+
 <xsl:template match="title" mode="appendix.titlepage.recto.mode">
   <xsl:call-template name="component.title">
     <xsl:with-param name="node" select="ancestor::appendix[1]"/>
 <xsl:template match="article/titleabbrev"></xsl:template>
 <xsl:template match="article/subtitle"></xsl:template>
 
-<xsl:template match="article/appendix">
-  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-
-  <div id="{$id}" class="{name(.)}">
-    <xsl:call-template name="section.heading">
-      <xsl:with-param name="level" select="2"/>
-      <xsl:with-param name="title">
-        <xsl:apply-templates select="." mode="title.markup"/>
-      </xsl:with-param>
-    </xsl:call-template>
-
-    <xsl:apply-templates/>
-
-    <xsl:if test="not(ancestor::article)">
-      <xsl:call-template name="process.footnotes"/>
-    </xsl:if>
-  </div>
-</xsl:template>
-
 <!-- ==================================================================== -->
 
 </xsl:stylesheet>