cbichis 0 Newbie Poster

Hello,

I am working on a complicated application which requires lot of work with templates.

Sample case:
- i have one xml file in which nodes contains normally html code
- i have one xsl file which has xsl formatting for that xml data

Ok, until now nothing special.

But what if xml itself has on his noeds a mix of html and xsl code
Sample:
<NODE><![CDATA[<h1><xsl:value-of disable-output-escaping="yes" select="HEADLINE"/></h1><div class="plugin"><xsl:value-of disable-output-escaping="yes" select="CONTENT"/></div>]]></NODE>

Ok, under a normal apply of xls content of xml should be styled.
But here xml itself contains xsl commands... How is possible to "unescape" those commands from CDATA and "run them", and then run xsl commands.

Application is created on PHP with php_xsl support.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.