<bibliodiv> problemHi Ron,
I don't think it was intentional.  In fact, a tiny change in the selection path 
from bibliography/* to bibliography//* should fix it.  I'll check that in and 
you can try out the next snapshot.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
[EMAIL PROTECTED]


  ----- Original Message ----- 
  From: Ron Catterall 
  To: [email protected] 
  Sent: Thursday, September 27, 2007 7:11 AM
  Subject: [docbook-apps] <bibliodiv> problem


  I am using a bibliography database as outlined in:
  Bob Stayton, "DocBook XSL: The Complete Guide", Chapter 13, page 226
  My only difference is that I am using <bibliodiv> in my database file.
  I find that when I have bibliodivs  the references are unresolved.  When the 
bibliodivs are removed, then references are resolved OK .
  With the files below, Saxon 6.5.5 and XEP 4.9, Oxygen 8.2 and Docbook 
5.0/docbook-xsl-ns-1.73.2/fo/docbook.xsl, I get "Error: no bibliography entry: 
ANDERSON69 found in full_bib.xml" in the References section of the PDF 
document.  When I comment out the bibliodiv wrapper the references are resolved 
OK and appear in the PDF.


  (Although I find no reference to <bibliodiv> in Bob's book, it is there in 
http://www.docbook.org/tdg5/en/html/docbook.html - and the earlier versions for 
4.x)


  Is this behavior intentional, or is it an error or omission?


  Ron


  File: bib_test.xml
  <?xml version="1.0" encoding="UTF-8" ?>
  <!DOCTYPE article>
  <article  xml:id="Bib_test" xmlns="http://docbook.org/ns/docbook"; 
version="5.0" xml:lang="EN">
    <info><title>Test bibliodiv</title></info>
    <xi:include href="sect.xml" 
xmlns:xi="http://www.w3.org/2001/XInclude";></xi:include>
    <xi:include href="test_bib.xml" 
xmlns:xi="http://www.w3.org/2001/XInclude";></xi:include>
  </article>

  File: sect.xml
  <?xml version="1.0" encoding="UTF-8" ?>
  <!DOCTYPE section>
  <section xml:id="Sect" xmlns="http://docbook.org/ns/docbook"; version="5.0" 
xml:lang="EN">
    <info><title>Title of Section</title></info>
    <para>1 2 3 4 5 <biblioref linkend="ANDERSON69"/> 6 7 8 9 10</para>
  </section>

  File: test_bib.xml
  <?xml version="1.0" encoding="UTF-8" ?> 
  <!DOCTYPE bibliography>
  <bibliography xml:id="Test_bib" xmlns="http://docbook.org/ns/docbook"; 
version="5.0" xml:lang="EN" >
    <info><title>References</title></info>
    <bibliomixed xml:id="ANDERSON69"/>
  </bibliography>

  File: testarticlebib.xsl
  <?xml version="1.0" encoding="UTF-8"?>
  <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    xmlns:fo="http://www.w3.org/1999/XSL/Format";
    xmlns:exsl="http://exslt.org/common";
    version="1.0"
    exclude-result-prefixes="exsl">
    <xsl:import 
href="/Applications/Utilities/oxygen/8.2/oxygen/frameworks/docbook/5.0/docbook-xsl-ns-1.73.2/fo/docbook.xsl"/>
    <xsl:param name="bibliography.collection" select="'full_bib.xml'"/>
    <xsl:param name="xep.extensions" select ="1"/>
  </xsl:stylesheet>

  File: full_bib.xml
  <?xml version="1.0" encoding="UTF-8" ?>
  <!DOCTYPE bibliography>
  <bibliography xml:id="All" xmlns="http://docbook.org/ns/docbook"; 
version="5.0" xml:lang="EN">
    <info><title/></info>
    <bibliodiv xml:id="Div">
      <biblioentry xml:id="ANDERSON69">
        <abbrev>ANDERSON69</abbrev>
        <biblioset xml:relation="book">
          <editor><personname><firstname>J</firstname><othername 
xml:role="middle">J</othername><surname>Anderson</surname></personname></editor>
          <citetitle>Patience</citetitle>
          <pubdate>(1969)</pubdate>
          <publisher>
            <publishername>Manchester University Press</publishername>
         </publisher>
        </biblioset>
      </biblioentry>
    </bibliodiv>
  </bibliography>

-- 
Ron Catterall, Phd, DSc                         email: [EMAIL PROTECTED]
  Prolongacion de Hidalgo 140                             http://catterall.net/
  San Felipe del Agua                                        tel: +52 951 520 
1821
  Oaxaca      68020  Mexico                          fax: +1 530 348 8309
  --------------------------------------------------------------------- To 
unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL 
PROTECTED] 

Reply via email to