OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Error in .NET schema implementation for xs:token

[ Lists Home | Date Index | Thread Index ]

On Thu, 2003-10-16 at 08:47, Henry S. Thompson wrote:
> Jirka Kosek <jirka@kosek.cz> writes:
>
> > I thought that this should validate as xs:token whitespace handling is
> > "collapse" and leading and trailing spaces shouldn't be part of
> > lexical space from which is value converted to value space on which
> > data-type validation should operate. But .NET parser report this as
> > error. (BTW Xerces accept this without complaints.)
> 
> I believe your argument is correct, and see no basis for an error in
> this case.

No basis except, of course, the name (xs:token) which IMO is very
misleading.

That's something on which I have tried to insist as much as possible in
my book about WXS (and now in the corresponding section [1] of my book
about RELAX NG): despite its name, xs:token should be used in most of
the cases where people are using xs:string.

Overusing xs:string leads to XML vocabularies which are needlessly
incoherent about how whitespaces are handled and the confusion on the
name "xs:token" (understood by so many people as a single token while
it's only a "tokenized" string) is the main reason why people keep using
xs:string instead of xs:token.

My 0.02 Euros,

Eric

[1] http://books.xmlschemata.org/relaxng/ch17-77201.html
> 
> ht
-- 
Have you ever thought about unit testing XSLT templates?
                                                     http://xsltunit.org
Upcoming schema tutorial:
 - Philadelphia (7/12/2003)       http://makeashorterlink.com/?V28612FC5
Tutoriel XSLT:
 - Paris (25/11/2003)             http://makeashorterlink.com/?L2C623FC5
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS