This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Re: XPath incompatibilities
- From: Joerg Pietschmann <joerg dot pietschmann at zkb dot ch>
- To: XSL List <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 03 Jan 2002 17:50:39 +0100
- Subject: Re: [xsl] Re: XPath incompatibilities
- Organization: ZKB
- Reply-to: xsl-list at lists dot mulberrytech dot com
Jeni Tennison <jeni@jenitennison.com> wrote:
> I guess that one possibility that would help in the case of < would be
> to convert the nodes to whatever type they look like. If they look
> like numbers, treat them as numbers; if they look like dates, treat
> them as dates and so on.
I beg to disagree: is 02020202 a number or a date? It is better to
flag an error instead of trying to read minds. If some data is meant
to be a date, it is a good idea to have this expressed somewhere,
either in a type declaration in a schema, or by using explicit
conversion functions in the expression.
Explicit type conversions might also be good for optimizations.
Regards
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list