RE: [xsl] context (size) when evaluating use expression of an xsl:key

Subject: RE: [xsl] context (size) when evaluating use expression of an xsl:key
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 5 Feb 2010 21:05:58 -0000
> How is the context defined when evaluating the 'use' 
> attribute of an 'xsl:key' element, in particular what is the 
> context size?
> 
> The XSLT specification in http://www.w3.org/TR/xslt20/#key 
> merely says:
>   "The expression will be evaluated with the node that 
> matches the pattern as the context node."
> but it does not say what is the context size.

It also says in the paragraph beginning "The result of the key function can
be described more specifically as follows." that the key specifier (i.e. the
use expression) is evaluated with a singleton focus, which means the context
position and size are 1.

Regards,

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

Current Thread