xsl-list
[Top] [All Lists]

RE: [xsl] [XSLT 2.0] Checking that an element's value has the desired datatype?

2006-10-16 12:39:21
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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>