This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] bibliograpy line spacing in FO
- From: Deepak Shrestha <d88pak at yahoo dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 27 Oct 2004 01:15:29 -0700 (PDT)
- Subject: [docbook-apps] bibliograpy line spacing in FO
Hi,
Can somebody guide me on how to get the Bibliography
in single spaced format in PDF output while my other
part of the documents in double space. The
"line-height" parameter I used in my custom stylesheet
affected the whole document including Bibliography.
This is actually my thesis. I have consulted the FO
parameters lists but there is no parameters for line
spacing in biliogrpahy.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
XIII. Bibliography
biblioentry.item.separator - Text to separate
bibliography entries
bibliography.collection - Name of the bibliography
collection file
bibliography.numbered - Should bibliography
entries be numbered?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I guess it could be achieved by replacing template. I
have looked at "fo/biblio.xsl" but I am stucked there.
My bibliography entries are something like this:
bibliography > bibliodiv > title > biblioentry >
..blah....blah
I looked at the specific part of the "fo/biblio.xsl"
containing "biblioentry" feature but I am confused at
that section and don't know how to trace further,
which is as follows:
#----part of the biblio.xsl --------
<xsl:template match="biblioentry">
<xsl:variable name="id"><xsl:call-template
name="object.id"/></xsl:variable>
<xsl:choose>
<xsl:when test="string(.) = ''">
<xsl:variable name="bib"
select="document($bibliography.collection,.)"/>
<xsl:variable name="entry"
select="$bib/bibliography/*[@id=$id][1]"/>
<xsl:choose>
<xsl:when test="$entry">
<xsl:apply-templates select="$entry"/>
</xsl:when>
<xsl:otherwise>
<xsl:message>
<xsl:text>No bibliography entry:
</xsl:text>
<xsl:value-of select="$id"/>
<xsl:text> found in </xsl:text>
<xsl:value-of
select="$bibliography.collection"/>
</xsl:message>
<fo:block id="{$id}"
xsl:use-attribute-sets="normal.para.spacing">
#*****[1]
<xsl:text>Error: no bibliography entry:
</xsl:text>
<xsl:value-of select="$id"/>
<xsl:text> found in </xsl:text>
<xsl:value-of
select="$bibliography.collection"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<fo:block id="{$id}"
xsl:use-attribute-sets="normal.para.spacing" #****[2]
start-indent="0.5in"
text-indent="-0.5in">
<xsl:call-template name="biblioentry.label"/>
<xsl:apply-templates
mode="bibliography.mode"/>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
#-----part end---------
I am stucked there at the numbered line (#****[1]
&[2]). From there I don't know how to trace. My
question is:
1) Is it the right thing I am at?
2) Is there a quick hack around this?
Some guidance and suggestions are highly appriciated.
Thanks in advance.
Deepak
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com