Good point, sorry for the oversight.
I am currently attempted to transform my content from within a Java
application. I am using Java 1.4.2_04. I have tested this with both
the default Xalan distribution which I believe is 2.2, and with Saxon
6.5.3. In both cases I get the same result. I will test with some
other versions, as well as try it from the command-line and see if I get
any different results.
Thank you,
Adam
-----Original Message-----
From: vsubramanian(_at_)xperts(_dot_)com
[mailto:vsubramanian(_at_)xperts(_dot_)com]
Sent: Thursday, June 24, 2004 10:03 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] newline headaches in text output
I tried using Xalan-Java version 2.6.0 and Saxon and it worked fine for
me.
You might want to tell us a little background on what processor you are
using.
Thanks,
Vidya
-----Original Message-----
From: Butler Adam [mailto:abutler(_at_)AGRIS(_dot_)com]
Sent: Thursday, June 24, 2004 9:42 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] newline headaches in text output
Hello,
I am currently attempting to generate delimited text files from XML
source documents using XSL. When I perform the transformation I get
extra newlines at the beginning of the target document. I have read
through the FAQ and the topic: "text output method, and newline
problems", while relevant didn't provide me with a solution. I have
included a simple xml object and a simple xsl sheet. Any advice would
be greatly appreciated.
Thank you,
Adam
Stylesheet:
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:strip-space elements="*"/>
<xsl:output method="text"/>
<xsl:template match="people">
<xsl:for-each select="person">
<xsl:text/><xsl:value-of
select="name"/><xsl:text>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
XML:
<?xml version="1.0" encoding="UTF-8"?>
<people>
<person>
<name>A</name>
</person>
<person>
<name>B</name>
</person>
<person>
<name>C</name>
</person>
</people>
My result:
____File Begin___
A
B
C
--+------------------------------------------------------------------
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>
--+--
--+------------------------------------------------------------------
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>
--+--