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

RE: Merging two documents

Subject: RE: Merging two documents
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 14 Sep 1999 09:26:26 +0100
merging two separate documents
> If you look at James Clarks latest XT parser
> he implements the document function...
> 
> I would be really interested in how this is implemented
> with examples!
> 
I can tell you how it's implemented in SAXON, though the only example of its
use is in the SAXON XSL compiler itself, where the document() function is
used to implement xsl:include.

The main difficulty in using document() is in ensuring it is only called
once for each document referenced. Unfortunately the XSL spec doesn't say
when or how often a function is executed, nor does it say whether two
separate calls on document("fred.xml") will give you two separate documents
(i.e., is count(document("fred.xml")|document("fred.xml")) equal to 1 or
2?). I suspect SAXON and xt might not always give the same answer, even
though both conform to the spec.

Mike Kay


 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.