docbook-apps

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

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

    Posted 06-22-2010 20:20
    On Mon, Jun 21, 2010 at 11:49 PM, Dave Pawson <davep@dpawson.co.uk> wrote:
    > On Mon, 21 Jun 2010 23:13:57 +1000
    > Sashan Govender <sashang@gmail.com> 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