XSL extension: miscellaneous fixes.

There are now 29 / 37 tests passing from Zend PHP tests.

Signed-off-by: Arthur Loiret <arthur.loiret@ens-lyon.fr>