Re: Build the Debian Reference Card

2007-07-24 Thread Paul Cager
On Tue, July 24, 2007 3:42 pm, W. Martin Borgert wrote:
> Paul,
>
[ ... ]
> - I like to make the reference card a Debian package, so that
>   you could file a FTBFS (fails to build from source) bug.

Wolfgang,

Thanks very much for this. I was hoping it would end up packaged (even if
I don't have the skills to do it myself). If there's a way I can help,
please shout.

Thanks also to Neil, Daniel and the others for their help.

Paul


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



Re: Build the Debian Reference Card

2007-07-24 Thread Kurt Roeckx
On Tue, Jul 24, 2007 at 05:53:37PM +0200, Daniel Leidert wrote:
> 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:

Note that it is not acceptable for a package in main to rely on something
that is not in main.  When building something for main (using xsltproc),
you should always make sure that it's using things from main, and not
some random version somewhere on internet.

This doesn't seem to be a package that's in main, but it's probably
still a good idea to use --nonet, so you can actually get consitent
results over time.


Kurt


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



Re: Build the Debian Reference Card

2007-07-24 Thread Daniel Leidert
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'>
>  
> +   
> +
> 
> 
> 
> @@ -63,7 +65,6 @@
> 
>  
> 
> -   
> 
> 
> 

@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]



Re: Build the Debian Reference Card

2007-07-24 Thread Frank Küster
"Paul Cager" <[EMAIL PROTECTED]> wrote:

> Refcard.xsl contained:
>
>   http://db2latex.sourceforge.net/xsl/docbook.xsl"/>
>
> Which failed "xsl:import : unable to load
> http://db2latex.sourceforge.net/xsl/docbook.xsl";
>
> I've tried removing the nonet and get the failure below. If I install
> db2latex locally and modify the import to:

There's a reason why db2latex has been dropped from Debian, I think it
was unmaintained not only in Debian, but also upstream.  It might make
sense to try to switch to dblatex.

Regards, Frank
-- 
Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)



Re: Build the Debian Reference Card

2007-07-24 Thread Neil Williams
On Tue, 24 Jul 2007 14:42:07 +0100 (BST)
"Paul Cager" <[EMAIL PROTECTED]> wrote:

> >
> > The error that led to you removing --nonet is actually more important
> > than any results you get AFTER removing --nonet.
> > ;-)
> >
> 
> Refcard.xsl contained:
> 
>   http://db2latex.sourceforge.net/xsl/docbook.xsl"/>
> 
> Which failed "xsl:import : unable to load
> http://db2latex.sourceforge.net/xsl/docbook.xsl";

Then find out which package contains that file and install it. XSL
stylesheets are rarely stand-alone and often use import recursively.

> >> 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. Either the source needs to be updated or a
> > different stylesheet selected.
> >
> >> [EMAIL PROTECTED]:~/refcard/trunk$ make
> >> xsltproc --novalid --xinclude preproc.xsl entries-bg.dbk
> >
> > Needing to use --novalid is also a bad sign.
> >
> > The document is Copyright 2004/5 so it is probably in dire need of
> > updates to the DocBook and/or selection of an updated XSL stylesheet.
> 
> Yes. I probably need to learn rather a lot before I can do that!

Try seeing how a working XSL conversion works - apt-get source pilot-qof
for example, and build that. Watch the commands being used and start
from there. This is well off-topic for debian-devel and I don't have
time to tutor you through XSL and docbook either on or off list.

-- 


Neil Williams
=
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/



pgpR4ZfHmjb3w.pgp
Description: PGP signature


Re: Build the Debian Reference Card

2007-07-24 Thread Paul Cager
On Tue, July 24, 2007 2:13 pm, Neil Williams wrote:
> 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 usually reflects a change in the XSL support
> packages where the original stylesheets have been replaced or updated
> with a new package. It is just plain rude to go over the internet to
> build things like this so --nonet is actually very useful.
>
> The error that led to you removing --nonet is actually more important
> than any results you get AFTER removing --nonet.
> ;-)
>

Thanks for your comments - as I said I'm rather new to docbook/xslt.

Refcard.xsl contained:

  http://db2latex.sourceforge.net/xsl/docbook.xsl"/>

Which failed "xsl:import : unable to load
http://db2latex.sourceforge.net/xsl/docbook.xsl";

I've tried removing the nonet and get the failure below. If I install
db2latex locally and modify the import to:

  

I get the same failure.

>> 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. Either the source needs to be updated or a
> different stylesheet selected.
>
>> [EMAIL PROTECTED]:~/refcard/trunk$ make
>> xsltproc --novalid --xinclude preproc.xsl entries-bg.dbk
>
> Needing to use --novalid is also a bad sign.
>
> The document is Copyright 2004/5 so it is probably in dire need of
> updates to the DocBook and/or selection of an updated XSL stylesheet.

Yes. I probably need to learn rather a lot before I can do that!

Thanks,
Paul


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



Re: Build the Debian Reference Card

2007-07-24 Thread 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 usually reflects a change in the XSL support
packages where the original stylesheets have been replaced or updated
with a new package. It is just plain rude to go over the internet to
build things like this so --nonet is actually very useful.

The error that led to you removing --nonet is actually more important
than any results you get AFTER removing --nonet.
;-)

> 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. Either the source needs to be updated or a
different stylesheet selected.

> [EMAIL PROTECTED]:~/refcard/trunk$ make
> xsltproc --novalid --xinclude preproc.xsl entries-bg.dbk

Needing to use --novalid is also a bad sign.

The document is Copyright 2004/5 so it is probably in dire need of
updates to the DocBook and/or selection of an updated XSL stylesheet.

-- 


Neil Williams
=
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/



pgpJYkMpvXnNb.pgp
Description: PGP signature


Build the Debian Reference Card

2007-07-24 Thread Paul Cager
Hi,

Has anyone any advice on how to build the Reference Card[1] from source?

I have removed the "--nonet" from the xsltproc call so that it can
download "http://db2latex.sourceforge.net/xsl/docbook.xsl";, but now it
fails:

[EMAIL PROTECTED]:~/refcard/trunk$ make
xsltproc --novalid --xinclude preproc.xsl entries-bg.dbk | \
xsltproc --novalid --xinclude --stringparam format a4  refcard.xsl
- > refcard-bg-a4.tex
compilation error: file
http://db2latex.sourceforge.net/xsl/qandaset.mod.xsl line 366 element
template
xsl:template: error duplicate name 'question.answer.label'
make: *** [refcard-bg-a4.tex] Error 5
rm refcard-bg-a4.tex


I know very little about docbook/xslt - any advice welcome!

[1]http://people.debian.org/~debacle/refcard/

Thanks,
Paul


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