xsl-list
[Top] [All Lists]

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

2005-10-25 06:18:00

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
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--