[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Appending to existing file

Subject: RE: Appending to existing file
From: "Colin Adams" <colinpauladams@xxxxxxxxxxx>
Date: Tue, 17 Jul 2007 11:54:02 +0100
RE:  Appending to existing file
From: "J. Zhang" <j.zhang@xxxxxx>

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?

Write your output to a temporary file, then after XSLT finishes, use an operating system command (or programming language library command) to append the contents of the temporary file to the existing file.


Alternatively, you could read the existing file using an alias URI to get the existing contents, and then write it out as part of the transformation. This is quite likely to not work. (you might well find the existing contents to be empty).

_________________________________________________________________
The next generation of Hotmail is here! http://www.newhotmail.co.uk

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.