This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Lengthy "xmlto" build step in Cygwin.

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/

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:
> 	xmlto
> 	dblatex
> 	docbook2x
> 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:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]