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 much).

Is this technique limited by memory?  I am processing a large collection of xml docs for import into a database.

thanks again for your quick responses!

On Feb 1, 2008 12:26 PM, Martin Honnen <Martin.Honnen@arcor.de> wrote:
Cecil New wrote:
> 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.

I get the same result with Saxon and with Altova.
If I change the query to

declare variable  $FS := ',';
declare variable  $RS := '&#10;';
declare function local:sequence-to-csv($seq) as xs:string
{
    string-join($seq,$FS)
};
string-join(for $row in ("_1_" , "_2_" , "_3_")
return
concat(local:sequence-to-csv($row),$RS), "")

then the result is as you want it, with no whitespace at the beginning
of the line 2 and 3.

--

       Martin Honnen
       http://JavaScript.FAQTs.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
saxon-help mailing list
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help