- 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>
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 UTC