Passing Parameter to ext/xsl
$proc->setParameter("","name","value"); $proc->getParameter("","name"); $proc->removeParameter("","name");- First Parameter (Namespace) is not used yet.
$proc->setParameter( "", "foo","hello world");
print $proc->transformToXml($xml);
---
xsl:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:param name="foo" select="'bar'"/>
<xsl:template match="/">
<xsl:value-of select="$foo"/>
</xsl:template>
</xsl:stylesheet>
---
output:
hello world
© copyright 2004 Bitflux GmbH