0

I have a book with bibliography like

<bibliography>
  <biblioentry>
    <abbrev>A</abbrev>
    <title>This is the book title</title>
  </biblioentry>
  <!-- ... -->
</bibliography>

and can cite individual works with <citation>A</citation>, which will output something like [A] in the resulting HTML.

Now, the citation often includes precise location within the work (such as volume/chapter/page/paragraph number, or their range). I currently have this part in the following text (like <citation>A</citation><phrase>, XX–XXI</phrase>) so I get [A], XX-XXI in the resulting text, but the XX–XXI part is semantically not related to the citation.

How can I make either a citation with text affixed to the reference abbreviation (something like <citation>A<loc>XX–XXI</loc></citation>[A, XX–XXI]), or citation with completely custom text (but hyperlink resolved to the bibliography entry)?

I've been browsing DocBook 5.2: The Definitive Guide, grepping through xslTNG stylesheets and unit tests, and still unsure what to do. Perhaps <link ...> with some xref pointing to bibliography or something similar? Pointers appreciated.

eudoxos
  • 18,545
  • 10
  • 61
  • 110

0 Answers0