Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - "finite-length sequence" exact semantic [Thread Next] Re: "finite-length sequence" exact semanticTo: daniel@--------.--- Date: 4/4/2008 1:38:00 PM
Daniel Veillard a écrit :
> 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 ?),
what about "+" or "." ?
>
> I checked http://www.w3.org/2004/03/xmlschema-errata and it's empty, really ??
>
> Daniel
>
--
Cordialement,
///
(. .)
--------ooO--(_)--Ooo--------
| Philippe Poulard |
-----------------------------
http://reflex.gforge.inria.fr/
Have the RefleX !
From mike@s... Fri Apr 04 09:55:00 2008
Received: from maggie.w3.org ([193. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
