Re: [xsl] type error on 3rd argument of key function

Subject: Re: [xsl] type error on 3rd argument of key function
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxx>
Date: Thu, 14 Feb 2013 20:18:22 +0000
On Thu, Feb 14, 2013 at 5:31 PM, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote:
>>> You could use
>>>   as="document-node()"
>>> if you want to use an "as" attribute to type annotate the variable.
>>>
>>> I don't think keys work with sequences, you need a root node.
>>>
>>
>> Typing it as document-node() does not work. I am happy to leave it
>> untyped as it works mind.
>
> You will need to add xsl:document:
>
> <xsl:variable  .. as="document-node()">
>   <xsl:document>
>     <lookup
>

I apologize. I have forgotten that I have asked this question and
gotten this answer before.

Current Thread