- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 02 Oct 2007 19:33:57 +0000
- To: www-xml-schema-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5127
Summary: Missing NOTATION component
Product: XML Schema
Version: 1.0/1.1 both
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Structures: XSD Part 1
AssignedTo: cmsmcq@w3.org
ReportedBy: mike@saxonica.com
QAContact: www-xml-schema-comments@w3.org
I am raising this bug against the spec rather than against the relevant test
case because I think it's very hard to decide from the spec whether the schema
in the test case is valid or not.
The test is question is:
contributor="Sun"
set="Notation"
group="name00101m2"
test="name00101m2"
and the test declares:
<xsd:complexType name="Picture">
<xsd:attribute name="type">
<xsd:simpleType>
<xsd:restriction base="xsd:NOTATION">
<xsd:enumeration value="jpeg"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
where the schema contains no NOTATION with the name jpeg.
One interpretation says the schema is invalid; the enumeration value must be in
the value space of the base type, and the value space of NOTATION is the set of
NOTATIONs declared in the "current schema".
Another interpretation is that a reference to a missing component is not an
error (and does not invalidate the schema) unless and until the component is
needed to validate an instance.
I think a WG ruling is needed on this one.
The test is catalogued as invalid.
Received on Tuesday, 2 October 2007 19:34:05 UTC