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

Re: HTML tags from XML content

Subject: Re: HTML tags from XML content
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: Sat, 10 Feb 2001 10:36:03 +0000
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 "&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

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.