[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Key lookup without context.
At 2008-12-19 14:21 +0100, peter verhaar wrote:
I have a 'context-free' function which does a key() lookup. However, saxon is complaining: By using the third argument of key(): it is defined as the apex of a tree under which which the keyed values are searched. I tried select="\\key('myKey'...." but this didn't work. Add a variable with global scope: <xsl:variable name="myBooks" match="/"/> <xsl:function name="...." as="xs:double"> <xsl:param name="input"/> <xsl:for-each select="key('myKey',$input)"> key('myKey',$input,$myBooks) processing goes here </xsl:for-each> </xsl:function> I hope this helps. . . . . . . . . . . . . Ken
|
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
|