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

RE: Appending output to multiple documents

Subject: RE: Appending output to multiple documents
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 12 Jun 2001 10:53:59 +0100
RE:  Appending output to multiple documents
> Been playing a bit with Saxon and its partial implementation
> of the XSLT
> 1.1 draft.  here. I've been wondering if there is a way for multiple
> <xsl:document/> constructions that reference the same file to *append*
> their outputs to the file instead of truncating the original file and
> replacing its contents.

No, that's not part of the W3C specification, and it's not part of the Saxon
implementation. I think the xalan:redirect extension offers this capability,
though.

It's difficult to specify because it's intrinsically undefined what order
things happen in: XSLT is not a sequential language.

I would suggest writing the output files to separate entities, and then
bringing them together using entity references; or just rearrange the
stylesheet logic so each output file is written by one template - that's how
you have to organise things to produce any other chunk of output, after all.

Mike Kay
Software AG


 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.