in reply to Perl and XSLT

You can also use the Perl interface to Sablotron XML::Sablotron