What's this about
Freeware W3C Schema validation tools usually require some tweaking to get them properly
configured and running. Also these tools may not support the full features of the recommendation
W3C Schema structures. These tools are utilizing
Xerces C++ libary which claims to fully support the spec and e.g. also
the infamous UPA constraint (Appendix H).
Also with these forms a set of related schema files can be used to validate an instance document.
How does the tool work ?
- Uploading of documents
- Schema files and instance document are uploaded to the server
with the multipart/form-data mime type. So you should have local
copies of those files before using this tool.
- Resolving <xs:import> and <xs:include>
- Once the validator process has received the schema files it will store them to the temporary local files.
As these file names will change, the "xs:schemaLocation"
references in these schema files are then changed to point to these
local file names.
- The "xsi:schemaLocation" hint within the instance document
- The "xsi:schemaLocation" hints will be removed from the instance documents prior running
the validation tool.
- Validation
- The schema files are then passed to the Xerces C++ validation tool as references with the targetNamespace
URI and schema file name pairs. If namespaces are not used at all, references to them are also passed
to the validation process.
jari.urpalainen@nokia.com