This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]