Subject: Re: Node set comnparison From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx> Date: Mon, 20 Nov 2000 16:46:57 +0000 
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 > $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:valueof select="$NaN" /> String value of boolean value of NaN: <xsl:valueof select="boolean($NaN)" /> String value of boolean value of string value of NaN: <xsl:valueof select="boolean(string($NaN))" /> String value of numerical value of boolean value of NaN: <xsl:valueof select="number(boolean($NaN))" /> String value of numerical value of boolean value of string value of NaN: <xsl:valueof 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/ XSLList info and archive: http://www.mulberrytech.com/xsl/xsllist
Current Thread 


< Previous  Index  Next > 

Re: Node set comnparison, Nick Browne  Thread  Re: Node set comnparison, Nick Browne 
Re: localization techniques and cod, Jeni Tennison  Date  Re: Copying a portion of a subtree , David Carlisle 
Month 