|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XPath selection using //
Hi,
>I am a little unsure of what you are trying to do and your xml
>sample is not well formed but here goes;
Ooops, sory about that... but you've figured it out the right way. :)
>
>This template will produce the result you are after;
>
> <xsl:template match="m">
> Attribute a of the following m is: <xsl:value-of
>select="following::m/@a"/>
> </xsl:template>
>
>The 'following-sibling' axes will only match nodes of the same depth
>of the xml document.
Somehow I've managed not to see the "following" axis in the documentation.
It's working perfectly now.
Thanks!
Filipe
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








