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

outputting raw HTML from element body??

Subject: outputting raw HTML from element body??
From: e e <furriskey@xxxxxxxxx>
Date: Thu, 27 Jul 2000 14:56:56 -0700 (PDT)
xsl raw html
I have an element in my XML document containing HTML
tags, e.g.


<body.content>
<p>An earthquake struck western Colombia on Monday,
killing at least
143 people and injuring more than 900 as it toppled
buildings across
the country's coffee-growing heartland, civil defense
officials
said.</p>
</body.content>

The only way I know of getting this content ,
including the HTML tags, through XSLT is to have CDATA
tags in the source document, 
and to use disable-output-escaping="yes" when
selecting the content. e.g.

<body.content>
<![CDATA[
<p>An earthquake struck western Colombia on Monday,
killing at least
143 people and injuring more than 900 as it toppled
buildings across
the country's coffee-growing heartland, civil defense
officials
said.</p>
]]>
</body.content>

<xsl:value-of select="body.content"
disable-output-escaping="yes"/>

Without those CDATA tags the <p> tags are stripped out
alltogether.

Is there any way of outputting the content of elements
containing xhtml markup without modifying the source
document to use 
CDATA??

Thanks,
Evan.

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/


 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.