Re: [xsl] Preserve CDATA for all elements

Subject: Re: [xsl] Preserve CDATA for all elements
From: "Jagdishwar (Jagsmiles)" <jagsmiles@xxxxxxxxx>
Date: Sun, 14 May 2006 20:24:58 +0200
On 5/14/06, G. Ken Holman <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:
At 2006-05-14 19:28 +0200, Jagdishwar (Jagsmiles) wrote:
>Is there any way, where i can specify in xsl, to preserve all the
>CDATA for all the elements of the source xml document.

No, the spec is quite explicit:

- Section 3.4 states elements= is a set of name tests
- Section 16 states cdata-section-elements is a set of qualified names

And note that using cdata-section-elements= one is not "preserving"
the CDATA section, only emitting a CDATA section ... there is no
awareness of any use of CDATA sections in the files that create the
source trees.
This is an important statement. Thanks a lot: CDATA elements are
emitted for the elements specified in cdata-section-elements
attribute.
(till now, i was thinking that, it preserves the "CDATA" if source
element has CDATA. which was not correct)



. . . . . . . . . . Ken


--
Registration open for XSLT/XSL-FO training: Wash.,DC 2006-06-12/16
Also for XSLT/XSL-FO training:    Minneapolis, MN 2006-07-31/08-04
Also for XML/XSLT/XSL-FO training:Birmingham,England 2006-05-22/25
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



-- Kind Regards, Jagdishwar, Jagsmiles AT gmail DOT com

Current Thread