I have an XSL file.
I have a PHP file with a XSLTProcessor named $bob
.
I want to send to my xsl transformation some parameters.
So, I write
I would just have one parameter, that is an XML document. I would create this XML document before I invoke the transformation.
This has some definit benefits compared to sending a single, pipe-delimited string:
Every parameter is in its own element and this can be matched by a separate template in XSLT.
No recursive processing of a pipe-delimited string and no extension functions are needed.
More extensible and scalable.