Subject: RE: [xsl] Re: msxml3.0 SP1 can't compare?? From: "Michael Fitzgerald" <mike@xxxxxxxxxx> Date: Tue, 29 May 2001 10:34:26 -0700 |
Piers, When XSLT became a rec in Nov 1999, the only 'standard' XML datatypes were those supported by XML 1.0, which amounted to a handful of types for attributes only, that is, CDATA, NMTOKEN, NMTOKENS, ID, IDREF, IDREFS, ENTITY, and ENTITIES. (I don't think of #PCDATA, EMPTY, or ANY, etc. as datatypes.) The new datatypes that come with XML Schema will be supported (I hope) in XSLT 2.0 (as stated in requirement 3 of XSLT Requirements Version 2.0 http://www.w3.org/tr/xslt20req). In regard to string comparisons, I try to get by with the XPath string functions (http://www.w3.org/TR/xpath#section-String-Functions), though I am looking forward to some improvements there as well. XSLT 2.0 intends to support case-sensitive string comparisons (2.13 in http://www.w3.org/tr/xslt20req) and (yippee!) regular expressions (req 3 in http://www.w3.org/tr/xpath20req). -Mike -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Piers Haken Sent: Tuesday, May 29, 2001 6:42 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] Re: msxml3.0 SP1 can't compare?? Can anyone explain to me the reasoning behind leaving out string comparisons? If there was ever a glaring omission from anything, this would have to be it, surely? And while you're at it. How about speculating as to why XSL doesn't support most of the standard XML datatypes, such as ISO dates, for example. Piers. -----Original Message----- From: Michael Beddow [mailto:mbnospam@xxxxxxxxxxx] Sent: Monday, May 28, 2001 5:59 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Re: msxml3.0 SP1 can't compare?? <xsl:apply-templates select="//ELEM[translate(@attr, '-', '') > translate('2001-03-04', '-', '') ]" /> Wow, Dimitre, that's a clever one. ISO date format, all is forgiven!! Michael ------------------------------------------------- Michael Beddow http://www.mbeddow.net/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: msxml3.0 SP1 can't co, Goetz Bock | Thread | RE: [xsl] Re: msxml3.0 SP1 can't co, Oliver Becker |
Re: [xsl] Re: msxml3.0 SP1 can't co, Goetz Bock | Date | RE: [xsl] ADO recordsets & Cursonlo, Joshua Allen |
Month |