Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Param to PHP Functions

Status
Not open for further replies.

Kingspice

Technical User
Feb 7, 2007
5
GB
Hi there,
I am calling a PHP from my XSL stylesheet e,g:
<xsl:value-of select="php:function('getFileTypes', . )" />

However, the node being passed is always passed as an array with a length of one to the PHP function. Is it not possible to pass DOMElement's/Nodes to a function?

Thanks
 
>Is it not possible to pass DOMElement's/Nodes to a function?
If we take note that that part of extension is originated from within an xsl, it is no longer possible with the w3c recommendation. It was possible in the working draft stage(s). But think about it... since it is a fixed pattern, you can always work on the item-zero as a fixed setup in the function, or from a helper function before calling a previously existing function from within php or else.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top