[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Error in .NET schema implementation for xs:token


xs token
On Thu, 2003-10-16 at 08:47, Henry S. Thompson wrote:
> Jirka Kosek <jirka@k...> 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
------------------------------------------------------------------------


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.