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

Formatting CDATA information

Subject: Formatting CDATA information
From: "Chan, Tina" <Tina.Chan@xxxxxxxx>
Date: Fri, 26 Jan 2001 12:35:35 -0800
cdata formatting
> I am using an XSL stylesheet to format and XML document into an HTML
> document.  In the XML document there is a CDATA tag as follows:
> 
> <failure type="junit.framework.AssertionFailedError">
> 			 <![CDATA[ 
> 					junit.framework.AssertionFailedError
> 						at
> junit.framework.Assert.fail(Assert.java:143)
> 						at
> junit.framework.Assert.assert(Assert.java:19)
> 			  ]]> 
> </failure>
> 
> Here is my XSL:
> 
> <xsl:template match="failure">
> 	<p>FAILURE INFO:</p>
> 	<xsl:value-of select="."/>
> </xsl:template>
> 
> The problem is that when this gets converted to HTML all of the line
> breaks in the CDATA section are lost, and it becomes one long line.  Is
> there a way to format what's inside the CDATA tag to have <br> after each
> line?
> 
> Thanks.

 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.