This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XPath question
- From: "Stuart Celarier" <stuart at ferncrk dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 17 May 2002 09:32:10 -0700
- Subject: RE: [xsl] XPath question
- Reply-to: xsl-list at lists dot mulberrytech dot com
Roger,
In XPath, the term 'child' means immediate descendant, just like it does
in English. Your great-great-grandchildren are not your children [1]
they are your descendents, and you their ancestor. In XPath an internal
/ means child, // means descendant. These are both abbreviations for the
child:: and descendant:: axes, respectively. Take a look at
http://www.w3.org/TR/xpath#path-abbrev for more.
Cheers,
Stuart
[1] Although cyclic relationships do occur among humans, see "I'm My Own
Grandpa" (Lonzo and Oscar), e.g.,
http://users.cis.net/sammy/grandpa.htm.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list