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

Re: Tools for transforming a multiple schema document intoa si

  • To: xml-dev@l...
  • Subject: Re: Tools for transforming a multiple schema document intoa single document?
  • From: David Carver <d_a_carver@y...>
  • Date: Fri, 13 Jan 2006 15:11:21 -0500
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:Message-ID:Date:From:Reply-To:User-Agent:MIME-Version:To:Subject:Content-Type:Content-Transfer-Encoding; b=gzJEcqdv6YsTCGXb7Sy7GCsMPEe/FCsagoQYywLJTSaAZ815cwkn1HyP/rYkmwIKM7DtNmm7yvn/HjpSc9vvwvGfq2Em4W4V6y2TQlqyeEdks8jpiXdPiZKcPhC+WH4lHMUwkGfLH1rhe/hRdBvi2gJGm+/JIfdjmrgCB+92dbo= ;
  • Reply-to: d_a_carver@y...
  • User-agent: Thunderbird 1.5 (Windows/20051201)

Re:  Tools for transforming a multiple schema document intoa si
Michael Kay wrote:
> It's not possible, in general: if two schema documents have different 
> target namespaces, they can't be merged.
>  
> If the target namespace is the same, and other document-level 
> attributes such as elementFormDefault are compatible, then I should 
> think the merge can be done with a very simple stylesheet (or in most 
> cases, by copy-and-paste).
>  
> Michael Kay
> http://www.saxonica.com/
>
Michael is correct it can be done with a XSLT stylesheet if the schema 
instances are all in the same namespace.  I wrote such a stylesheet for 
work, but needed to use a SAXON extension to keep track of what had 
already been added to the output document.   Unfortunately, I currently 
can't share this stylesheet, unless work gives me permission.

If you search the XSLT mailing list, you should find some sample code 
that I had written that should point you in the  general direction.

Dave


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.