PHP and XSLT

1. Transforms in PHP

1.

Transforms in PHP

Martynas Jusevicius



This is how you use PHP functions from stylesheets. Remember to call registerPhpFunctions() on the processor and include the PHP namespace in XSL.

For URL encoding, the function would be: php:function('urlencode', string($value))