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]

RE: Problem with document() function


>   <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


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