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>

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"/>


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.



GMX - Die Kommunikationsplattform im Internet.
Received on Thursday, 6 December 2001 19:30:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:56 UTC