]> granicus.if.org Git - docbook-dsssl/commitdiff
Added @id to formalpara and some other blocks that were missing it.
authorBob Stayton <bobs@sagehill.net>
Mon, 21 Feb 2005 19:29:21 +0000 (19:29 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 21 Feb 2005 19:29:21 +0000 (19:29 +0000)
xsl/fo/block.xsl

index 185fb0908530e6879eaef380a6e86ca9610b5ea7..3ee8fa208da5b8f71dc70929d2ecc26f3d38c802 100644 (file)
@@ -24,6 +24,9 @@
 
 <xsl:template name="block.object">
   <fo:block>
+    <xsl:if test="@id">
+      <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
+    </xsl:if>
     <xsl:apply-templates/>
   </fo:block>
 </xsl:template>
 
 <xsl:template match="simpara">
   <fo:block xsl:use-attribute-sets="normal.para.spacing">
+    <xsl:if test="@id">
+      <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
+    </xsl:if>
     <xsl:apply-templates/>
   </fo:block>
 </xsl:template>
 
 <xsl:template match="formalpara">
   <fo:block xsl:use-attribute-sets="normal.para.spacing">
+    <xsl:if test="@id">
+      <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
+    </xsl:if>
     <xsl:apply-templates/>
   </fo:block>
 </xsl:template>
 
 <xsl:template match="revhistory">
   <fo:table table-layout="fixed">
+    <xsl:if test="@id">
+      <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
+    </xsl:if>
     <fo:table-column column-number="1" column-width="proportional-column-width(1)"/>
     <fo:table-column column-number="2" column-width="proportional-column-width(1)"/>
     <fo:table-column column-number="3" column-width="proportional-column-width(1)"/>
   <fo:table-row>
     <fo:table-cell>
       <fo:block>
+        <xsl:if test="@id">
+          <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
+        </xsl:if>
         <xsl:if test="$revnumber">
           <xsl:call-template name="gentext">
             <xsl:with-param name="key" select="'Revision'"/>
 
 <xsl:template match="ackno">
   <fo:block xsl:use-attribute-sets="normal.para.spacing">
+    <xsl:if test="@id">
+      <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
+    </xsl:if>
     <xsl:apply-templates/>
   </fo:block>
 </xsl:template>