Hi All,

I am trying to parse the below XML with XSL file but not successful.
Here are few points:
1. If you observe the below xml has node called "MyObject", which has prop called "objectInformation".
2. I want to parse this and read its content. Later the same will be rendering in PDF file. For test purpose trying to open xml in IE9.0
3. objectInformation has a rich text in it within node with name: "node3"


Please let me know if my XSL file is not right. If not, please suggest solution to pasre this XML and render it successfully

XML File:

Code:
<?xml version="1.0"?>
<comment xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="comment.xsd">
<MyObject objectInformation="&lt;node1>&lt;node2>some Information here&lt;/node2>&lt;node3>&lt;![CDATA[&lt;TEXTFORMAT LEADING=&quot;2&quot;>&lt;P ALIGN=&quot;LEFT&quot;>&lt;FONT FACE=&quot;Verdana&quot; SIZE=&quot;11&quot; COLOR=&quot;#403F3F&quot; LETTERSPACING=&quot;0&quot; KERNING=&quot;0&quot;>&lt;B>&lt;I>comment in for new object&lt;/I>&lt;/B>&lt;/FONT>&lt;/P>&lt;/TEXTFORMAT>]]>&lt;/node3>&lt;node4>07/18/2013&lt;/node4>&lt;/node1>"></MyObject>
</comment>
XSL FILE (for test purpose):

Code:
<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:fo="http://www.w3.org/1999/XSL/Format"
  xmlns:saxon="http://saxon.sf.net/"
  exclude-result-prefixes="saxon"
  version="2.0">

<xsl:output method="xml" indent="yes"/>

<xsl:template match="MyObject">
  <xsl:apply-templates select="saxon:parse(@objectInformation)/node()"/>
</xsl:template>

<xsl:template match="node3">
  <xsl:apply-templates select="saxon:parse(.)/node()"/>
</xsl:template>

<xsl:template match="TEXTFORMAT">
  <fo:block>
    <xsl:apply-templates/>
  </fo:block>
</xsl:template>

<xsl:template match="P">
  <fo:block>
    <xsl:apply-templates/>
  </fo:block>
</xsl:template>

</xsl:stylesheet>