I have written the following XSLT template:
<xsl:template match="foo:*">
<xsl:processing-instruction name="php">$s = ob_get_clean(); ob_start(); $this->callExtensionStartHandler('<xsl:value-of select="local-name()" />');</xsl:processing-instruction>
<xsl:apply-templates/>
<xsl:processing-instruction name="php">$sExtensionContent = ob_get_clean(); ob_start(); echo $s; echo $this->callExtensionEndHandler('<xsl:value-of select="local-name()" />', $sExtensionContent);</xsl:processing-instruction>
</xsl:template>
Now I want to pass all attributes and their values of the tag to the php function. If I had a template:
<foo:test id="a" bar="xzz"/>
I would like to have an array('id' => 'a', 'bar' => 'xzz') available in my php function. Is that possible. I don't want to restrict the names of the attributes, so there could be any attribute name.