Next in thread → Next in month →

Re: [docbook-apps] xmllint and relax ng validation

From
Tom Browder <>
Date
2010-06-22T20:20:16+00:00
ID
Thread
Re: [docbook-apps] xmllint and relax ng validation
On Mon, Jun 21, 2010 at 11:49 PM, Dave Pawson <> wrote:
> On Mon, 21 Jun 2010 23:13:57 +1000
> Sashan Govender <> wrote:
>
>> Hi
>>
>> I'm trying to validate my document using xmllint but get this error:
>>
>>
>>  xmllint --noout --valid --relaxng
>> /usr/share/xml/docbook5/schema/rng/5.0/docbook.rng main.xml
>> main.xml:2: validity error : Validation failed: no DTD found !
>> /docbook" xmlns:xi="http://www.w3.org/2001/XInclude"; version="5.0"
>> xml:lang="en"
>>
>> I thought that docbook 5 didn't require a dtd?

The problem is the xmllint option "--valid" asks for validation by an
internal DTD (see the xmllint man page).  Eliminate that option and it
should work.

HTH.

Regards,

-Tom

Thomas M. Browder, Jr.
Niceville, Florida
USA
Next in thread → Next in month →