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

Re: Node set comnparison

Subject: Re: Node set comnparison
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Mon, 20 Nov 2000 16:46:57 +0000
xsl value of nan
Nick,

> Jeni/Mike, thanks for that, I'm glad my understanding was correct. I had a
> quick check with Oracle 2.0.2.9, Instand Saxon 5.3.2 & 5.5.1 and MSXML (prod
> version). These were the results for just the first test :
>
> a. test="$set1 &gt; $set2" (should give false)
>                 Ora       Saxon 532         551        MSXML3
> Without 'abc'   True        False           False      False
> With 'abc'      True        True            True       False

I can't speak to your result with Oracle or Saxon 5.3.2, but I can't
replicate your finding with Saxon 5.5.1 and the stylesheet that you
posted. Whatever I do, it gives False. Can you give the source XML for
the "with 'abc'" test where you found Saxon 5.5.1 giving True?

> I did notice that Saxon returns a string value of 'NaN' as '1' which might
> explain the result.

Can you post the situation where you found this?  In Saxon 5.5.1,
running the following template:

<xsl:template match="/">
   <xsl:variable name="NaN" select="number('abc')" />
   String value of NaN: <xsl:value-of select="$NaN" />
   String value of boolean value of NaN: <xsl:value-of select="boolean($NaN)" />
   String value of boolean value of string value of NaN: <xsl:value-of select="boolean(string($NaN))" />
   String value of numerical value of boolean value of NaN: <xsl:value-of select="number(boolean($NaN))" />
   String value of numerical value of boolean value of string value of NaN: <xsl:value-of select="number(boolean(string($NaN)))" />
</xsl:template>

gave me:

   String value of NaN: NaN
   String value of boolean value of NaN: false
   String value of boolean value of string value of NaN: true
   String value of numerical value of boolean value of NaN: 0
   String value of numerical value of boolean value of string value of NaN: 1

Confused,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.