Instead of adding an xml-stylesheet PI to the XRC files, the XSLT transformation can also be invoked in other ways.
Via "in-between" XML file
Instead of transforming the XRC files directly, you can use an XML file containing the pathname of the file to validate. Something like
<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="../xsl/validator-xhtml.xsl"?> <validate xmlns="http://cking.be/wx/xrv/ns"> <file href="../xrc/artprov.xrc"/> </validate>
A first sketch of this is implemented in version 0.5.2: see xrv subfolder.
Server-side processing
Instead of using the web browser's processor, you can also use a 'standalone' XSLT processor like Saxon, libxslt, Xalan, Sablotron, or a fully integrated IDE like Stylus Studio or XML Spy.
That offers several advantages: passing parameters to the stylesheet, using XSLT extensions, pipelining...