]> granicus.if.org Git - docbook-dsssl/commitdiff
Support the new generate.id.attributes parameter to prevent generating both div ID...
authorNorman Walsh <ndw@nwalsh.com>
Sun, 10 Mar 2002 22:32:38 +0000 (22:32 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sun, 10 Mar 2002 22:32:38 +0000 (22:32 +0000)
xsl/html/biblio.xsl

index 829b179a188759649475317c7dd9d9329abe7111..ce9bcacdfb8ace5f451d37bf44afcc472fb18d81 100644 (file)
 <!-- ==================================================================== -->
 
 <xsl:template match="bibliography">
-  <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
+  <div class="{name(.)}">
+    <xsl:if test="$generate.id.attributes != 0">
+      <xsl:attribute name="id">
+        <xsl:call-template name="object.id"/>
+      </xsl:attribute>
+    </xsl:if>
 
-  <div id="{$id}" class="{name(.)}">
     <xsl:call-template name="bibliography.titlepage"/>
+
     <xsl:apply-templates/>
+
     <xsl:call-template name="process.footnotes"/>
   </div>
 </xsl:template>
 </xsl:template>
 
 <xsl:template match="revhistory" mode="bibliography.mode">
-  <span class="{name(.)}">
-    <xsl:apply-templates mode="bibliography.mode"/>
-    <xsl:value-of select="$biblioentry.item.separator"/>
-  </span>
+  <!-- suppressed; how could this be represented? -->
 </xsl:template>
 
 <xsl:template match="seriesinfo" mode="bibliography.mode">
 </xsl:template>
 
 <xsl:template match="revhistory" mode="bibliomixed.mode">
-  <span class="{name(.)}">
-    <xsl:apply-templates mode="bibliomixed.mode"/>
-  </span>
+  <!-- suppressed; how could this be represented? -->
 </xsl:template>
 
 <xsl:template match="seriesvolnums" mode="bibliomixed.mode">