xsl-list
[Top] [All Lists]

RE: How can I do a string substitution for turning entities into html tags

2003-04-15 16:17:30


<xsl:value-of select="text"  disable-output-escaping="yes"/>

-----Original Message-----
From: Bill Chmura [mailto:Bill(_at_)Explosivo(_dot_)com]
Sent: Tuesday, April 15, 2003 2:38 PM
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] How can I do a string substitution for turning entities
into html tags



I am not sure if the subject line conveyed it, but I am not really sure
how to describe it at this point.

Here is an example of my xml data

<text>
   &lt;p&gt;Sometext here. Followed by more text&lt;/p&gt;
   &lt;p&gt;More text.&lt;/p&gt;
   &lt;li&gt;For more info see &lt;/li&gt;
</text>

Because of the way the program that generates it is handling it, the
html markup tags are converted to the entities for < and >.  In my XSL I
need to change them back to the specific markup tags.

What is the best way to go about this?  

Any advice or examples would be fantastic and much appreciated

Bill


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list