Sorry, I think you miss-understood.
The PHP works, it gets the XML file and transforms it with the XSL fine, I know it has no error trapping or fancy bits; it’s just a simple script.
What I am looking for is a way to include JavaScript functions in the XSL as in my example XSL.
This works in...