Passing NodeList to XSLT as a parameter

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
dbuttery
Forum Newbie
Posts: 1
Joined: Thu Aug 18, 2011 8:50 am

Passing NodeList to XSLT as a parameter

Post by dbuttery »

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
Post Reply