No, there is no way to append. The results of the operation would depend strongly on the order of execution of instructions in the stylesheet: it would mean the language is no longer side-effect-free. I'm sure there is a solution to your problem within the functional programming paradigm.
 
Michael Kay
-----Original Message-----
From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Gil Tayar
Sent: 23 November 2003 02:38
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Appending to a result document

Hi,
 
Is there any extension in Saxon (or a feature in XSLT) that enables me to append to a result document created by <xsl:result-document>? Obviously, the output format will probably not be XML (!), but I already know that that is adjustable by <xsl:output).
 
I looked in 7.8 documentation and XSLT spec, but couldn't find anything. But I might have missed it...
 
If there isn't such a feature, I believe my only other option is to read it into a variable in the beginning, append text to the variable, and write it out in the end.
 
Thanks,
Gil Tayar
Chief Technology Officer
WebCollage
Business: +1 (212) 563 2643
Mobile:     +1 (917) 509 9663