]> granicus.if.org Git - docbook-dsssl/commitdiff
Use informaltable.properties, informalfigure.properties,
authorBob Stayton <bobs@sagehill.net>
Mon, 21 Jun 2004 00:37:28 +0000 (00:37 +0000)
committerBob Stayton <bobs@sagehill.net>
Mon, 21 Jun 2004 00:37:28 +0000 (00:37 +0000)
informalexample.properties, informalequation.properties
to allow separate formatting if needed.

xsl/fo/formal.xsl

index d18275c1f68d194d483dc9d9051950fb37c7ec33..79834b98ef95cba5ca9f0bc31767d4d9dfa7adeb 100644 (file)
   </xsl:variable>
 
   <xsl:choose>
-    <xsl:when test="local-name(.) = 'equation' or 
-                    local-name(.) = 'informalequation'">
+    <xsl:when test="local-name(.) = 'equation'">
       <fo:block id="{$id}"
                 xsl:use-attribute-sets="equation.properties">
         <xsl:apply-templates/>
         <xsl:apply-templates/>
       </fo:block>
     </xsl:when>
+    <xsl:when test="local-name(.) = 'informalfigure'">
+      <fo:block id="{$id}"
+                xsl:use-attribute-sets="informalfigure.properties">
+        <xsl:apply-templates/>
+      </fo:block>
+    </xsl:when>
+    <xsl:when test="local-name(.) = 'informaltable'">
+      <fo:block id="{$id}"
+                xsl:use-attribute-sets="informaltable.properties">
+        <xsl:apply-templates/>
+      </fo:block>
+    </xsl:when>
+    <xsl:when test="local-name(.) = 'informalexample'">
+      <fo:block id="{$id}"
+                xsl:use-attribute-sets="informalexample.properties">
+        <xsl:apply-templates/>
+      </fo:block>
+    </xsl:when>
+    <xsl:when test="local-name(.) = 'informalequation'">
+      <fo:block id="{$id}"
+                xsl:use-attribute-sets="informalequation.properties">
+        <xsl:apply-templates/>
+      </fo:block>
+    </xsl:when>
     <xsl:otherwise>
       <fo:block id="{$id}" xsl:use-attribute-sets="informal.object.properties">
         <xsl:apply-templates/>
     <xsl:for-each select="tgroup">
       <xsl:variable name="prop-columns"
                     select=".//colspec[contains(@colwidth, '*')]"/>
-      <fo:block xsl:use-attribute-sets="informal.object.properties">
+      <fo:block xsl:use-attribute-sets="informaltable.properties">
        <fo:table xsl:use-attribute-sets="table.table.properties">
          <xsl:call-template name="table.frame"/>
          <xsl:if test="following-sibling::tgroup">