[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: An untyped atomic value cannot be converted to a

Subject: Re: An untyped atomic value cannot be converted to a QName ...
From: "Michael Müller-Hillebrand mmh@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 4 Jan 2016 20:30:20 -0000
Re:  An untyped atomic value cannot be converted to a
Hi Roger,

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

- Michael

> Am 04.01.2016 um 21:16 schrieb Costello, Roger L. costello@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>:
>
> Hi Folks,
>
> For xsl:value-of in the below function I am getting this error message:
>
>    An untyped atomic value cannot be converted to a QName or NOTATION
>    as required for the result of function f:QName-for-local-name()
>
> Why am I getting that error message?
>
> There are no "untyped atomic values" in xsl:value-of: the argument to
fn:QName, $local-name, clearly has a type -- xs:string.
>
> How do I fix it?
>
> -----------------------------------------------------------
>    <xsl:function name="f:QName-for-local-name" as="xs:QName">
>        <xsl:param name="local-name" as="xs:string" />
>        <xsl:param name="schema" as="element(xs:schema)" />
>
>        <xsl:value-of select="QName((), $local-name)"/>
>
>    </xsl:function>
> -----------------------------------------------------------
>
> /Roger

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.