xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[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
Keywords
xml
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor