Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Tool for flattening distributed XML schemas

From: "Paul Kiel" <paul@------.--->
To: "'Andreas Hoenen'" <andreas.hoenen@-----.-->, <xmlschema-dev@--.--->
Date: 6/20/2006 10:25:00 AM
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@h...
--------------------------------------------
Attend HR-XML in Barcelona, October 2006




 

-----Original Message-----
From: xmlschema-dev-request@w... [mailto:xmlschema-dev-request@w...] On Behalf Of Andreas Hoenen
Sent: Friday, May 19, 2006 3:31 PM
To: xmlschema-dev@w...
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@a...>

GPG: 1024D/B888D2CE
     A4A6 E8B5 593A E89B 496B
     82F0 728D 8B7E B888 D2CE



From chris_webster@a... Mon Jun 26 04:47:20 2006
Received: from wiggum.w3.org ([128.30


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent