This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: msxml3.0 SP1 can't compare??


change '2001-03-04' to '20010304'
where it is yyyymmdd format.  The less than/greater than comparison done
with a numeric value should work properly.  There are functions available
that will allow you to remove all the '-' characters, ex.
translate(@DateVal,'-','')



-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Klaus Weitzer
Sent: Monday, May 28, 2001 4:23 AM
To: XSL-List
Subject: [xsl] msxml3.0 SP1 can't compare??


Hi list members!

Given this XML (no DTD or Schema defined):

<ROOT>
<ELEM attr="2001-02-04" />
<ELEM attr="2001-03-04" />
<ELEM attr="2001-04-04" />
</ROOT>

and this XSL sniplet:

<xsl:apply-templates select="//ELEM[@attr > '2001-03-04']" />

<xsl:template match="ELEM" ...
   print some results
</xsl:template>

i get no results.
there is no difference between the angle-bracket and the char-entity lt.

If i do an equal comparison then i get the expected result for '2001-03-04',
even the unequal compare is ok. --> i'm confused.

When i try this in the ORACLE - xsql - servlet parser it works as expected.

thanks in advance
Klaus
_______________________________________________________________________
1.000.000 DM gewinnen - kostenlos tippen - http://millionenklick.web.de
IhrName@web.de, 8MB Speicher, Verschluesselung - http://freemail.web.de



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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]