This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]