This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
RE: [docbook] How to code bibliography citations in regular paragraphs...
- From: "Raju Sharma" <raju at iccind dot stpn dot soft dot net>
- To: "Bob Stayton" <bobs at sco dot com>, "docbook" <docbook at lists dot oasis-open dot org>
- Date: Wed, 28 May 2003 15:44:28 +0530
- Subject: RE: [docbook] How to code bibliography citations in regular paragraphs...
- Reply-to: <raju at iccind dot stpn dot soft dot net>
WoW!! it works. Thanks Bob!
If I also want to avoid the autogenerated value of abbrev (in brackets)
before the <biblioentry>. What should I do? Do I have to modify the XSL
stylesheet OR if any attribute is available?
Regards
Raju
> -----Original Message-----
> From: Bob Stayton [mailto:bobs@sco.com]
> Sent: Wednesday, May 28, 2003 2:38 PM
> To: Raju Sharma
> Cc: docbook
> Subject: Re: [docbook] How to code bibliography citations in regular
> paragraphs...
>
>
> On Tue, May 27, 2003 at 07:22:41PM +0530, Raju Sharma wrote:
> > Hello,
> >
> >
> > I need to code bibliography citation using docbook dtd. My question is:
> >
> > 1) Which element should I use for bibliography citation links that are
> > appearing in paragraphs?
> > For example: If I need to link "Blah... Blah... Bent (1987) ..Blah...
> > Blah..." in running text. Should I use:
> >
> > a) <para>Blah... Blah... <link linkend="Bent1987">Bent (1987)</linkend>
> > .Blah... Blah...</para>
> >
> > OR
> >
> > b) <para>Blah... Blah... <citation><xref linkend="Bent1987"
> > endterm="Bent1987.abbrev"/></citation> Blah... Blah...</para>
> >
> > while in Bibliography the coding is:
> > <biblioentry id="Bent1987"><abbrev id="Bent1987.abbrev">Bent
> (1987)</abbrev>
> > .Blah....</bibliodentry>
>
> Either will work. Using <link> requires typing consistent
> text content for each reference, which is why I would use <xref/> since
> it generates the text automatically and consistently.
>
> If your xref linked to the biblioentry id, then the abbrev
> would be used automatically as the generated xref text,
> but it would be enclosed in square brackets. Using endterm
> pointing to the abbrev element as in your example avoids
> the square brackets.
>
> But using <citation> around the xref will add square brackets around
> the generated text, which you don't show in your example.
> You can use xref with endterm and without a citation wrapper
> to get your example.
>
> But it seems to me that "blah blah Bent (1987)" appearing in a sentence
> will be misread unless it is marked off in some way as a biblio
> reference. That's why the default xref rendering includes
> square brackets.
>
> --
>
> Bob Stayton 400 Encinal Street
> Publications Architect Santa Cruz, CA 95060
> Technical Publications voice: (831) 427-7796
> The SCO Group fax: (831) 429-1887
> email: bobs@sco.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org