]> granicus.if.org Git - docbook-dsssl/commitdiff
Don't calculate ids where they aren't used; don't put ids on divs because anchors...
authorNorman Walsh <ndw@nwalsh.com>
Wed, 1 Aug 2001 00:44:58 +0000 (00:44 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 1 Aug 2001 00:44:58 +0000 (00:44 +0000)
xsl/html/component.xsl

index 9e393879b4c2bb907e1527f53328866aecd58cb4..ea98b84a2f9b503d2d218abc658eaa585311fa19 100644 (file)
@@ -82,8 +82,7 @@
 <!-- ==================================================================== -->
 
 <xsl:template match="colophon">
-  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-  <div id="{$id}" class="{name(.)}">
+  <div class="{name(.)}">
     <xsl:call-template name="component.separator"/>
     <xsl:call-template name="component.title"/>
     <xsl:call-template name="component.subtitle"/>
 <!-- ==================================================================== -->
 
 <xsl:template match="chapter">
-  <xsl:variable name="id">
-    <xsl:call-template name="object.id"/>
-  </xsl:variable>
-
   <div class="{name(.)}">
     <xsl:call-template name="component.separator"/>
     <xsl:call-template name="chapter.titlepage"/>
 <!-- ==================================================================== -->
 
 <xsl:template match="appendix">
-  <xsl:variable name="id">
-    <xsl:call-template name="object.id"/>
-  </xsl:variable>
-
   <div class="{name(.)}">
     <xsl:call-template name="component.separator"/>
     <xsl:call-template name="appendix.titlepage"/>
 </xsl:template>
 
 <xsl:template match="article/appendix">
-  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
-
   <div class="{name(.)}">
     <xsl:call-template name="section.heading">
       <xsl:with-param name="level" select="2"/>
 <!-- ==================================================================== -->
 
 <xsl:template match="article">
-  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
   <div class="{name(.)}">
     <xsl:call-template name="article.titlepage"/>
     <xsl:if test="$generate.article.toc != '0'">