validating explicit-failures-markup.xml?

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"> ^ ... -- Dave Abrahams Boost Consulting http://boost-consulting.com

On Mar 25, 2008, at 6:27 PM, David Abrahams 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"> ^ ...
I had the same problem, but gave up due to lack of time. Anyway, if we get the command right, we can add this check as a Subversion hook so that invalid explicit-failures-markup XML cannot be committed. - Doug

David Abrahams writes:
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"> ^
IIRC, 'xmllint' was added to the list of validation options by Martin Wille. Personally, I always use online validation services. -- Aleksey Gurtovoy MetaCommunications Engineering

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.
participants (4)
-
Aleksey Gurtovoy
-
Daniel James
-
David Abrahams
-
Douglas Gregor