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

Re: Carriage return in XSL output

Subject: Re: Carriage return in XSL output
From: Corneanu Dan <cdan@xxxxxxxxxxx>
Date: Tue, 11 Jun 2002 13:10:29 +0300
xsl carriage return 160
Hi,

for inserting space characters you can use &#160;
for CR you can find the code on the net, I don't remember it know.

I think is &#x0d;


Hope it helps.


trang_nguyen@xxxxxxxxxxx wrote:

Hi,

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>&#xD</text>
	Cost Factor2: <xsl:value-of select="@CostFactor2"/><text>&#xD</text>
	Cost Factor3: <xsl:value-of select="@CostFactor3"/><text>&#xD</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"/>&#xD
	Cost Factor2: <xsl:value-of select="@CostFactor2"/>&#xD
	Cost Factor3: <xsl:value-of select="@CostFactor3"/>&#xD
</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



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.