There are various techniques you can use to reduce memory
requirements. If you are processing a large collection of small input documents
then the simplest is probably to use saxon:discard-document() which
allows each document to be garbage-collected after use.
That did the trick, thanks a bunch. I did have to throw a lot
of heap space at it (I used -Xmx1000m ... not sure I needed that
Is this technique limited by memory? I am processing a
large collection of xml docs for import into a database.
for your quick responses!
On Feb 1, 2008 12:26 PM, Martin Honnen <Martin.Honnen@arcor.de
Cecil New wrote:I get the same result
with Saxon and with Altova.
> I am creating a CSV file from a
collection of xml documents using the
> text output method. The
second and following lines have a blank at the
> beginning. I
cannot figure out how to suppress it.
If I change the query to
string-join(for $row in ("_1_" , "_2_"
declare variable $FS := ',';
$RS := ' ';
declare function local:sequence-to-csv($seq) as
then the result is as you want it, with no whitespace at the
of the line 2 and 3.