
26 Mar
2008
26 Mar
'08
9:05 a.m.
On 25/03/2008, David Abrahams <dave@boost-consulting.com> wrote:
The comment at the top of explicit-failures-markup implies the following command should work, but it doesn't for me. What am I missing?
$ xmllint --valid explicit-failures-markup.xml --schema explicit-failures.xsd explicit-failures-markup.xml:3: validity error : Validation failed: no DTD found ! xsi:noNamespaceSchemaLocation="explicit-failures.xsd">
According to xmllint's man page, '--valid' instructs xmllint to validate against a DTD, and we don't have a DTD. If validating against the XSD schema is enough (I have no idea if a DTD does anything that an XSD schema doesn't), dropping '--valid' seems to work.