This directory contains a number of XRC sample files. You should be able to validate them just by opening them in your browser. This is "client side XSLT", so you will need a standards compliant browser with a built-in XSLT processor, like Netscape, Mozilla, Firefox or IE6.
Depending on your configuration, there might be problems with the process because the files don't have a ".xml" extension. The instructions provide some tips to solve these problems.
wxWidgets XRC samples
Here are some samples taken from the wxWidgets distribution set (v.2.6.2).
They are taken from wx/samples/xrc/rc, and an xml-stylesheet
processing instruction and doctype have been added to each of them:
<?xml-stylesheet type="text/xsl" href="../xsl/validator-xhtml.xsl"?> <!DOCTYPE resource SYSTEM "../dtd/xrc.dtd">
- artprov.xrc
- basicdlg.xrc
- controls.xrc
- custclas.xrc
- derivdlg.xrc
- frame.xrc
- menu.xrc
- platform.xrc
- resource.xrc
- toolbar.xrc
- uncenter.xrc
- variable.xrc
The validator in its current state has already spotted a number of errors in these files:
wxToolBar/separator
Inside wxToolBar, sometimes a sub-element <separator/> is used. This is not (anymore?) recognized by XRC, and should be replaced by <object class="separator"/>.
wxNotebook/usenotebooksizer
I didn't find this property anywhere in the source code, maybe it has existed in some early version of XRC.
wxGauge/max
Probably to be replaced with range.
wxBoxSizer/cols, rows, vgap...
wxBoxSizer is not supposed to have these properties. (wxGridSizer does).
Test sample
Here's one additional sample with several errors, just for testing: