Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


"finite-length sequence" exact semantic

From: Daniel Veillard <daniel@--------.--->
To: xmlschema-dev@--.---
Date: 4/3/2008 3:47:00 PM
  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 foll=
owed
    by a finite-length sequence of decimal digits (#x30-#x39). If the sig=
n 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 =B7value space=B7 of string is the set of finite-length seque=
nces of 
     characters..."

from my math antique background an empty sequence is a finite-length sequ=
ence.
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 specif=
y
    that sequence to be non-empty

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

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

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/

From mike@s... Thu Apr 03 10:49:13 2008
Received: from lisa.w3.org ([128


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent