Hi All,
I have a simple xml and iam trying to apply the xsl on the i/p xml to generate the simple o/p xml, but when iam tranformation applies ->the o/p xml getting nested Cdata sections in a single Node.

For Ex :
<nodeName>
- <![CDATA[ Content 1 ]]>
- <![CDATA[ Content 2 ]]>
- <![CDATA[ Content 3 ]]>
- <![CDATA[ Content 4 ]]>
</nodeName>
Iam using JDK1.4 and here is the My I/P XML
ip.xml
<root>
<content>Content 1 Content 2 Content 3 Content 4</content>
</root>
Apply.xml
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes" cdata-section-elements="content"/>
<xsl:template match="root/content">
<xsl:element name="content">
<xsl:value-of select="content" disable-output-escaping="yes"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

Here is the my java Code
String ip = "ip.xml";
String op = "op.xml";
String xsl="Apply.xsl";
Transformer transformer = tFactory.newTransformer(new StreamSource(xsl));
transformer.transform(new StreamSource(ip), new StreamResult(new FileOutputStream(op)));