Re: [xml-dev] Extract A Subset of a W3C XML Schema?

From
Eric van der Vlist <>
To
Date
2003-07-31T08:22:00Z
ID
<1059639720.16668.428.camel@delleric>
Thread
Re: [xml-dev] Extract A Subset of a W3C XML Schema?
Hi Tom,

On Thu, 2003-07-31 at 05:29, Thomas B. Passin wrote:
> I have been asked what tools can extract a part of a schema.  The overall
> schema is large, complex, and imports five or six other schemas into several
> target namespaces.  The individual involved wants to create a smaller subset
> that contains everything that one project needs, for the purposes of
> instruction and training.

That's not exactly what you are asking for, but Bob DuCharme's schema
stages may be a partial answer to your problem:

http://www.snee.com/xml/schemaStages.html

Basically, you'll have to edit your schemas and flag (using annotations)
what you don't want to keep. A XSLT transformation would then generate
your smaller subset(s).

Hope this helps.

Eric
-- 
If you have a XML document, you have its schema.
                                                  http://examplotron.org
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------