This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Carriage return in XSL output


Hi,

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

I think is 


Hope it helps.

trang_nguyen@agilent.com 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]