This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XPath selection using //
- From: "Filipe Correia" <filipe dot correia at paradigmaxis dot pt>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 17 Jul 2002 16:26:54 +0100
- Subject: RE: [xsl] XPath selection using //
- References: <191341E1C111D3119A6F00902778A6B20258BEDC@SATURN>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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