TEI bibl, style data

"Markus Hoenicka" <[email protected]> Thu, 17 Jan 2008 19:36:32 +0100
Newsgroups gmane.text.refdb.general
Message-ID <[email protected]>
Hi,

Ralf Stephan writes:
 > Hello,
 > could you please answer two questions, first: can RefDB read loose
 > TEI bibliographies, i.e., those in text using <bibl>...</bibl>?
 > The runbib man page is unclear on it.
 > 

You'll find a better description of the requirements for processing
documents with RefDB in the manual
(http://refdb.sourceforge.net/doc.html), see especially chapter
10. RefDB will not process any <bibl> elements in the text.

 > Second, what could be the cause of the command 
 > 'runbib -d mybib file.tei' failing with
 >    ... lots of xml errors ...
 > failed to access style data
 > mv: cannot stat `.dsl': No such file or directory
 > The tei file is verified PGTEI, an extension to P4.
 > 
 > I have given the path to the P4/P5 style sheets to configure,
 > and they were found. refdb-init went smoothly except 
 > Loading /usr/local/share/refdb/styles/schemas.xml
 > server error. Stop.
 > 
 > (That file exists and is readable)

Thanks for reporting this. refdb-init should no attempt to load
schemas.xml which is just a helper for nxml-mode. I'll see to it to
avoid this problem in the future.

As for your document processing error, this is due to some missing
runbib options. Your error messages indicate that runbib erroneously
attempted to process file.tei as a SGML file. You'll have to use at
least the -S option to specify a bibliography style and the -t option
to tell runbib which type of bibliography you want.

Instead of doing all this manually, I'd suggest to have a look at
refdbnd. Run this script in the directory which contains
file.tei. When the script asks for the basename, you can pass the full
name of your file. If all goes well, refdbnd will use appropriate
values to process this document correctly. You can then just type
"make pdf" or "make html" to process your document.

Please do not hesitate to ask for further assistance if this doesn't
pan out as expected.

regards,
Markus


-- 
Markus Hoenicka
[email protected]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/