[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|