]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug [ 1256277 ] sidebarinfo not supported, so now sidebarinfo
authorBob Stayton <bobs@sagehill.net>
Sun, 25 Sep 2005 01:55:26 +0000 (01:55 +0000)
committerBob Stayton <bobs@sagehill.net>
Sun, 25 Sep 2005 01:55:26 +0000 (01:55 +0000)
is supported.

xsl/fo/block.xsl

index dd2137e1a387a8b42e37ed7c3d71b7c76839be13..1fd1efcb1adca22959cae6e28ee7f03740a3fc6a 100644 (file)
     <xsl:otherwise>
       <xsl:variable name="content">
         <fo:block xsl:use-attribute-sets="sidebar.properties">
-          <xsl:if test="./title">
-            <fo:block xsl:use-attribute-sets="sidebar.title.properties">
-              <xsl:apply-templates select="./title" mode="sidebar.title.mode"/>
-            </fo:block>
-          </xsl:if>
-          <xsl:apply-templates/>
+         <xsl:call-template name="sidebar.titlepage"/>
+          <xsl:apply-templates select="node()[not(title) and
+                                        not(sidebarinfo)]"/>
         </fo:block>
       </xsl:variable>
     
 
 </xsl:template>
 
-<xsl:template match="sidebar/title">
-</xsl:template>
+<xsl:template match="sidebar/title|sidebarinfo"/>
 
-<xsl:template match="sidebar/title" mode="sidebar.title.mode">
-  <xsl:apply-templates/>
+<xsl:template match="sidebar/title|sidebarinfo|title"
+              mode="titlepage.mode" priority="1">
+  <fo:block xsl:use-attribute-sets="sidebar.title.properties">
+    <xsl:apply-templates/>
+  </fo:block>
 </xsl:template>
 
 <xsl:template name="margin.note">