]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #695030 where revhistory in qandaentry messed up list-block.
authorBob Stayton <bobs@sagehill.net>
Sat, 10 Apr 2004 21:20:25 +0000 (21:20 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 10 Apr 2004 21:20:25 +0000 (21:20 +0000)
xsl/fo/qandaset.xsl

index 7efdaa2a738e8c37141cea3a5b8f43d6ebd28174..a886c104596fa309066efce0a7c330b0c8594f54 100644 (file)
 </xsl:template>
 
 <xsl:template match="qandaentry">
-  <xsl:apply-templates/>
-<!--
-  <fo:block>
-    <xsl:if test="@id">
-      <xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
-    </xsl:if>
-    <xsl:apply-templates/>
-  </fo:block>
--->
+  <!-- Omit revhistory from fo:list-block because it is a table -->
+  <xsl:apply-templates select="question|answer"/>
 </xsl:template>
 
 <xsl:template match="question">
           <xsl:apply-templates select="*[local-name(.)!='label']"/>
         </xsl:otherwise>
       </xsl:choose>
+      <!-- Uncomment this line to get revhistory output in the question -->
+      <!-- <xsl:apply-templates select="preceding-sibling::revhistory"/> -->
     </fo:list-item-body>
   </fo:list-item>
 </xsl:template>