Re: Docs failing to build

David Nebauer <[email protected]> Thu, 31 Aug 2006 23:19:54 +0930
Newsgroups gmane.text.refdb.devel
Message-ID <[email protected]>
Hi Markus,
>> libxslt1.1: 1.1.17-3
>
> What is the version of your xsltproc package? I remember that Debian packages
> the binaries separately from the libraries. FWIW the FreeBSD port is also built
> from the libxslt 1.1.17 sources.

xsltproc: 1.1.17-3

> I have discovered the cause of the problem... but am no closer to
> understanding it.  It has to do with the /doc directory's xsltproc line.
>
> The makefile ends up executing the following command (excepting the
> backslash, of course):
>
>     xsltproc -o refdb-manual.fo --nonet --xinclude \
>     ../doc/include/manual-fo.xsl ../doc/refdb-manual.xml

More specifically, the error is caused by the inclusion of '../doc/' in 
specifying the stylesheet.  It makes no difference whether included or 
not in the source xml file name.

> OTOH if this is an xsltproc problem, you should create a simple testcase and
> post it to the XML mailing list ([email protected]). Do you have any other xslt
> processor installed to run a quick test?

xmlstarlet uses the same underlying library ('libxslt1.1') but happily 
creates a viable FO file even when the offending '../doc/' is included.  
The following command works:

    xmlstarlet tr --xinclude ../doc/include/manual-fo.xsl \
    ../doc/refdb-manual.xml > refdb-manual.fo

> A comparison with other xslt
> processors could show whether xsltproc is broken or whether I expected too much
> from it.

It would appear to be an xsltproc-specific bug.

Regards,
David.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642