According to the spec, you're not allowed to execute two xsl:result-document
instructions using the same URI. This is because of the theory that
everything in XSLT is done in an undefined order, perhaps even in parallel.
However, there's nothing that stops you writing to different URIs and then
capturing the output and sending it all to the same file. In the Saxon API
you can set an OutputURIResolver, and it's this that determines where the
data ends up. There's nothing to stop you for example writing to URIs
file:///c:/temp.xml#1, file:///c:/temp.xml#2 and so on, and having all the
data end up in c:/temp.xml.
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: J. Zhang [mailto:j(_dot_)zhang(_at_)uva(_dot_)nl]
Sent: 17 July 2007 11:47
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Appending to existing file
I am writing my output to multiple files. However, I need to
write my output to existing files that have already been
created. In Saxon I get an error:
XTDE1490: Cannot write more than one result document to the
same URI, or write to a URI
Simple question: How can you append to an existing file?
Thanks,
jz
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--