in reply to XML:XSLT question

Is it possible to print the transformed results to a file

Yes, open a file and use $parser->toString() to print the string to a file.

But if at all possible, you should be using XML::LibXSLT instead, it is still actively maintained (though it can be harder to install since it requires libxml).