]> granicus.if.org Git - docbook-dsssl/commitdiff
Make sure sidebars get IDs so that cross references to them work
authorNorman Walsh <ndw@nwalsh.com>
Sat, 13 May 2006 12:59:54 +0000 (12:59 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Sat, 13 May 2006 12:59:54 +0000 (12:59 +0000)
xsl/fo/block.xsl

index cb449dc5e5ce4af56d4670b3ca3adf0a3f951b43..3ad1e0ed4d4713bf0e87ff4b7c2faebee9b64c10 100644 (file)
     </xsl:call-template>
   </xsl:variable>
 
+  <xsl:variable name="id">
+    <xsl:call-template name="object.id"/>
+  </xsl:variable>
+
   <xsl:choose>
     <xsl:when test="$pi-type = 'margin.note'">
       <xsl:call-template name="margin.note"/>
     </xsl:when>
     <xsl:otherwise>
       <xsl:variable name="content">
-        <fo:block xsl:use-attribute-sets="sidebar.properties">
+        <fo:block xsl:use-attribute-sets="sidebar.properties"
+                 id="{$id}">
          <xsl:call-template name="sidebar.titlepage"/>
           <xsl:apply-templates select="node()[not(title) and
                                         not(sidebarinfo)]"/>