Re: [xsl] Implicit casting from double to float

Subject: Re: [xsl] Implicit casting from double to float
From: Owen Rees <owen.rees@xxxxxx>
Date: Wed, 07 Jan 2009 12:24:09 +0000
--On Wednesday, January 07, 2009 17:35:01 +0530 Mukul Gandhi wrote:

This could be a more accurate example for the feature I described,

<xsl:variable name="num" select="xs:double('1e4')" as="xs:float" />
<xsl:value-of select="$num" />

This runs fine with Saxon 9.x.

As it should given the definition of the language.


<http://www.w3.org/TR/xpath20/#promotion> seems to be the appropriate reference for this.

--
Owen Rees
========================================================
Hewlett-Packard Limited.   Registered No: 690597 England
Registered Office:  Cain Road, Bracknell, Berks RG12 1HN

Current Thread