]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed /section template to work with rootid parameter.
authorBob Stayton <bobs@sagehill.net>
Thu, 11 Nov 2004 17:51:48 +0000 (17:51 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 11 Nov 2004 17:51:48 +0000 (17:51 +0000)
xsl/fo/sections.xsl

index 4977516f8c98c984cc9496064d0ba45ac6a6feeb..1663a66865eb22c13f744a2c1bc7cab85d4217be 100644 (file)
   <xsl:apply-templates/>
 </xsl:template>
 
-<xsl:template match="/section">
+<xsl:template match="section[not(parent::*) or $rootid = @id]">
   <xsl:variable name="id">
     <xsl:call-template name="object.id">
       <xsl:with-param name="object" select="ancestor::reference"/>