W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2007

[Bug 4023] fn-abs-more-args-024 is incorrect

From: <bugzilla@wiggum.w3.org>
Date: Sun, 14 Jan 2007 16:48:26 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1H68Ww-0006OY-BA@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4023





------- Comment #4 from mike@saxonica.com  2007-01-14 16:48 -------
The final spec will clarify that when you cast from xs:string to
xs:unsignedInteger, the section that applies is section 17.1.1. This states:

When casting from xs:string or xs:untypedAtomic to a derived type where the
derived type is restricted by a pattern facet, the lexical form is first
checked against the pattern before further casting is attempted (See 17.2
Casting to derived types). If the lexical form does not conform to the pattern,
error [err:FORG0001] is raised.

which makes it clear that xs:unsignedInt('-123') is an error given XML Schema
as currently defined.

The pattern facets for types such as xs:unsignedInt are given in the schema for
schemas.
Received on Sunday, 14 January 2007 17:02:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:32 UTC