Thread: XML/XSL Help!
View Single Post
Old 10-24-2008, 09:10 PM   #11
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

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>
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote