Is it possible in XSLT to parse a CDATA node into a document node (assuming that there is a valid document in the CDATA node)?
For instance, in the following source document I would like to output the
CDATA content of INPUT as XML on the result document.
<INPUT name="PurchaseOrder" type="???">
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<data>
<PurchaseOrder>
<contact type="string" />
<address type="string" />
<items>
<name type="string" />
<price type="double" />
<quantity type="int" />
</items>
<customer type="string" />
</PurchaseOrder>
</data>]]>
</INPUT>
The result should look like the following document:
<INPUT name="PurchaseOrder" type="???">
<data>
<PurchaseOrder>
<contact type="string" />
<address type="string" />
<items>
<name type="string" />
<price type="double" />
<quantity type="int" />
</items>
<customer type="string" />
</PurchaseOrder>
</data>
</INPUT>
