This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Appending output to multiple documents
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Appending output to multiple documents
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 12 Jun 2001 10:53:59 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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