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 3157 - Schema userdefined.xsd is invalid
Summary: Schema userdefined.xsd is invalid
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-26 19:10 UTC by Michael Kay
Modified: 2006-05-03 19:06 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-04-26 19:10:23 UTC
I believe that userdefined.xsd is not a valid schema.

The two notation declarations

<xs:notation name="value1" public="image/jpeg" system="viewer.exe"/>
<xs:notation name="value2" public="image/png" system="viewer.exe"/> 

defined notations in the target namespace of the schema. This means that when they are referred to (line 56)

   <xs:restriction base = "xs:NOTATION">
     <xs:enumeration value="value1"/>
     <xs:enumeration value="value2"/>
   </xs:restriction>

the names should be prefixed, thus:

   <xs:restriction base = "xs:NOTATION">
     <xs:enumeration value="myType:value1"/>
     <xs:enumeration value="myType:value2"/>
   </xs:restriction>
Comment 1 Carmelo Montanez 2006-05-03 19:06:27 UTC
Michael:

Thanks for the comment.  The schema was corrected and resubmitted with the
suggested changes.  I am working with the qname and notation tests.

Carmelo