Passing NodeList to XSLT as a parameter
Posted: Thu Aug 18, 2011 9:02 am
Hi All,
Working on a port of some classic ASP to PHP. The existing app uses XML/XSLT processing. In that code the XSL template is passed a NodeList of some subset of the XML nodes. This is done by creating the XSLT processor and then doing a setParameter on it. Much as would be expected in PHP.
Problem is this... In my PHP version I cannot seem to get the nodelist to be passed as a parameter? setParameter seems to only accept String as the value (??)
Am I overlooking something here? Is there a way to get the nodelist from PHP passed in to the XSL template??
Thanks for any help you can provide!
-D
Working on a port of some classic ASP to PHP. The existing app uses XML/XSLT processing. In that code the XSL template is passed a NodeList of some subset of the XML nodes. This is done by creating the XSLT processor and then doing a setParameter on it. Much as would be expected in PHP.
Problem is this... In my PHP version I cannot seem to get the nodelist to be passed as a parameter? setParameter seems to only accept String as the value (??)
Am I overlooking something here? Is there a way to get the nodelist from PHP passed in to the XSL template??
Thanks for any help you can provide!
-D