Re: [xsl] transforming from xml to text -- creates a blank line on the first line

Subject: Re: [xsl] transforming from xml to text -- creates a blank line on the first line
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 25 Oct 2005 14:18:00 +0100
sorry I see you did post your code.


xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:fn="http://www.w3.org/2005/02/xpath-functions";
xmlns:xdt="http://www.w3.org/2005/02/xpath-datatypes";


why have you declared these namespaces? Yout project doesn't appear to
use xSL-Fo at all, and the fn and xsdt namespaces seem suspect, the
current draft uses 2005/xpath-datatypes and the previous one used
2005/04/xpath-datatypes, The one before did use /02 but in any case you
don't use these namespaces.

<xsl:template match="/">
&#60;ASCII-WIN&#62;

that generates a text node that starts
newline < a s C ...

If you don't want it to start with a newline, delete the newline

<xsl:template match="/">&#60;ASCII-WIN&#62;


David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread