]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug 2789947, id attribute missing on simplelist fo output.
authorBob Stayton <bobs@sagehill.net>
Mon, 11 May 2009 08:20:40 +0000 (08:20 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 11 May 2009 08:20:40 +0000 (08:20 +0000)
xsl/fo/lists.xsl

index 6d734d6353c699d6648e7a1e7adaa05a2e1215ef..f8ee56ebe1b4a3274856f56d913380a171098070 100644 (file)
 <xsl:template match="simplelist|simplelist[@type='vert']">
   <!-- with no type specified, the default is 'vert' -->
 
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
+
   <xsl:variable name="explicit.table.width">
     <xsl:call-template name="dbfo-attribute">
       <xsl:with-param name="pis"
     </xsl:choose>
   </xsl:variable>
 
-  <fo:table xsl:use-attribute-sets="normal.para.spacing">
+  <fo:table id="{$id}" xsl:use-attribute-sets="normal.para.spacing">
 
     <xsl:choose>
       <xsl:when test="$axf.extensions != 0 or $xep.extensions != 0">
   <!-- if dbchoice PI exists, use that to determine the choice separator -->
   <!-- (that is, equivalent of "and" or "or" in current locale), or literal -->
   <!-- value of "choice" otherwise -->
-  <fo:inline><xsl:variable name="localized-choice-separator">
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
+
+  <fo:inline id="{$id}"><xsl:variable name="localized-choice-separator">
     <xsl:choose>
       <xsl:when test="processing-instruction('dbchoice')">
         <xsl:call-template name="select.choice.separator"/>
 
 <xsl:template match="simplelist[@type='horiz']">
 
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
+
   <xsl:variable name="explicit.table.width">
     <xsl:call-template name="pi.dbfo_list-width"/>
   </xsl:variable>
     </xsl:choose>
   </xsl:variable>
 
-  <fo:table xsl:use-attribute-sets="normal.para.spacing">
+  <fo:table id="{$id}" xsl:use-attribute-sets="normal.para.spacing">
     <xsl:choose>
       <xsl:when test="$axf.extensions != 0 or $xep.extensions != 0">
         <xsl:attribute name="table-layout">auto</xsl:attribute>