[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Tool for flattening distributed XML schemas

From: Paul Kiel <paul@hr-xml.org>
Date: Tue, 20 Jun 2006 14:24:44 -0400
To: "'Andreas Hoenen'" <andreas.hoenen@arcor.de>, <xmlschema-dev@w3.org>
Message-ID: <001501c69496$ce3dce00$6401a8c0@monkeyboy>
flatten xsd

Andreas,

I had this same need and created a pair of XSLTs to do the job.  The first simply walks the "includes" and merges them
all into a single result.  The second takes the result and eliminates duplicate or colliding global components and
alphabetizes the rest.  

Because this is a bit of a hack on my part, I am happy to share it with you, but I don't have it published anywhere
outside our Consortium.  Ping me offline if you are interested.

Cheers,
Paul






W. Paul Kiel
HR-XML Consortium
paul@hr-xml.org
--------------------------------------------
Attend HR-XML in Barcelona, October 2006




 

-----Original Message-----
From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On Behalf Of Andreas Hoenen
Sent: Friday, May 19, 2006 3:31 PM
To: xmlschema-dev@w3.org
Subject: Tool for flattening distributed XML schemas

Hello,

consider the case of constructing a distributed XML schema:

One top level file besides defining the root element includes other "library" files, actually referencing only some of
the types provided by those.  Some type definitions are taken unchanged, others get redefined.
Thus it may become quite complicated to understand the resulting XML language.

Does anyone know about a tool (API, script, algorithm, ...) that is able to "flatten" the distributed schema, that is
filtering out all superfluous types, resolving the redefinitions and presenting the result as a new, equivalent schema?

Open source tools would be preferred :-)

Thanks for you attention, Andreas
________________________________________________________________________
Andreas Hoenen <andreas.hoenen@arcor.de>

GPG: 1024D/B888D2CE
     A4A6 E8B5 593A E89B 496B
     82F0 728D 8B7E B888 D2CE
Received on Tuesday, 20 June 2006 18:24:54 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.