This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6446 - wrong result for IDREFS_length006_395 and NMTOKENS_length006_438
Summary: wrong result for IDREFS_length006_395 and NMTOKENS_length006_438
Status: RESOLVED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Microsoft tests (show other bugs)
Version: 2006-11-06
Hardware: Other Linux
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard: metadata updated 2010-07-06
Keywords:
Depends on:
Blocks: 6447
  Show dependency treegraph
 
Reported: 2009-01-19 13:14 UTC by Tobias Koenig
Modified: 2010-07-06 14:22 UTC (History)
2 users (show)

See Also:


Attachments

Description Tobias Koenig 2009-01-19 13:14:06 UTC
Hej,

the two test cases mentioned above are marked as invalid, as they
define simple types with both, a minLength and length, set.

The rule that should cause this error is http://www.w3.org/TR/xmlschema11-2/#length-coss:

1 It is an error for minLength to be a member of {facets}

however there is the subrule:

  1.2 unless there is some type definition from which this one is derived by one or more ·restriction· steps in which minLength has the same {value} and length is not specified.

Actually 1.2 matches on the two mentioned test cases. Both, IDREFS and NMTOKENS defines a minLength facet with value '1' in the schema spec (at least in schema 1.1 explicitly), so rule 1.2 applies and the facet is valid, so both test cases should be marked as valid
Comment 1 Michael Kay 2009-05-13 10:50:38 UTC
I agree, in my view both these schemas are valid in both 1.0 and 1.1.

(For info, Saxon 9.1 rejects them, 9.2 accepts them)
Comment 2 David Ezell 2010-04-16 16:04:39 UTC
WG agreed that this test as it is is disputedTest, and the WG has agreed that it should actually be marked valid.