[xsl] Convert mutiple escaped items from xml to HTML

Subject: [xsl] Convert mutiple escaped items from xml to HTML
From: "Yang" <sfyang@xxxxxxxxxxxxx>
Date: Wed, 22 Aug 2001 14:19:47 +0800
Hi,

I have a xml with a series  of escaped items shown in a text node
and want to convert them into the html tag.

<Comment>This is an example.&lt;br /&gt; &amp; you can find more information
in &lt;a href="http://www.dot.com"&gt; dot.com &lt;/a&gt; &lt;br
/&gt;</Comment>

I  use a recursive replace template from dpawson\Replace.htm to replace the
line break &lt;br /&gt; with <br/>.

But with similar replace template, I can not figure out the proper  symbol
for replacing
&lt;  &gt; in the  anchor link expression and also &amp;.

Would U someone there can provide a clue for the solution?

The html output will be like:

This is an example.</br>
& you can find more information in <a href="http://www.dot.com";> dot.com
</a><br/>

Thanks for help.

Sun-fu Yang

sfyang@xxxxxxxxxxxxx





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


Current Thread