[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: lookup table keyed by position
> 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|