xsl-list
[Top] [All Lists]

Re: [xsl] Implicit casting from double to float

2009-01-07 07:24:42
--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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--