If I apply the following transformation -

<xsl:param name="Output_Data"/>
    <xsl:template match="/">
        <SW_FIELDS>
            <user_fields>
                <OUT1>
                    <xsl:value-of select="$Output_Data/ns:Data + 1.0"/>
                </OUT1>
            </user_fields>
        </SW_FIELDS>
    </xsl:template>
</xsl:stylesheet>

To the following XML -

<ns0:Output_Data
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns0="http://xmlns.example.com/unique/default/namespace/11220292468
46">
<ns0:Data>1.2E1</ns0:Data>
</ns0:Output_Data>

The result is -

<SW_FIELDS>
<user_fields>
<OUT1>NaN</OUT1>
</user_fields>
</SW_FIELDS>


It appears that a double value containing an exponent is not processed
correctly.
Is there any workaround for this problem?

Thanks.
Andrew Fielden.

Reply via email to