qname resolution question

Hi,

I am wondering if the following schema is valid or not.
Both XSV and xerces passes validation with it.

What is the namespace name for the "documentBody"
qname below? Is it "http://www.w3.org/2001/XMLSchema",
or is it none (as targetNamespace is not provided)?

Thanks in advance.


<?xml version ="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" >

  <element name = "envelope">
    <complexType>
      <sequence>
        <element ref = "documentBody"/>
      </sequence>
    </complexType>
  </element>

  <element name = "documentBody" type="anyType"/>
  
</schema>

-taki

Received on Thursday, 27 December 2001 22:37:40 UTC