[nix-shell:~/src/nixpkgs/doc]$ make debug
nix-shell --run "xmloscopy --docbook5 ./manual.xml ./manual-full.xml"
trace: `mkStrict' is obsolete; use `mkOverride 0' instead.
trace: `lib.nixpkgsVersion` is deprecated, use `lib.version` instead!
trace: Warning: `showVal` is deprecated and will be removed in the next release, please use `traceSeqN`
trace: lib.zip is deprecated, use lib.zipAttrsWith instead
    Feasability check on files without xincludes...

A document is feasibly valid if it could be transformed into a valid
document by inserting any number of attributes and child elements
anywhere in the tree.

This is equivalent to pretending every element is optional.

This option may be useful while a document is still under
construction.

This option also disables checking that references are valid.
./stdenv.xml: OK
./cross-compilation.xml: OK
./overlays.xml: OK
./quick-start.xml: OK
./platform-notes.xml: OK
./multiple-output.xml: OK
./reviewing-contributions.xml: OK
./introduction.chapter.xml: OK
./coding-conventions.xml: OK
./submitting-changes.xml: OK
./languages-frameworks/ios.section.xml: OK
./languages-frameworks/go.xml: OK
./languages-frameworks/coq.xml: OK
./languages-frameworks/lua.xml: OK
./languages-frameworks/titanium.section.xml: OK
./languages-frameworks/perl.xml: OK
./languages-frameworks/ruby.xml: OK
./languages-frameworks/python.section.xml: OK
./languages-frameworks/emscripten.section.xml: OK
./languages-frameworks/vim.section.xml: OK
./languages-frameworks/texlive.xml: OK
./languages-frameworks/qt.xml: OK
./languages-frameworks/java.xml: OK
./languages-frameworks/android.section.xml: OK
./languages-frameworks/r.section.xml: OK
./languages-frameworks/ocaml.xml: OK
./languages-frameworks/node.section.xml: OK
./languages-frameworks/beam.xml: OK
./languages-frameworks/idris.section.xml: OK
./languages-frameworks/rust.section.xml: OK
./languages-frameworks/haskell.section.xml: OK
./languages-frameworks/bower.xml: OK
./release-notes.xml: OK
./configuration.xml: OK
./functions/fetchers.xml: OK
./functions/fhs-environments.xml: OK
./functions/overrides.xml: OK
./functions/shell.xml: OK
./functions/trivial-builders.xml: OK
./functions/generators.xml: OK
./functions/dockertools.xml: OK
./functions/library/locations.xml: OK
./functions/prefer-remote-fetch.xml: OK
./functions/debug.xml: OK
./meta.xml: OK
./package-notes.xml: OK
./contributing.xml: OK




----



    Checking files without xincludes, ignoring reference errors...

Ensures document fragments are valid, but without validating links
are valid.

./stdenv.xml: OK
./cross-compilation.xml: OK
./overlays.xml: OK
./quick-start.xml: OK
./platform-notes.xml: OK
./multiple-output.xml: OK
./reviewing-contributions.xml: OK
./introduction.chapter.xml: OK
./coding-conventions.xml: OK
./submitting-changes.xml: OK
./languages-frameworks/ios.section.xml: OK
./languages-frameworks/go.xml: OK
./languages-frameworks/coq.xml: OK
./languages-frameworks/lua.xml: OK
./languages-frameworks/titanium.section.xml: OK
./languages-frameworks/perl.xml: OK
./languages-frameworks/ruby.xml: OK
./languages-frameworks/python.section.xml: OK
./languages-frameworks/emscripten.section.xml: OK
./languages-frameworks/vim.section.xml: OK
./languages-frameworks/texlive.xml: OK
./languages-frameworks/qt.xml: OK
./languages-frameworks/java.xml: OK
./languages-frameworks/android.section.xml: OK
./languages-frameworks/r.section.xml: OK
./languages-frameworks/ocaml.xml: OK
./languages-frameworks/node.section.xml: OK
./languages-frameworks/beam.xml: OK
./languages-frameworks/idris.section.xml: OK
./languages-frameworks/rust.section.xml: OK
./languages-frameworks/haskell.section.xml: OK
./languages-frameworks/bower.xml: OK
./release-notes.xml: OK
./configuration.xml: OK
./functions/fetchers.xml: OK
./functions/fhs-environments.xml: OK
./functions/overrides.xml: OK
./functions/shell.xml: OK
./functions/trivial-builders.xml: OK
./functions/generators.xml: OK
./functions/dockertools.xml: OK
./functions/library/locations.xml: OK
./functions/prefer-remote-fetch.xml: OK
./functions/debug.xml: OK
./meta.xml: OK
./package-notes.xml: OK
./contributing.xml: OK




