Thread: [Refdb-users] Problems with XML docbook and RefDB bibliographies
Status: Beta
Brought to you by:
mhoenicka
From: Marc B. <ba...@sm...> - 2003-04-17 10:55:05
|
Hi, I have some problems preparing RefDB bibliographies since I switched from SGML to XML Docbook 4.2. - if I try to create the refdb bibliography xml file and use that for a bibliography (using standard xsl stylesheets, and not the ones that come with refdb and are created accoring to the style), I always get an additional No bibliography entry: id2929283 found in http://docbook.sourceforge.net/release/bibliography/bibliography.xml error message, with varying id numbers. Also (probably obviously) the format is not correct, as I get several author entries. (probably I'd have to choose via the role attribute ?) - if I try the refdb stylesheets I get an runtime error: file /usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-fo/docbk-refdb-fo.xsl line 30 element call-template xsl:call-template : template component.separator not found error. Any ideas ? I also haven't figured out how to properly use RefDB with Docbook 4.2 XML when you have a document split into parts using Xincludes. Anybody doing something similar ? Cheers, Marc Baaden -- Dr. Marc Baaden - Institut de Biologie Physico-Chimique, Paris mailto:ba...@sm... - http://www.marc-baaden.de FAX: +49 697912 39550 - Tel: +33 15841 5176 ou +33 609 843217 |
From: Markus H. <mar...@mh...> - 2003-04-17 22:59:57
|
Hi, Marc Baaden writes: > > Hi, > > I have some problems preparing RefDB bibliographies since I switched > from SGML to XML Docbook 4.2. > > - if I try to create the refdb bibliography xml file and use that for > a bibliography (using standard xsl stylesheets, and not the ones > that come with refdb and are created accoring to the style), I > always get an additional > > No bibliography entry: id2929283 found in http://docbook.sourceforge.net/release/bibliography/bibliography.xml > > error message, with varying id numbers. > > Also (probably obviously) the format is not correct, as I get several > author entries. (probably I'd have to choose via the role attribute ?) > I'm afraid this is a misunderstanding of how RefDB deals with formatted bibliographies. In order to allow correct formatting at all, RefDB creates pretty unusual (but valid) bibliography elements, along with stylesheet driver files that in turn call driver files for the official stylesheets. You can't expect that this is going to work without the specific driver files and build scripts. What you're basically asking for is a software that creates plain DocBook output without the formatting overhead. You can do this with RefDB by manually creating bibliographies. Simply run a query and request DocBook output. This will be plain DocBook markup without the overhead required for the formatting. These bibliography elements should work fine with the standard stylesheets. > - if I try the refdb stylesheets I get an > > runtime error: file /usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-fo/docbk-refdb-fo.xsl line 30 element call-template > xsl:call-template : template component.separator not found > component.separator is defined in the official DocBook XSL stylesheets. Either you didn't specify the correct directory on the ./configure command line (check line 16 in /usr/local/share/refdb/xsl/docbk-refdb-xsl/docbk-fo/docbk-refdb-fo.xsl which should point to the official stylesheets), or the stylesheets have changed significantly in the meantime (I'm using 1.48). regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |
From: Marc B. <ba...@sm...> - 2003-04-27 16:20:22
|
Hi again, mar...@mh... said: >> What you're basically asking for is a software that creates plain >> DocBook output without the formatting overhead. You can do this with >> RefDB by manually creating bibliographies. Simply run a query and >> request DocBook output. This will be plain DocBook markup without the >> overhead required for the formatting. These bibliography elements >> should work fine with the standard stylesheets. Yes indeed. I am experimenting with this. A small problem is: bib.xml:270: error: AttValue: " or ' expected <author><firstname>C</firstname><othername role=mi>U</othername><surname>Press< e.g. missing quotes around mi (should be role="mi"), which I can change manually. I'd be also glad to correct it in the corresponding stylesheet, but I haven't quite yet grasped refdb's logic as to which driver file is used for this conversion .. could you comment ? Are there any options/parameters to the driver stylesheet ? Eg I am not interested in details like isbn, issuenum etc. So I'd just like a selection of items/turning some off. Thanks in advance, Marc Baaden -- Dr. Marc Baaden - Institut de Biologie Physico-Chimique, Paris mailto:ba...@sm... - http://www.marc-baaden.de FAX: +49 697912 39550 - Tel: +33 15841 5176 ou +33 609 843217 |
From: Markus H. <mar...@mh...> - 2003-04-27 19:38:39
|
Hi, Marc Baaden writes: > bib.xml:270: error: AttValue: " or ' expected > <author><firstname>C</firstname><othername role=mi>U</othername><surname>Press< > > e.g. missing quotes around mi (should be role="mi"), which I can change > manually. I'd be also glad to correct it in the corresponding stylesheet, > but I haven't quite yet grasped refdb's logic as to which driver file is > used for this conversion .. could you comment ? > There's not much logic involved in this :-). The bug is in backend-db31.c which creates the markup. I've fixed this in CVS. Thanks for pointing this out. > Are there any options/parameters to the driver stylesheet ? Eg I am not > interested in details like isbn, issuenum etc. So I'd just like a selection > of items/turning some off. > I'd have to fix this in backend-db31.c too. As a short-term fix you could also use a simple stylesheet that extracts from the DocBook output what you need. regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |