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

"finite-length sequence" exact semantic

From: Daniel Veillard <daniel@veillard.com>
Date: Thu, 3 Apr 2008 13:47:00 +0200
To: xmlschema-dev@w3.org
Message-ID: <20080403114700.GA24049@daniel.veillard.com>
"finite-length sequence" exact semantic

  For all the XSD-1.0 decimal derived types the lexical representation
is defined using something like (e.g for byte):

  http://www.w3.org/TR/xmlschema-2/#byte
   "byte has a lexical representation consisting of an optional sign followed
    by a finite-length sequence of decimal digits (#x30-#x39). If the sign is
    omitted, "+" is assumed. For example: -1, 0, 126, +100."

Similary it is used for string:
   http://www.w3.org/TR/xmlschema-2/#string
    "...The ·value space· of string is the set of finite-length sequences of 
     characters..."

from my math antique background an empty sequence is a finite-length sequence.
But I could be wrong, I doubt it's what expect by the authors since the
example of minLength explicitely shows how to avoid empty strings ...
   http://www.w3.org/TR/xmlschema-2/#rf-minLength

So I guess either:
  - "finite-length sequence" is not used in a consistent way in the spec
  - or all those definitions for decimal and derived types need to specify
    that sequence to be non-empty

Can someone confirm "" need to be rejected, and if not what the value should
be associated (0 ?),

I checked http://www.w3.org/2004/03/xmlschema-errata and it's empty, really ??

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@v...  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/
Received on Thursday, 3 April 2008 10:38:39 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.