<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>3157</bug_id>
          
          <creation_ts>2006-04-26 19:10:23 +0000</creation_ts>
          <short_desc>Schema userdefined.xsd is invalid</short_desc>
          <delta_ts>2006-05-03 19:06:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>0.9.0</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Carmelo Montanez">carmelo</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9474</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-04-26 19:10:23 +0000</bug_when>
    <thetext>I believe that userdefined.xsd is not a valid schema.

The two notation declarations

&lt;xs:notation name=&quot;value1&quot; public=&quot;image/jpeg&quot; system=&quot;viewer.exe&quot;/&gt;
&lt;xs:notation name=&quot;value2&quot; public=&quot;image/png&quot; system=&quot;viewer.exe&quot;/&gt; 

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

   &lt;xs:restriction base = &quot;xs:NOTATION&quot;&gt;
     &lt;xs:enumeration value=&quot;value1&quot;/&gt;
     &lt;xs:enumeration value=&quot;value2&quot;/&gt;
   &lt;/xs:restriction&gt;

the names should be prefixed, thus:

   &lt;xs:restriction base = &quot;xs:NOTATION&quot;&gt;
     &lt;xs:enumeration value=&quot;myType:value1&quot;/&gt;
     &lt;xs:enumeration value=&quot;myType:value2&quot;/&gt;
   &lt;/xs:restriction&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9580</commentid>
    <comment_count>1</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-05-03 19:06:27 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>