Hello, I'm having difficulty getting <xsl:value-of select=""/> to work with
attributes--it must be something obvious but I can't figure out the problem.
(I'm using FOP 0.95-1.)
For this XML snippet:
<batch myattval="2222">
<aaa>dog</aaa>
<bbb>cat</bbb>
...
and this XSL template:
<xsl:template match="batch">
<fo:block><xsl:value-of select="@myattval"/></fo:block>
<fo:block><xsl:value-of select="./@myattval"/></fo:block>
<fo:block><xsl:value-of select="./myattval"/></fo:block>
<fo:block><xsl:value-of select="myattval"/></fo:block>
<fo:block><xsl:value-of select="./aaa"/></fo:block>
<fo:block><xsl:value-of select="./bbb"/></fo:block>
....
I can get aaa and bbb to output but I cannot get myattval to appear. I
would think the first and second would be correct, but none of the four
attempts above are working for myattval. Can anybody see what I'm doing
wrong?
Thanks,
Glen
--
View this message in context:
http://old.nabble.com/Problem-using-attributes-with-%3Cxsl%3Avalue-of-select%3D%22%22-%3E-tp26451537p26451537.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]