I'm trying to switch from using a DTD to a Schema. The problem now arises,
how do I validate documents against the Schema? I've tried the MSV from
Sun, but it doesn't seem to recognize that I'm using a Schema
automagically as advertised. So I figure I'd try the Validate sample in
the Xalan distro since I'm using Xalan anyway. It seems to only do true
validity (i.e. using a DTD).

Any suggestions on how to check that a document conforms to a Schema would
be appreciated. Command line solutions are preferred but not essential.

Just in case there's an error in my document, here's the first part:

*****
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE gamebook [
  -- entity declarations --
]>

<gamebook xmlns="http://www.projectaon.org/xml/gamebook/"; 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
          xsi:schemaLocation="http://www.projectaon.org/xml/gamebook/
                              gamebook.xsd"
          xmlns:dc="http://purl.org/dc/elements/1.1/";
          xml:lang="en-UK"
          version="0.11">
*****

Thanks for any help. :)

--
Jon Blake

Reply via email to