This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Convert mutiple escaped items from xml to HTML


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@unisvr.net.tw





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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]