T
T
Hi, I'm trying to get the alt text from this bit of docbook xml:
<inlineequation>
<inlinemediaobject remap="math">
<alt>$F$</alt>
<imageobject>
<imagedata depth="0px"
fileref="images/geneug_whatsnew0001.png"
contentwidth="10px" contentdepth="10px" role="math" />
</imageobject>
</inlinemediaobject>
</inlineequation>
With this selector:
<xsl:template match="d:inlineequation/d:inlinemediaobject/
d:imageobject/d:imagedata[@depth]">
<xsl:element name="img">
<xsl:attribute name="alt"><xsl:value-of select="../../alt"/></
xsl:attribute>
etc....
In my Xpath visualizer the path looks right:
//inlineequation/inlinemediaobject/imageobject/imagedata[@depth]/../../
alt
but my stylesheet never renders the alt text. When I use the selector
in the xsl:template using the [@depth] attribute, is the attribute or
the element selected?
Just trying to figure out what is going on.
thanks,
--Tim Arnold
<inlineequation>
<inlinemediaobject remap="math">
<alt>$F$</alt>
<imageobject>
<imagedata depth="0px"
fileref="images/geneug_whatsnew0001.png"
contentwidth="10px" contentdepth="10px" role="math" />
</imageobject>
</inlinemediaobject>
</inlineequation>
With this selector:
<xsl:template match="d:inlineequation/d:inlinemediaobject/
d:imageobject/d:imagedata[@depth]">
<xsl:element name="img">
<xsl:attribute name="alt"><xsl:value-of select="../../alt"/></
xsl:attribute>
etc....
In my Xpath visualizer the path looks right:
//inlineequation/inlinemediaobject/imageobject/imagedata[@depth]/../../
alt
but my stylesheet never renders the alt text. When I use the selector
in the xsl:template using the [@depth] attribute, is the attribute or
the element selected?
Just trying to figure out what is going on.
thanks,
--Tim Arnold