Maintenance: Planio will be observing a scheduled maintenance window this Sunday, November 10, 2024 from 20:00 UTC until 21:00 UTC to perform important network maintenance in our primary data center. Your Planio account will be unavailable for a few minutes during this maintenance window.
Forums » Saxon-CE help »
Omit blank line in text output
Added by Skip Addison almost 12 years ago
I'm using Saxon-CE to convert some values buried in the middle of an XML file to a tab-separated text file for import into a program that doesn't provide native XML support. It's working great. Thanks for creating this program, and thanks to the extended XQuery community.
I have one annoyance I'd like to get rid of. The output file includes a blank initial line. Here's the output:
id action eff_date gender active_status deceased
10183 add 20-Nov-2012 Male Active Yes
RECORD COUNT: 1
Neither of the following prologs seem to work.
declare namespace saxon="http://saxon.sf.net/";
declare option saxon:output "method=text";
and
declare namespace saxon="http://saxon.sf.net/";
declare option saxon:output "omit-xml-declaration=yes";
Any suggestions?
I think you've raised this on the wrong forum: Saxon-CE is the client-side XSLT 2.0 implementation (with no XQuery and no serialization). I'll reclassify it as appropriate.
You should be using method=text here, and there should be no initial blank line. If your query is outputting an initial blank line, then I think we will need to see the query to understand why - and perhaps see the way you are invoking the query, in case that is relevant.
Oops. You're right. I'm using Saxon-HE 9.4.0.6J. Sorry for the brain fart.
In any case, when I looked at the query again, I realized what the problem was. ... So, never mind. Thanks for being responsive.
Please register to reply