Actually, xsl:value-of creates a text node. Because the declared return type
of the function is atomic, atomization of this text node is attempted. The
result of atomizing the text node is untypedAtomic, and untypedAtomic cannot
be converted to the declared result type (xs:QName) - hence the error
message.
Michael Kay
Saxonica
> On 4 Jan 2016, at 20:39, Costello, Roger L. costello@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>> Maybe by using xsl:sequence instead of xsl:value-of which always creates a
string.
>
> Ah!
>
> Yes, that solved it. Thanks Michael!
>
> /Roger
|