XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Vishal SinghSubject: Numeric comparison not working.
Author: Vishal Singh
Date: 21 Feb 2007 03:59 PM
<xsl:variable name="zero">0</xsl:variable>
<saxon:assign name="sumX" select="sum($nodelistX)"></saxon:assign>
<xsl:value-of select="$sumX = $zero"></xsl:value-of>
<xsl:value-of select="$sumX = 0"></xsl:value-of>

When sum($nodelistX) returns 0. Both comparisions returns false. Why ?
How to fix this ? Please help.

Posttop
Tony LavinioSubject: Numeric comparison not working.
Author: Tony Lavinio
Date: 22 Feb 2007 10:31 AM
Almost always, when you are using saxon:assign,
it means you're not using XSLT properly.

But this question should be asked on the saxon-help
mailing list, which is specifically for Saxon-related
questions.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.