This is the mail archive of the
mailing list for the Cygwin project.
Re: Lengthy "xmlto" build step in Cygwin.
- From: Warren Young <wyml at etr-usa dot com>
- To: The Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Fri, 1 Jul 2016 16:11:20 -0600
- Subject: Re: Lengthy "xmlto" build step in Cygwin.
- Authentication-results: sourceware.org; auth=none
- References: <bfbac5abef5b3937edd1f9814c5f4bc8 at mail dot kylheku dot com> <F8B12F74-6D70-413F-BB42-82BCC52976AA at etr-usa dot com> <438a2cac-c7d3-4f5d-d9da-ad98c79b6baf at t-online dot de>
On Jul 1, 2016, at 2:52 PM, Hans-Bernhard BrÃker wrote:
> Am 01.07.2016 um 20:36 schrieb Warren Young:
>> That means you have the DocBook tools installed but donât have the
>> DocBook XSL stylesheets installed
> only docbox2x-texi is checked for by winsup/doc/configure.ac.
Youâre in a fine position to fix that, then. :)
> At least xmlto surely has to be checked for, too, don't you think?
That and xsltproc, at least.
> And maybe it would be possible to add a check for the docbook-xml45 package
The trick is finding that out portably.
You canât check for version 4.5 stylesheets specifically, because someday the docs may move to DocBook 5.
You also canât use Cygwin-specific methods to check for this because the docs are also built on non-Cygwin systems. The official builds of everything under winsup are in fact cross-compiled on a Fedora box rather than built under Cygwin.
Finally, the stylesheets may be in different locations on different machines.
Probably the most portable method is something like
if ! grep -q file://.*docbook /etc/xml/catalog
AC_MSG_ERROR([the DocBook stylesheets are not installed])
Consider that pseudocode. (Untested, written off the top of my head.)
> Or, to turn this around: shouldn't one of these packages:
> formally require package docbook-xml45
Certainly not xmlto or xsltproc, as theyâre both used for more than DocBook.
dblatex could, I suppose, but youâll find that Fedora doesnât tie those two together, either:
Thatâs probably because dblatex will consume either XSL or SGML stylesheets, and they donât want to depend on both. Plus, as youâve found, the network fetch option does work; itâs just sllllooooow.
Even if you fix that, there's more than just dblatex for rendering DocBook to PDF, so youâd have to chase all those avenues, too. For instance, thereâs FOP, which isnât DocBook specific, so making docbook-xsl a dependency of it would be wrong, so youâre left hangnig.
docbook2x is perhaps a better candidate, though I donât actually see a reason itâs the only possible build option. I suspect you could do everything it does in pure XSLT, obviating the need for it. So, youâd still need to call out the need for docbook-xsl in the build instructions.
Bottom line, you just have to know you need these things, if youâre going to work with DocBook. Itâs just part of the learning curve.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple