W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2000

Use of namespaces in an XML Schema

From: <achille@us.ibm.com>
Date: Mon, 20 Mar 2000 18:02:40 -0500
To: www-xml-schema-comments@w3.org
Message-ID: <852568A8.007E93FF.00@D51MTA03.pok.ibm.com>

Hi !

In the latest spec, all the examples which show how to create a schema by
assembling components from multiple sources use global  namespace
declarations (namespace declarations that appear at the level of the
<schema> element  information item) . Since the namespace spec allows to
declare namespace in each element information item, I wonder if  a schema
with local scope namespace declarations is still a valid schema (provided
that I add, for each namespace declaration,  the corresponding  import
Example :

<xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema">
     <import namespace="http://www.w3.org/questions">
     <xsd:element name="A" type="xsd:string">
     <xsd:element name="B"  xmlns:localprefix="http://www.w3.org/questions"


Achille Fokoue.
Received on Monday, 20 March 2000 18:02:48 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:46 UTC