]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed test for graphic inside inlineequation.
authorBob Stayton <bobs@sagehill.net>
Tue, 30 Dec 2003 18:30:33 +0000 (18:30 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 30 Dec 2003 18:30:33 +0000 (18:30 +0000)
xsl/fo/graphics.xsl
xsl/html/graphics.xsl

index 1f7eac192dc7fc7046e725087b3d3b84b8214ce3..6d83069ac5d17dd5abb11018690673332008c433 100644 (file)
 
 <xsl:template match="graphic">
   <xsl:choose>
-    <xsl:when test="../inlineequation">
+    <xsl:when test="parent::inlineequation">
       <xsl:call-template name="process.image"/>
     </xsl:when>
     <xsl:otherwise>
index 0971d30237e4dcb1bc7d163d440558bac9981d7f..276bc1e799156bc03a0154f2b4ea6667a677e0a6 100644 (file)
@@ -746,7 +746,7 @@ valign: <xsl:value-of select="@valign"/></xsl:message>
 
 <xsl:template match="graphic">
   <xsl:choose>
-    <xsl:when test="../inlineequation">
+    <xsl:when test="parent::inlineequation">
       <xsl:call-template name="anchor"/>
       <xsl:call-template name="process.image"/>
     </xsl:when>