Re: True or False: A schema with no targetNamespace can never be imported
Mukul Gandhi <[email protected]>
| Newsgroups | gmane.text.xml.schema.devel |
|---|---|
| Message-ID | <CABuuzNOUaQa_qF8NcU5emZqaKbSf7KfPNByn1hgMF-zvLCNnOg@mail.gmail.com> |
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. <[email protected]> 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