RE: [xsl] Appending output to multiple documents

Subject: RE: [xsl] Appending output to multiple documents
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 12 Jun 2001 10:53:59 +0100
> 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,

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:

Current Thread