This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Problem with document() function
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Problem with document() function
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Fri, 12 Oct 2001 17:07:53 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> <xsl:value-of select="$data/*//organization"/>
> ^
> (to find nested contact info)
>
> It works, but still I'm not sure how to read the XPath expression
> "$data/*//organization". In particular, I'm not yet sure what
> the '*' adds
> to it.
Given that $data is a root node, $data//organization will find any
<organization> element in the document. $data/*//organization will find any
<organization> element that isn't the "document element" (ie. that isn't an
immediate child of the root).
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list