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

Html tags as part of XML elements rendered as text

Subject: Html tags as part of XML elements rendered as text
From: "Erickson, David" <derickson@xxxxxxxxxx>
Date: Thu, 13 Jul 2000 19:24:46 -0400
xml elements in html tags
I use an XSL stylesheet to parse an XML document into html. The problem is
that one of the XML elements contains HTML tags and the stylesheet renders
it as text in IE5. Below is the XML element:

<?xml version = "1.0"?>
<root_node>
<child_node>
   <category>1011</category>
 
<target>http://www.mysite.com/script.fgi?cat=1011&amp;uid=2000204484&amp;tim
eid=1668</target>
   <image>http://www.mysite.com/img/image.jpg</image>
   <link>&lt;font face=helvetica size=2>&lt;b>this thing
costs&lt;/b>&lt;br>$219.00&lt;/font></text>
</child_node>
</root_node>

This is a portion of the XSL document I am using to parse this XML:

<a><xsl:attribute name="href"><xsl:value-of select="target"/>
</xsl:attribute>Target!!!</a>

<img><xsl:attribute name="src">
<xsl:value-of select="image"/>
</xsl:attribute></img>

<xsl:value-of select="text"/>

The 1st one renders a hypertext link, the 2nd an image. The 3rd renders the
contents of <text> literally.

I need to have <text> rendered as it looks like it should, as HTML with the
<font> and other elements used
in the resultant rendered HTML. I've looked everywhere for an example of
this, but no luck.

Any suggestions?

Dave -


 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.