Thread: XML/XSL Help!
View Single Post
Old 10-24-2008, 09:19 PM   #13
Barnes
Franchise Player
 
Barnes's Avatar
 
Join Date: Aug 2005
Location: Violating Copyrights
Exp:
Default

Quote:
Originally Posted by photon View Post
The copy's going to be reproduced exactly as is, if you want line breaks inside the copy then you're going to have to do something to have the XML parser ignore the HTML in it.

I think you use the CDATA tag to do that:

Code:
<![CDATA[We are pleased to announce version 2.0 of our software.<br/><br/>This new version includes many new enhancements as well as bug fixes.<br/>This update can be downloaded by launching your software update.<br/>Training is also available.<br/>Contact your sales person for more info.]]>
You may need to add a disable-output-escaping="yes" attribute to the xsl:value-of tag.

EDIT: Or use a tag:

Code:
<td><xsl:cdata><xsl:value-of select="copy"/></xsl:cdata></td>
Hmmm... that may be it. I will try it out. Thanks!
Barnes is online now   Reply With Quote