xsl-list
[Top] [All Lists]

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

2016-01-04 17:55:50
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(_at_)mitre(_dot_)org 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

Maybe by using xsl:sequence instead of xsl:value-of which always creates a 
string.

Ah!

Yes, that solved it. Thanks Michael!

/Roger

--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>