[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

excess whitespace

Subject: excess whitespace
From: Christopher Conway <chris_conway@xxxxxxxxxxxx>
Date: Fri, 16 Jul 1999 10:16:54 -0400
excess whitespace
I'm using XSL to convert XML to tab-delimited text and I'm
having problems with added carraige returns. The code looks
like this:

<xsl:template match="/">
<xsl:text>FIELD1&#9;FIELD2&#9;FIELD3</xsl:text>
<xsl:apply-templates />
</xsl:template>

<xsl:template match="record">
<xsl:value-of select="field_1" /><xsl:text>&#9;</xsl:text>
<xsl:value-of select="field_2" /><xsl:text>&#9;</xsl:text>
<xsl:value-of select="field_3" />
</xsl:template>

And the output ends up looking like this:

FIELD1	FIELD2	FIELD3

data1.1	data1.2	data1.3

data2.1	data2.2	data2.3

data3.1	data3.2	data3.3
...

In short, I'm gaining newlines where none are indicated in
my stylesheet. The bitter irony of this is that up till now,
I've been having problems with whitespace getting excessively
trimmed. I get this behavior with XT and Saxon, but not with
XJParser. Is there something in the spec I'm missing?

Thanks,
Chris

-- 
chris_conway@xxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.