OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Page numbers in citations in XHTML5


Hi,
It seems to be an unsupported feature. This comment appears in the template for biblioref:

<!-- To be done: add support for begin, end, and units attributes -->

While I'm sure it will usually be used for page references, I think general support for these attributes may get complicated because 'units' can be any CDATA, as can 'begin' and 'end'. And not all are required if any are used. I suppose a simple presentation might handle the most common cases:

the value of 'units', followed by
a space, followed by
the value of 'begin',
and if the value of 'end' is not blank, then
dash, followed by
the value of 'end'.

Would that make sense in all 74 locales that DocBook supports?

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

--------------------------------------------------
From: "Christopher Culver" <crculver@christopherculver.com>
Sent: Sunday, January 06, 2013 9:00 AM
To: <docbook-apps@lists.oasis-open.org>
Subject: [docbook-apps] Page numbers in citations in XHTML5

I am applying the stylesheet xhtml5/docbook.xsl in docbook-xsl-ns-1.78.0
to my Docbook XML file. However, though linked citations appear in the
output, the page numbers specified for them do not. I am unaware whether
this is a bug, an unsupported feature or I simply am not setting the
required parameters.

Here is my minimal example:

<?xml version="1.0" encoding="UTF-8"?>
<article xmlns="http://docbook.org/ns/docbook"; version="5.0" xml:lang="en">
 <info>
   <title>Minimal example of missing page numbers</title>
   <author>

<personname><firstname>Christopher</firstname><surname>Culver</surname></personname>
   </author>
 </info>
<para>The Kazakh vowel system consists of 11 phonemes.
<citation><biblioref units="pages" begin="95" end="95"
linkend="aralbayev1970" role="bib" /></citation></para>
<bibliolist>
   <title>References</title>
   <biblioentry xml:id="aralbayev1970" xml:lang="ru">
     <abbrev>Aralbaev 1970</abbrev>
     <author><personname>
<firstname>Жубаныш Aралбаевич</firstname><surname>Аралбаев</surname>
     </personname></author>
     <citetitle>Вокализм казахского языка: очерки по
     экспериментальной фонетике и фонологии</citetitle>
   <date>1970</date>
   <publisher>
    <publishername>Nauka</publishername>
    <address>Alma-Ata</address>
   </publisher>
 </biblioentry>
   </bibliolist>
</article>

Applying the aforementioned docbook.xsl to the file produces the
following XHTML output:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml";><head><title>Minimal example of missing page numbers</title><link rel="stylesheet" type="text/css" href="docbook.css"/><link rel="stylesheet" type="text/css" href="corpstyle.css"/><meta name="generator" content="DocBook XSL Stylesheets V1.78.0"/></head><body><section xml:lang="en" class="article" id="idp20052736"><div class="titlepage"><div><div><h1 class="title">Minimal example of missing page numbers</h1></div><div><div class="author"><h3 class="author"><span class="firstname">Christopher</span> <span class="surname">Culver</span></h3></div></div></div><hr/></div><p>The Kazakh vowel system consists of 11 phonemes. [<span class="citation"><a href="#aralbayev1970" class="biblioref"><abbr class="abbrev">Aralbaev 1970</abbr></a></span>]</p><div class="bibliolist"><div class="bibliolist-title">References</div><div xml:lang="ru" class="biblioentry" id="aralbayev1970"><p>[<abbr class="abbrev">Aralbaev 1970</abbr>] <span class="author"><span class="firstname">Жубаныш Aралбаевич</span> <span class="surname">Аралбаев</span>. </span><span class="citetitle"><em class="citetitle">Вокализм казахского языка: очерки по экспериментальной фонетике и фонологии</em>. </span><span class="date">1970. </span><span class="publisher"><span class="publishername">Nauka. </span><span class="address">Alma-Ata. </span></span></p></div></div></section></body></html>

As one can see, the page numbers specified as attributes in the
biblioref element are nowhere to be found in the output. I have set XSL
parameter insert.xref.page.number" to "yes" in a customization layer,
but this has no effect. What can I do to fix this?

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]