Hi all,
My problem is the following:
In an xml-schema I have defined an element (content) that contains mixed data. Specifically contains strings coupled with html tags and the "code" element. Below I have an example of an instance:
<content>
<p>Before the code</p>
<code lang="xml">
<![CDATA[
System.out.println("Hello");
]]>
</code>
<p>After the code</p>
</content>I have tried to create a template for the "content" but I cannot do it properly. The xslt applies correctly the template of code but not the remaining data (html script). It does not print the html tags.
The generated html returns the following html segment (notice that it also returns the "content" tags):
<content> Before the code
<i>System.out.println("Hello");</i>After the code </content>
Below I include the xslt template of the content element:
<xsl:template match="content">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>Do you know how I will force xslt to print the html tags?
Thank you in advance, Kostas
