Am Dienstag, den 24.07.2007, 14:13 +0100 schrieb Neil Williams:
> On Tue, 24 Jul 2007 13:33:04 +0100 (BST)
> "Paul Cager" <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> > 
> > Has anyone any advice on how to build the Reference Card[1] from source?
> > 
> > I have removed the "--nonet" from the xsltproc call 
> 
> I use xsltproc in a number of build situations and removing --nonet is
> NOT a solution!

It is, if the stylesheets are not installed locally or if there is no
catalog entry. Both are possible, because the necessary package had been
removed from Debian. The OP was right to remove this option, if he
observed the error:

I/O error : Attempt to load network entity
http://db2latex.sourceforge.net/xsl/docbook.xsl
warning: failed to load external entity
"http://db2latex.sourceforge.net/xsl/docbook.xsl";

first.

[..]
> > so that it can
> > download "http://db2latex.sourceforge.net/xsl/docbook.xsl";, but now it
> > fails:
> 
> See above. I suspect that the source itself is now incompatible with the
> chosen XSL stylesheet.

xsltproc complaining with error code 5 and a message, that shows, that
there is a duplication inside the stylesheetdoesn't point to an
"incompatible" source. It points to a broken stylesheet, which is indeed
the issue. The problem has been fixed in the Debian package in version
0.8pre1-3. The diff for this fix looks like this:

> --- db2latex-xsl-0.8pre1.orig/xsl/docbook.xsl
> +++ db2latex-xsl-0.8pre1/xsl/docbook.xsl
> @@ -11,6 +11,8 @@
>         xmlns:doc="http://nwalsh.com/xsl/documentation/1.0";
>         exclude-result-prefixes="doc" version='1.0'>
>  
> +       <xsl:import href="common/common.xsl"/>
> +
>         <doc:reference id="docbook" xmlns="">
>                 <referenceinfo>
>                         <releaseinfo role="meta">
> @@ -63,7 +65,6 @@
>         <xsl:key name="id" match="*" use="@id"/>
>  
>         <xsl:include href="common/l10n.xsl"/>
> -       <xsl:include href="common/common.xsl"/>
>         <xsl:include href="common/gentext.xsl"/>
>         <xsl:include href="common/subtitles.xsl"/>
>         <xsl:include href="common/titles.xsl"/>

@Paul: Because the stylesheets cannot be fixed online, download them
from the sf.net page and fix this issue locally or install the db2latex
package from snapshot.debian.net. In the first case, you need to adjust
the import path of xsl/docbook.xsl to point to the local copy of
db2latex. In the latter case, no further actions needs to be taken,
because the package installs a catalog file, that automatically rewrites
the online location to the local installation location.

Alternatively use some newer package like dblatex or docbook-xsl/fop.

Regards, Daniel


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to