----



Doing a combined check...
warning: failed to load external entity "functions/library/generated/strings.xml"
functions/library.xml:19: element include: XInclude error : could not load functions/library/generated/strings.xml, and no fallback was found
warning: failed to load external entity "functions/library/generated/trivial.xml"
functions/library.xml:20: element include: XInclude error : could not load functions/library/generated/trivial.xml, and no fallback was found
warning: failed to load external entity "functions/library/generated/lists.xml"
functions/library.xml:21: element include: XInclude error : could not load functions/library/generated/lists.xml, and no fallback was found
warning: failed to load external entity "functions/library/generated/debug.xml"
functions/library.xml:22: element include: XInclude error : could not load functions/library/generated/debug.xml, and no fallback was found
warning: failed to load external entity "functions/library/generated/options.xml"
functions/library.xml:23: element include: XInclude error : could not load functions/library/generated/options.xml, and no fallback was found
./manual-full.xml: Not valid:
Line 6592:
  6589	 <!-- These docs are generated via nixdoc. To add another generated
  6590	      library function file to this list, the file
  6591	      `lib-function-docs.nix` must also be updated. -->
  6592	 <xi:include href="./library/generated/strings.xml"/>
  6593	 <xi:include href="./library/generated/trivial.xml"/>
  6594	 <xi:include href="./library/generated/lists.xml"/>
  6595	 <xi:include href="./library/generated/debug.xml"/>
     error: element "xi:include" not 
    allowed here; expected the element 
    end-tag or element "bibliography", 
    "glossary", "index", "section", 
    "simplesect" or "toc"



Line 6593:
  6590	      library function file to this list, the file
  6591	      `lib-function-docs.nix` must also be updated. -->
  6592	 <xi:include href="./library/generated/strings.xml"/>
  6593	 <xi:include href="./library/generated/trivial.xml"/>
  6594	 <xi:include href="./library/generated/lists.xml"/>
  6595	 <xi:include href="./library/generated/debug.xml"/>
  6596	 <xi:include href="./library/generated/options.xml"/>
     error: element "xi:include" not 
    allowed here; expected the element 
    end-tag or element "bibliography", 
    "glossary", "index", "section", 
    "simplesect" or "toc"



Line 6594:
  6591	      `lib-function-docs.nix` must also be updated. -->
  6592	 <xi:include href="./library/generated/strings.xml"/>
  6593	 <xi:include href="./library/generated/trivial.xml"/>
  6594	 <xi:include href="./library/generated/lists.xml"/>
  6595	 <xi:include href="./library/generated/debug.xml"/>
  6596	 <xi:include href="./library/generated/options.xml"/>
  6597	</section>
     error: element "xi:include" not 
    allowed here; expected the element 
    end-tag or element "bibliography", 
    "glossary", "index", "section", 
    "simplesect" or "toc"



Line 6595:
  6592	 <xi:include href="./library/generated/strings.xml"/>
  6593	 <xi:include href="./library/generated/trivial.xml"/>
  6594	 <xi:include href="./library/generated/lists.xml"/>
  6595	 <xi:include href="./library/generated/debug.xml"/>
  6596	 <xi:include href="./library/generated/options.xml"/>
  6597	</section>
  6598	 <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="sec-overrides" xml:base="functions/overrides.xml">
     error: element "xi:include" not 
    allowed here; expected the element 
    end-tag or element "bibliography", 
    "glossary", "index", "section", 
    "simplesect" or "toc"



Line 6596:
  6593	 <xi:include href="./library/generated/trivial.xml"/>
  6594	 <xi:include href="./library/generated/lists.xml"/>
  6595	 <xi:include href="./library/generated/debug.xml"/>
  6596	 <xi:include href="./library/generated/options.xml"/>
  6597	</section>
  6598	 <section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="sec-overrides" xml:base="functions/overrides.xml">
  6599	 <title>Overriding</title>
     error: element "xi:include" not 
    allowed here; expected the element 
    end-tag or element "bibliography", 
    "glossary", "index", "section", 
    "simplesect" or "toc"



make: *** [Makefile:8: debug] Error 1
