[PHP] Processing custom XML namespace within XSL
- by sander
I'm using the php class XSLTProcessor to generate HTML from a xsl. Within the xsl, I'd like all my custom namespace elements to be processed by my own processor class.
So for example:
<xsl:for-each select="doc/elements/*">
<doc:renderElement element="." />
</xsl:for-each>
This should call the method renderElement of an instance of my custom processor class.
I know I can enable calling php functions by using the registerPHPFunctions function. However, this only seems to support calling static methods.