Hi Kasimier, Buchcik, Kasimier wrote: > Hi, > > I noticed on the [EMAIL PROTECTED] mailing list > that some people are struggling in PHP 5 to get node trees > (i.e. not only strings) as parameters into the transformation. > > Rob, did the previous processor support this? Is this now a > problem for PHP 5? > > Do some of the other XSLT processors support this? > From looking at the sablotron binding from PHP 4, I dont see that it supported this. If I am incorrect, then if someone would kindly point out how this was done previously I would appreciate it.
There are a few ways to get node trees into a transformation though (and the methods appear similar to how it is done using the older extension). - All libxml/libxslt I/O is now handled by PHP streams (which means users can register there own stream wrappers and call them anywhere a URI is valid). So a custom wrapper could return a tree built using DOM if it really wanted to. - Call PHP functions directly from the templates. There are examples in the PHP manual for the registerPHPFunctions() method that explictly demonstrate PHP returning nodes to an in progress transformation. I do believe some of the other processors like Saxon and Microsoft do support passing a nodeset in as a parameter. I hope this answers your/their question. Rob _______________________________________________ xslt mailing list, project page http://xmlsoft.org/XSLT/ [email protected] http://mail.gnome.org/mailman/listinfo/xslt
