PHP in XSLT. XSLT Example
php-in-xslt.xsl:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:php="http://php.net/xsl" >
<xsl:template match="/">
<xsl:value-of
select="php:functionString('fooString', /books/book/@id)"/>
<br/><br/>
<xsl:value-of
select="php:function('fooNode', /books/book/@id)"/>
<br/><br/>
<xsl:copy-of
select="php:function('nodeSet')/root/text()"/>
</xsl:template>
</xsl:stylesheet>
PHP in XSLT. PHP Example
© copyright 2004 Bitflux GmbH