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

RE: Merging two xml documents using xslt

Subject: RE: Merging two xml documents using xslt
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 1 Feb 2005 20:03:10 -0000
merging 2 xml document
> That helps. If you don't want to use it, pretty much the only way to 
> achieve what was requested is by a two-stage process.
> 
> Stage 1 would run a stylesheet on the configuration document 
> to generate a 
> stylesheet.
> 
> Stage 2 would run the resulting stylesheet on the source document(s).
> 
> Using saxon:evaluate should allow you to do it in one pass.

It's a little bit trickier than that, because the XPath expression
identified elements to be modified. Evaluating a dynamic XPath expression to
give a set of nodes is one thing; writing a stylesheet that modifies the
nodes in the result of that expression is another.

Also there are multiple expressions, and doing one pass (i.e. a document
copy) for each expression sounds expensive.

If the expressions are constrained to be XSLT patterns, then it would
probably be easier to generate a stylesheet dynamically in this situation.

Michael Kay
http://www.saxonica.com/

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.