[xsl] transforming xml data in cdata

Subject: [xsl] transforming xml data in cdata
From: road speeder <roadspeed2002@xxxxxxxxx>
Date: Sun, 8 Nov 2009 18:58:51 -0800 (PST)
Hi, I have the following xml data:
<Sale><Site>101</Site>
<Details><![CDATA[ <?xml version="1.0"?><items><item>desk</item><cost>10</cost></items> ]]>
</Details>
</Sale>
 
 I have an xslt "my.xslt" that tranforms the elements above except cdata part to result.xml. e.g <SalesItem><Location>101</Location></SalesItem>
 However, I also have "another.xslt" that can transform the xml part within the cdata section.
 I would like to import "another.xslt" into my.xslt and be able to transform the xml document within cdata as well.
 With the result looking similar to the following:
 <SalesItem><Location>101</Location><SkuDetails>
 <![CDATA<?xml version="1.0"?><skus><sku>desk</sku><amount>10</amount></skus>]]>
</SkuDetails></SalesItem>

Any ideas would be appreciated if this can be accomplished.
Thanks

Current Thread