git compiling:Documentation/git-add.xml does not validate

make[2]: Leaving directory `/home/xxx/git-master'
    XMLTO git-add.1
xmlto: /home/xxx/git-master/Documentation/git-add.xml does not validate (status 3)
xmlto: Fix document syntax or use --skip-validation option

I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd

/home/xxx/git-master/Documentation/git-add.xml:2: warning: failed to load external entity “http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd”

  • Timeout when pushing to Heroku
  • D DocBook XML V4.5//EN” “http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd”

    I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd

    warning: failed to load external entity “http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd”

    validity error : Could not load the external subset “http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd”

      Document /home/xxx/git-master/Documentation/git-add.xml does not validate
      make[1]: *** [git-add.1] Error 13
      make[1]: Leaving directory `/home/xxx/git-master/Documentation'
      make: *** [doc] Error 2
    

    What is the main problem?

  • i want to display the git version on my site
  • git status typo: what does the extra space do?
  • Why am i getting “git status --porcelain failed”?
  • git commit leaves changes in the index
  • Reflecting Heroku push version within the app
  • Why does Git store (and hash) blob size in the blob file?
  • 4 Solutions collect form web for “git compiling:Documentation/git-add.xml does not validate”

    Late to the party, but on cygwin the package you need for this to validate is docbook-xml45 (as implied by the DTD URI, docbook/xml/4.5/docbookx.dtd)

    On OSX (Mountain Lion) I had to do this:

    brew install asciidoc
    brew install xmlto
    brew install docbook   
    
    # then (as prompted by brew...)
    #
    # If you intend to process AsciiDoc files through an XML stage
    # (such as a2x for manpage generation) you need to add something
    # like:
    #
    #   export XML_CATALOG_FILES=/usr/local/etc/xml/catalog
    #
    # to your shell rc file so that xmllint can find AsciiDoc's
    # catalog files.
    
    brew install docbook-xsl
    

    (Thanks to Nathan for providing the necessary hints).

    This appears to be something of a reoccurring issue for git. In hunting down the solution (today), I ran across it in several forums. (Linux, Cygwin, Mac OS). The problem is always the same: lack of a good docbook catalog. Unfortunately, installing the appropriate catalog is HIGHLY dependent on your installation, and there is more than one way to lack a good catalog.

    1. A bad catalog was released a few years ago. Uninstall & install the update.
    2. The package that built the catalog failed part way. Remove & reinstall the package.
    3. The package that installs the catalog has not been installed, and the package tools haven’t taken care of you.

    Option 3 is where I was. I have brew installed, so
    sudo brew install docbook
    sudo docbook-register
    Took care of this problem for me.

    Alternatively, there is a separate download of just the docs available.

    jonseymour answer helped me in Mac OS X El Capitan

    to export XML_CATALOG_FILES=/usr/local/etc/xml/catalog I do this

    sudo vim ~/.bash_profile
    
    (in an empty line insert)
    export XML_CATALOG_FILES=/usr/local/etc/xml/catalog
    
    save & exit
    
    . ~/.bash_profile
    

    solved

    Git Baby is a git and github fan, let's start git clone.