[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Convert mutiple escaped items from xml to HTML

Subject: Convert mutiple escaped items from xml to HTML
From: "Yang" <sfyang@xxxxxxxxxxxxx>
Date: Wed, 22 Aug 2001 14:19:47 +0800
replacing lt
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.