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

Re: Merging XSD's using XSLT

Subject: Re: Merging XSD's using XSLT
From: "Anthony B. Coates" <abcoates@xxxxxxxxxx>
Date: Tue, 8 Jul 2003 23:19:12 +0100
merging xsd
** Reply to message from "Venkat Gyambavantha" <vgyambav@xxxxxxxxx> on Tue, 8
Jul 2003 14:47:40 -0700

> I have 3 XSD's. Third XSD is imported into the second, and the second into
> the first schema file. If i start with the first schema file, is there a way
> i can merge all the imported schema's recursively if applies) into a single
> schema file?

I have done this successfully, but in stages.  In the first stage, I parse the
includes (using 'document()') and annotate the top schema with a list of what
is imported, and from which Schema.  That list of imports is hierarchical, so
in stage 2 I flatten it.  In stage 3, I remove duplicates.  Finally, in stage
4, I actually process the annotated includes to produce the inlined Schema.

It may be possible to reduce the number of passes, but it complicates the
scripts too much (in my opinion) to do so.  Better to have more stages and
simpler scripts.

	Cheers,
		Tony.
====
Anthony B. Coates, Director
Information Design, Messaging and Management
mailto:abcoates@xxxxxxxxxx
Mobile/Cell: +44 (79) 0543 9026
====
MDDL Editor (Market Data Definition Language)
http://www.mddl.org/
FpML AWG Member (Financial Products Markup Language)
http://www.fpml.org/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
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-2013 All Rights Reserved.