On 22 Dec 2008, at 18:21, Patterson, Gregory Michael wrote:
Hi Gregory,
Just a small FYI: this is a purely XSLT-related question, and we make
it a policy of avoiding that type of question being asked on this forum.
In the future, please direct those questions to the Mulberry XSLT
list, which is much better suited.
That said, no lack of XSLT knowledge among fop-users, so...
Ok, I've started writing the actual xsl:fo style, and have a
question for you guys.
The xml I'm using is below, so could you point me in the best
direction to get to the field data of only the current='true'
version? Thanks in advance.
<snip />
This, of course, depends on the context, but if you have something like:
<xsl:template match="data">...</xsl:template>
or
<xsl:for-each select="data">...</xsl:for-each>
Then inside that template/for-each, the pattern would be something like:
child::versi...@current='true']
More generally, starting from the root of the entire document, the
XPath to select all those version-nodes in your case would be:
/*/*/data/versi...@current='true']
HTH!
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]