docbook-apps

  • 1.  xmllint and relax ng validation

    Posted 06-21-2010 13:14
    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?



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

    Posted 06-21-2010 13:47
    Sashan Govender wrote:

    > 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?

    Don't use --valid option. It tells to xmllint that it should try to
    locate and use DTD for validation.

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
    ------------------------------------------------------------------
    Professional XML consulting and training services
    DocBook customization, custom XSLT/XSL-FO document processing
    ------------------------------------------------------------------
    OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
    ------------------------------------------------------------------




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

    Posted 06-21-2010 13:50
    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?

    It doesn't?
    Try using jing to validate, after using xmllint to expand xIncludes.


    HTH




    --

    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk



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

    Posted 06-22-2010 11:50
    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?
    >
    > It doesn't?

    According to this a dtd reference is no longer required.
    http://www.docbook.org/docs/howto/#introduction-rng