RE: [xsl] Problem Translating 'escaped' HTML tags to real HTML

Subject: RE: [xsl] Problem Translating 'escaped' HTML tags to real HTML
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 3 Oct 2002 15:43:08 +0300
FAQ,

> I need to translate an XML doc to HTML. The XML contains HTML 
> tags in the
> format <br> This needs to be translated such that it is 
> seen as a line
> brake tag by the browser.

[snip]
 
> Ideally I would like to simply translate all &lt; to < and 
> all &gt; to > ,
> so all the HTML tags in the XML get displayed properly.

You have the wrong hammer.

  sed -e 's/&lt;/</' -e 's/&gt;/>/'

Cheers,

Jarno

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


Current Thread