Subject: Re: [xsl] Handling CDATA element From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 09 Feb 2006 11:34:03 -0500 |
I have a question regarding the CDATA element.
<description><![CDATA[html-to-document.xsl no longer converts content to an XDoc. Instead it renders converts documents to XDoc, instead it allows H1, H2 etc. elements to pass through. <br>
<br> ]]></description>
Now in my xsl I have something like the following to preserve the markup of the cdata (it can contain any html markup). ... <xsl:value-of select="description" disable-output-escaping="yes" /> ...
If you remove @disable-output-escaping then it will transformed to <br>
That looses the markup information but result in well-formed markup.
I prefer well-formed over well-presented, but best would be both. ;-)
I am unsure how to fix that, has somebody an idea?
TIA for any informations
-- Upcoming XSLT/XSL-FO hands-on courses: Washington,DC 2006-03-13/17 World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Handling CDATA element, Thorsten Scherler | Thread | Re: [xsl] Handling CDATA element, Jon Gorman |
RE: [xsl] help with select, cknell | Date | [xsl] Selecting nodes with the same, David Trallero |
Month |