qname resolution question

[ Lists Home | Date Index | Thread Index ]

Hi,

I am wondering if the following schema is valid or not.
(I tend to think it is invalid.)

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>

-Takuki Kamiya






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS