This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: FW: Carriage return in XSL output
- From: Hans Huber <hans dot huber at ecube dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 11 Jun 2002 12:24:13 +0200
- Subject: Re: [xsl] FW: Carriage return in XSL output
- Organization: eCube GmbH
- References: <D9FF8D94E30AD4119C6100D0B723E40108D5604C@nereide.germany.agilent.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi,
it would be a good idea not to address your xsl-list mails to xsl-list-digest as well,
wouldn't it?
Thanx,
Hans.
trang_nguyen@agilent.com wrote:
Hi,
Sorry, I found that I had a syntax problem. This works fine:
<description>
Cost Factor1: <xsl:value-of select="@CostFactor1"/><xsl:text>
</xsl:text>
Cost Factor2: <xsl:value-of select="@CostFactor2"/><xsl:text>
</xsl:text>
Cost Factor3: <xsl:value-of select="@CostFactor3"/><xsl:text>
</xsl:text>
</description>
Regards,
Trang
=========================================================================
I am running into problems inserting whitespace characters into my output document. The following syntax in my stylesheet produces an error during transformation (with both MSXML4 and xalan):
<description>
Cost Factor1: <xsl:value-of select="@CostFactor1"/><text>
</text>
Cost Factor2: <xsl:value-of select="@CostFactor2"/><text>
</text>
Cost Factor3: <xsl:value-of select="@CostFactor3"/><text>
</text>
</description>
Error: An invalid character was found
If I don't specify the carriage return within the text node body, I get the error: Whitespace is not allowed at this location.
<description>
Cost Factor1: <xsl:value-of select="@CostFactor1"/>
Cost Factor2: <xsl:value-of select="@CostFactor2"/>
Cost Factor3: <xsl:value-of select="@CostFactor3"/>
</description>
Can someone tell me the correct way to handle this? Thanks!
Trang
___________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list