This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: HTML tags from XML content
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] HTML tags from XML content
- From: Peter Flynn <peter at silmaril dot ie>
- Date: Sat, 10 Feb 2001 10:36:03 +0000
- Cc: Mingbo Qin <mqin at Stockpoint dot com>
- Organization: Silmaril Consultants
- References: <9582246BE3F5D311BD5C009027B0BF960152B978@mailoak1.neural.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
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 "&lt;P&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, "<P>" will be displayed, that is, the
> "&" 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