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

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