[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] [XSLT 2.0] Checking that an element's value has the desired datatype?
Subject: RE: [xsl] [XSLT 2.0] Checking that an element's value has the desired datatype?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 16 Oct 2006 20:38:59 +0100
|
> >> I can do datatype checking, without using XML Schemas.
>
> > No, you do string matching on the lexical representation of the
> > values. The difference can be important.
>
> What is the difference?
>
Well, some telephone numbers consist entirely of digits, but a telephone
number is not an integer - for example, leading zeros are significant. If
you want to do proper type checking, then an operation that works on
integers shouldn't accept a telephone number, just because it happens to be
all-numeric.
Michael Kay
http://www.saxonica.com/
| Current Thread |
- RE: [xsl] [XSLT 2.0] Checking that an element's value has the desired datatype?, (continued)
- Costello, Roger L. - Mon, 16 Oct 2006 11:53:50 -0400
- Florent Georges - Mon, 16 Oct 2006 18:50:47 +0200 (CEST)
- Costello, Roger L. - Mon, 16 Oct 2006 13:05:11 -0400
- Florent Georges - Mon, 16 Oct 2006 19:45:48 +0200 (CEST)
- Michael Kay - Mon, 16 Oct 2006 20:38:59 +0100 <=
- Costello, Roger L. - Mon, 16 Oct 2006 19:25:01 -0400
- bryan rasmussen - Tue, 17 Oct 2006 03:59:09 +0200
- Colin Adams - Tue, 17 Oct 2006 07:23:46 +0100
- Costello, Roger L. - Tue, 17 Oct 2006 06:37:37 -0400
|
|