[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XPath selection using //

Subject: RE: XPath selection using //
From: "Filipe Correia" <filipe.correia@xxxxxxxxxxxxxxx>
Date: Wed, 17 Jul 2002 16:26:54 +0100
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.