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]

outputting raw HTML from element body??


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

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