[Bug 14388] New: NOTATION used directly for validation

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

           Summary: NOTATION  used directly for validation
           Product: XML Schema Test Suite
           Version: 2006-11-06
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Saxon tests
        AssignedTo: cmsmcq@blackmesatech.com
        ReportedBy: sandygao@ca.ibm.com
         QAContact: public-xml-schema-testsuite@w3.org


Test: over015.v01.xml
Schema: Override/over015.xsd
XML: Override/over015.v01.xml
Expected validity: valid

Attribute "nota" is declared as having type xs:NOTATION. The attribute appears
in the XML file with a value "foo". This violates rule "enumeration facet value
required for NOTATION".

This can be fixed by declaring attribute "nota" as having a type derived from
xs:NOTATION by specifying enumeration values "foo" and "bar"

An alternative is to
- change "nota" to an element declaration
- add a global simple type "notaType" that restricts xs:NOTATION by specifying
enumeration values "foo" and "bar"
- add an xsi:type attribute on <nota> element to point to "notaType"

This latter set of changes also test the clarification that it's OK to declare
an element/attribute to have type xs:NOTATION (not a schema error), but it's
not OK to use NOTATION to validate a value (a runtime error).

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 5 October 2011 14:54:22 UTC