Re: True or False: A schema with no targetNamespace can never be imported

seems to be "false".

The following pair of schema documents are valid.

b.xsd

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://try#1">

      <xs:import schemaLocation="a.xsd"/>
 
      <xs:element name="Z">
     <xs:complexType>
   <xs:sequence>
        <xs:element ref="X"/>
          </xs:sequence>
     </xs:complexType>
      </xs:element>
 
</xs:schema>

a.xsd

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

     <xs:element name="X"/>
 
</xs:schema>


On Sat, Sep 24, 2011 at 5:39 PM, Costello, Roger L. <costello@mitre.org> wrote:
> Hi Folks,
>
> An XML Schema file that has no targetNamespace can never be imported by an XML Schema file.
>
> (1) True
> (2) False
>
> /Roger





-- 
Regards,
Mukul Gandhi

Received on Saturday, 24 September 2011 13:28:25 UTC