=> there is no instance of your class needed, you have to take care about the namespace (using 5.3).
<!-- xsl:
<xsl:value-of select="php:function ('My\Name\Space\MyClassName::methodName',1+2)"/>
--->
<?php
namespace My\Name\Space;
class MyClassName
{
static public function methodName($someArgument)
{
return "resultis:".$someArgument;
}
}
?>
<!-- result:
resultis:3
-->
=> no to-string conversion of the argument needed
=> returning numbers is also possible (maybe DOM nodes too)
Keep on hackin'