Re: [xsl] HTML tags from XML content

Subject: Re: [xsl] HTML tags from XML content
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: Sat, 10 Feb 2001 10:36:03 +0000
On Sat, 10 Feb 2001, Mingbo Qin wrote:
> Hell,
> 
> I am trying to transform an XML file to HTML format. The original XML
> elements contain some HTML formatting tags in "&amp;lt;P&amp;gt;" format. 

If they are in that format they are NOT tags, just text. 
Tags begin with a "<" sign.

> If I don't do anything about it, "&lt;P&gt;" will be displayed, that is, the 
> "&amp" is converted to "&" and that is it. 

That's what is supposed to happen.  

> I want this to be converted to "<P>". My guess is even if somehow I can make
> this to happen, a "<P>" string will be diplayed on the browser. 
> 
> Is there any way that I can recover this "<P>" tag so that a browser would
> understand, that is, not display character "<P>", but begin a NEW PARAGRAPH?

It is probably possible to kludge your way round this in XSLT but the
long-term solution is to make sure your file contains the right data
before you process it. 

///Peter

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


Current Thread