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

RE: Understanding axis

Subject: RE: Understanding axis
From: "James Carlyle" <james.carlyle@xxxxxxxxxxxx>
Date: Thu, 17 Oct 2002 17:17:06 +0100
axis v

*/* and */child::* are the same (because */* includes a child:: by default)

> <xsl:for-each select="*/child::*[local-name()=$v]">
> </xsl:for-each>

This reads as "any child node of the context node (*) that has any child
node (child::*) which has a local name of $v ([local-name()=$v])"

> read as I only want */* where they have a child named $v.

Do you want grandchildren of the context node called $v? If so,

Children of the context node called $v would be *[local-name()=$v]

Children of the context node (themselves having a child called $v) would be
*[child::*[local-name()=$v]] or child::*[child::*[local-name()=$v]]

Kind regards,

James Carlyle

FableFlow : MMS templating and delivery
Multimedia Messaging commentary : http://www.fableflow.com/weblog/
Telephone : +44 (0)20 7813 0665

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.