I was questioned if i could transform an xml by using xsl (1.0) but with keeping the CDATA elements even if there is no content in it. As xsl beginner i am a little bit overwhelmed by that question...here is a simple sample.what i have\[code\]<AMOUNT/>\[/code\]what i want\[code\]<AMOUNT><![CDATA[]]></AMOUNT>\[/code\]
- is there a way to force empty cdata segments with no content?
- Is there a way to do it for all elements in the file?
- Is there a way to do it just for the ones in the cdata-section-elements?