[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] An untyped atomic value cannot be converted to a QName ...


Subject: Re: [xsl] An untyped atomic value cannot be converted to a QName ...
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 4 Jan 2016 23:55:45 -0000

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


Current Thread