RE: [xsl] Problem with document() function

Subject: RE: [xsl] Problem with document() function
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 12 Oct 2001 17:07:53 +0100
>   <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


Current Thread