Sure, but it's a trade-off. The convenience of a pure-Perl solution (no compiling, no library dependencies) versus an incomplete XSLT implementation. If XML::LibXSLT or XML::Sablotron can be installed with minimal pain then that's likely to be a less frustrating route.