PHP XSLTProcessor and passing data into PHP functions

Cladlovidwirl

New Member
I need to access some XSL data from registered PHP function in XSLTProcessor. I found how to pass current node into the function.XSL:\[code\]<xsl:value-of select="php:function('foo', node())" />\[/code\]PHP:\[code\]function foo($node){ # Here we go, we got DOMNode array and as a consequence - DOMDocument var_dump($node);}\[/code\]OK, this part works fine. Problem is in the second part: I need to pass into PHP function all XSL variables that are visible at the call point. Or, I need to obtain XSL variable value by name from PHP function somehow. And here is the problem - I can't find how to do that. May be some special XPath request? Or some special function? Or some special trick? Or something else?
 
Back
Top