xsl-list
[Top] [All Lists]

RE: lookup table keyed by position

2005-02-23 13:41:21
It seems that the context node when position is evaluated is 
the months
element, not the individual abbbrev elements. 

Yes: as the (1.0) spec says "the expression specified in the use attribute
of the xsl:key element is evaluated with x as the current node and with a
node list containing just x as the current node list ".

Try use="count(preceding-sibling::*)+1" - but remember that in 1.0 it's
always done as a string comparison.

Michael Kay
http://www.saxonica.com/




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