I'm having problems with diazo for plone.
I have <esi:include> tags in my page templates but when I use diazo, all those tags are replaced by <include> even if I use mode="raw" or not.
I've found a ungly workaround:
<xsl:template css:match="include">
<xsl:text disable-output-escaping="yes"><esi:include src="</xsl:text>
<xsl:value-of select="@src" />
<xsl:text disable-output-escaping="yes">"></esi:include></xsl:text>
</xsl:template>
But the <include> tags are not replaced by <esi:include when the html is put with mode="raw".
Any idea?
Thank you very much.
If you want bare XSL to be processed in raw mode, you'll need to add method="raw" to your xsl:template tag. You may need to have two versions of your template tag, one for method="raw" and one for default (no method attribute).
Templates in XSL only match if their method matches. If there's no method in the apply specified in the apply template tag, then the method is "default".
When you indicate 'mode="raw"' in Diazo, it puts method="raw" in the apply template call, which skips most post processing, including any XSL templates for which you don't specify method="raw".