xrv instructions

To validate your own XRC files, follow these steps:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="file:///c:/dev/xrv/xsl/validator-xhtml.xsl"?>
<!DOCTYPE resource SYSTEM "file:///c:/dev/xrv/dtd/xrc.dtd">
<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.5.3.0">
  ...
</resource>

Of course, the "file:///" path must point to the location where you unzipped the project. And you must use local paths (starting with file, not http) if your XRC files are local - transforming a local file by an XSL file over HTTP won't work. You can use relative paths, though, if you prefer.

That's it! It should all work fine in Mozilla/Firefox/Netscape and Internet Explorer 6. Maybe also in other browsers, as long as they support XSLT transformation.

Mimetype configuration

If you want to validate XRC files over HTTP using Mozilla/Firefox, you'll have to configure your webserver to serve XRC files as "text/xml" mimetype rather than "text/plain". Otherwise, it gets displayed as plain text. How you should do this, depends on your webserver. I was able to do it with a ".htaccess" file:

I had a similar problem with Internet Explorer, but the other way around: it worked over HTTP, but not on local files... This I was able to fix by adding a mimetype key to the registry:

Alternatively, you can always use a standalone XSLT processor.