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

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





------- Comment #1 from mike@saxonica.com  2006-11-27 18:55 -------
This was the subject of bug #1207 against the spec.

Bug #1207 was resolved as follows:

<resolution>
The working group discussed this and decided by a majority that we should make
casting from string (and, by implication, constructor functions taking a string
argument) consistent with schema validation: that is, if the target type is a
type derived by restriction using a pattern, the source string should be
checked
against the pattern. This means that xs:unsignedInt("+123") becomes an error.
</resolution>

It's not clear to me that the PR version of F+O completely reflects this
resolution. If you read sections 17.2 and 17.5 they still imply that this cast
succeeds. Section 17.1.1 implies that the cast fails, but 17.1 is about casting
to primitive types so one could argue that it's not applicable and 17.2 takes
precedence.

In any case, given the confused state of the spec it's hardly surprising if
implementations are at variance...

Received on Monday, 27 November 2006 18:55:20 UTC