I guess it's happening b/c I only told the processor that the text of
myElement itself should be cdata, but once there's valid xml inside (ie.
more elements), then it's a new element. (correct me if I'm wrong.)
not a new element, but the cdata-section hint only applies to text
nodes, clearly you can't have elements inside a CDATA section, that's
their whole point.
If you are trying to produce
<abc><![CDATA[<x>aaa</x>]]></abc>
then note that this is the same as
<abc><x>aaa</x></abc>
so you need to create an abc with just that single text node in your
stylesheet, and then use the cdata-elements to request that it be output
using CDATA rather than < (although it shouldn't make any difference
to the following application which form is used)
David
--
http://www.dcarlisle.demon.co.uk/matthew
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list