Processing XML containing html element in CDATA and creating XSL-FO equivalent elements



I have a XML file from which I am generating PDF. My XML file has multiple elements with CDATA which also contains html(list, table) contents.


I would like to process these html content from CDATA and transform that as XSL-FO list and table. Could you please help with the approach?


Sample XML file is as follows:



<Contact-info>
<email>sandesh@xyz.com</email>
<address>
<![CDATA[
<ul>
<li>abc, MUM</li>
<li>lmn, NY</li>
<li>xyz, MI</li>
</ul>
]]>
</address>
<phone>
<![CDATA[
<ul>
<li>123456789, Home</li>
<li>987654321, Ofc</li>
</ul>
]]>
</phone>
</Contact-info>

No comments:

Post a Comment