docbook / xslt10-stylesheets

XSLT 1.0 Stylesheets for DocBook
97 stars 76 forks source link

Document requirements for 'make check' to work in building.md? #208

Open petterreinholdtsen opened 3 years ago

petterreinholdtsen commented 3 years ago

When I try to use it, I get errors indicating that xsl/xhtml/ should exist. Was it renamed to xhtml5/, perhaps?

bobstayton commented 3 years ago

The DocBook XSL source tree has both xhtml and xhtml5 directories. The xsl/xhtml directory starts with four files and generates the rest of them from the html directory. If make is reporting that xsl/xhtml/does not exist, then that would suggest that you have an incomplete source tree.

petterreinholdtsen commented 3 years ago

[Bob Stayton]

The DocBook XSL source tree has both xhtml and xhtml5 directories. The xsl/xhtml directory starts with four files and generates the rest of them from the html directory. If make is reporting that xsl/xhtml/does not exist, then that would suggest that you have an incomplete source tree.

Right. Not sure what is wrong, but both 'make' nad 'make check' fail.

This is how 'make fail:

[...] test ! -d docsrc/images/ || cp -r docsrc/images docs/images cp template/favicon.ico docs/ xsltproc --xinclude --output xincluded-profiled.xml \ --stringparam profile.os "linux" \ ../profiling/profile.xsl \ docsrc/readme.xml xsltproc xsl/webhelp.xsl xincluded-profiled.xml warning: failed to load external entity "../xhtml/chunk.xsl" compilation error: file xsl/webhelp.xsl line 17 element import xsl:import : unable to load ../xhtml/chunk.xsl make[2]: [Makefile:20: docs/index.html] Error 5 make[2]: Leaving directory '/home/user/src/xslt10-stylesheets/xsl/webhelp' make[2]: Entering directory '/home/user/src/xslt10-stylesheets/xsl/xhtml5' make[2]: No rule to make target '../xhtml/docbook.xsl', needed by 'xhtml-docbook.xsl'. Stop. make[2]: Leaving directory '/home/user/src/xslt10-stylesheets/xsl/xhtml5' make[2]: Entering directory '/home/user/src/xslt10-stylesheets/xsl/epub3' /home/user/src/xslt10-stylesheets/buildtools/xslt -saxon titlepage.templates.xml ../template/titlepage.xsl titlepage.templates.xsl ns=http://www.w3.org/1999/xhtml Cannot read config: /home/pere/.xmlc saxon [opts] input style [output] [params] make[2]: [Makefile:6: titlepage.templates.xsl] Error 2 make[2]: Leaving directory '/home/user/src/xslt10-stylesheets/xsl/epub3' make[1]: [Makefile:74: base] Error 2 make[1]: Leaving directory '/home/user/src/xslt10-stylesheets/xsl' make: *** [Makefile:4: all] Error 2

And this is how 'make check' fail:

[...] /home/user/src/xslt10-stylesheets/buildtools/xslt -saxon tests/refentry.007.ns.xml xhtml/docbook.xsl > /dev/null Cannot open stylesheet: xhtml/docbook.xsl saxon [opts] input style [output] [params] make[1]: [Makefile.tests:52: smoketest-normal] Error 2 make[1]: Leaving directory '/home/user/src/xslt10-stylesheets/xsl' make: [Makefile:13: check] Error 2

Perhaps some missing prerequisite?

-- Happy hacking Petter Reinholdtsen

petterreinholdtsen commented 3 years ago

I managed to get the build going by copying .travis/xmlc to ~/.xmlc. Perhaps the building.md file should mention its significance?