W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2003

reuse of schema

From: Rolf Schumacher <rolf@august.de>
Date: 05 Nov 2003 17:24:04 -0800
Message-ID: <20031104132335.21065.qmail@myhosting.de>
To: www-xml-schema-comments@w3.org




Does anybody know of an example
showing the reuse of a schema (defining its own targetNamespace)
within a covering schema (defining a different targetNamespace).

--the task:
there is an existing schema which can be used for validation of complete 
xml files.

Now I would like to apply the same rules to an element of a covering, 
bigger xml structure where the former root name now becomes the elements 
name.

The inner schema should keep its structure while be use by the covering one.
--end of task

I played aroung with <xs:include/> and <xs:import/> without success. 
<include/> looked like the wrong way. And <import/> won't be processed by 
the validator as I understood it (my be wrong). So - if there is a working 
example I could start from there.
Received on Wednesday, 5 November 2003 20:26:43 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:01 UTC