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 4049 - DataTypes tests: QNames and length facets
Summary: DataTypes tests: QNames and length facets
Status: RESOLVED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Microsoft tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard: all metadata now correct 2008-11-13
Keywords:
: 4122 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-12-08 20:13 UTC by Michael Kay
Modified: 2008-11-13 12:14 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-12-08 20:13:58 UTC
In the (Microsoft) Datatypes tests, certain tests appear to assume that an instance document can be invalid because a QName or NOTATION does not satisfy the length, minLength, or maxLength facet defined in the schema. However, the specification is clear that although these facets are allowed (and deprecated), they have no effect on validity. See 

Validation Rule: Length Valid clause 1.3
Validation Rule: minLength Valid clause 1.3
Validation Rule: maxLength Valid clause 1.3

Affected tests include:

   <test group="QName_length001_1357" name="QName_length001_1357.i"/>
   <test group="QName_length003_1359" name="QName_length003_1359.i"/>
   <test group="QName_minLength003_1362" name="QName_minLength003_1362.i"/>
   <test group="QName_maxLength001_1364" name="QName_maxLength001_1364.i"/>
   <test group="NOTATION_length001_1372" name="NOTATION_length001_1372.i"/>
   <test group="NOTATION_length003_1374" name="NOTATION_length003_1374.i"/>
   <test group="NOTATION_minLength003_1377" name="NOTATION_minLength003_1377.i"/>
   <test group="NOTATION_maxLength001_1379" name="NOTATION_maxLength001_1379.i"/>
Comment 1 Arthur De Magalhaes 2007-01-15 21:22:34 UTC
Additional tests that have this bug:

msData/additional/test73986_2.xml
msData/additional/test73986.xsd
Comment 2 Zafar Abbas 2007-01-29 22:32:07 UTC
Agreed that these tests are not applicable per spec. We are following up with the WG to determine the process of updating the test suite.
Comment 3 Michael Kay 2008-06-21 15:03:28 UTC
Agreed that these tests do no violate the length/minlength/maxlength facets. 

In theory before marking them valid we should check that they are not invalid for some other reason, however it appears they pass validation by Xerces and Saxon so they are probably OK.
Comment 4 Henry S. Thompson 2008-11-13 12:07:25 UTC
*** Bug 4122 has been marked as a duplicate of this bug. ***