W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2003

RE: Can XML Data refer to two or more Schema

From: Navneet Raja <nraja@bevocal.com>
Date: Tue, 13 May 2003 23:26:34 -0700
Message-ID: <F73733CC5E11D41189E700D0B74A0C9E04F3E626@exchange.bevocal.com>
To: "'suchir sen '" <suchir_sen@hotmail.com>, "'xmlschema-dev@w3.org '" <xmlschema-dev@w3.org>

Suchir,
When you <include> an XML schema into another , the elements of the included
schema become part of the included schema as if you copy-pasted the included
schema into the containing schema.

Of course , the schema that is included should have the same targetNamespace
attribute as the containing schema or no targetNamespace at all. You can
find more about this at
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#element-include

so , an instance document or other schemas referring to the containing
schema can refer to elements in both the schemas.

Hope this helps,
--navneet

-----Original Message-----
From: suchir sen
To: xmlschema-dev@w3.org
Sent: 5/13/03 10:12 PM
Subject: Can XML Data refer to two or more Schema


Hi All,
I am a student from India. I had created a modular schema wherein I had 
included another schema using the <xs:include> element. Now that I need
a 
XML data which should have elements referring to both these schemas, is
it 
possible to do so, i.e can the XML data file correspond to the schema 
elements from both files?
Thanks a lot,
Suchir.

_________________________________________________________________
IIFA Awards. Vote now. 
http://server1.msn.co.in/msnspecials/iifa2003/index.asp Celebrate Indian

cinema.
Received on Wednesday, 14 May 2003 02:26:55 GMT

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