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]

Re: HTML tags from XML content


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 "<P>" 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


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