Re: [xsl] Preserve CDATA for all elements

Subject: Re: [xsl] Preserve CDATA for all elements
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 14 May 2006 19:49:15 +0200
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.

. . . . . . . . . . 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

Current Thread