W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2001

Different namspaces in one schema

From: <xml-dj@gmx.de>
Date: Wed, 5 Dec 2001 11:49:36 -0500 (EST)
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <1518.1007570915@www31.gmx.net>
Hello!

Is ist possible/valid to have in some way elements with different namespaces
in one schema, without using the <import> element?

For example:

<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.autos.de" xmlns:car="http://www.autos.de" >
 
 <element name="A" type="string"/>
 <!-- etc. -->
<element name="B" type="string" xmlns:other="http://www.other.com"/>

</schema>


How would look the instance-document? What is the targetNamespace of element
name="B" and which effect takes the xmlns:other="http://www.other.com"?
Are there any other possibilities without <import>?

Thank you.

Greets,

Thilo


-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
Received on Thursday, 6 December 2001 19:30:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:25 GMT