xsl-list
[Top] [All Lists]

[xsl] Keys Context Management

2006-03-15 21:38:28
I have a couple of keys which I have defined like this;

<xsl:key name="key_athletes"
match="/ROOT/MeetResults/Meet/AthleteResults/Athlete" use="USAGNum"/>
<xsl:key name="athlete_driver"
match="/ROOT/NewDataSet[(_at_)Name='wbx_scoreupload']/Table"
use="usagnum"/>


Notice that I match right away off of ROOT.  I do this because I am
not confident that the context for which the key belongs will be
preserved.  I've written similar keys before where I am basically
going after the last node of the tree to which I am after.

How does context work with keys?
Does the context of each key shift as you walk your XML?
I remember that the context of a key can switch XML source, so like in
and out of variables, and back to the original context...

Thanks..

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>