Hi Nick,
I'm not quite following the customizations you made. I'm not clear what the xrefs are supposed to connect to. The first template matched on "bibliolist", but the change you made for id matches on "bibliography". Are you trying to link to biblioentrys?

Bob Stayton
Sagehill Enterprises
[email protected]

--------------------------------------------------
From: "Wood Nick" <[email protected]>
Sent: Tuesday, February 19, 2013 1:44 AM
To: "DocBook Apps" <[email protected]>
Subject: [docbook-apps] FW: PROBELMS WITH BIBLIOGRAPHY

Hi,

I posted the mail below last week but it didn't get through (probably as a result of an organsiational change here last year and the concomiatnt change in e-mail addresses). So here goes again.

Regards

Nick Wood
NATO Communications and Information Agency
Chief Document Engineering and Production Section, NPC
Thier Mathias 1b
4690 Bassenge (Glons), Belgium
T: +32 4 289 9211  F: +32 4 289 9329
E: [email protected]  W: www.ncia.nato.int
________________________________________
From: Wood Nick
Sent: Tuesday, February 12, 2013 3:11 PM
To: DocBook Apps
Subject: PROBELMS WITH BIBLIOGRAPHY

Hi,

I am currently working with the Docbook 1.72.0 styleshhets.
I am having a real problem getting my References (bibliography) to output as I want in pdf. As I work with military-style references I need the output in a table as follows:


Reference         Document Name        Issue        Title

A FOO-SIP 1.0 FOO System Installation Plan

An excerpt of my xml is as follows:

<bibliolist>
     <biblioentry id="foosip">
     <productnumber>FOO-SIP</productnumber>
    <!--pubdate misused for realease number -->
     <pubdate>1.0</pubdate>
     <title>FOO System Installation Plan</title>
   </biblioentry>
   ------
 </bibliolist>


I have developed the following customisation layer:

<?xml version='1.0'?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";
version='1.0'>
<xsl:template match="bibliolist">
<fo:table width="16cm" table-layout="fixed"
border="1.0pt solid black"
text-align="left" space-before="1cm" >
<fo:table-column column-width="1cm" />
<fo:table-column column-width="4cm"/>
<fo:table-column column-width="2cm" />
<fo:table-column column-width="8cm"/>
<fo:table-header background-color="rgb(102,122,187)">
<fo:table-row>
 <fo:table-cell border="solid" padding="4pt" >
  <fo:block color="white" font-weight="bold">Ref</fo:block>
 </fo:table-cell>
 <fo:table-cell border="solid" padding="4pt">
  <fo:block color="white" font-weight="bold">Document</fo:block>
 </fo:table-cell>
 <fo:table-cell border="solid" padding="4pt">
  <fo:block color="white" font-weight="bold">Issue</fo:block>
 </fo:table-cell>
 <fo:table-cell border="solid" padding="4pt">
  <fo:block color="white" font-weight="bold">Title</fo:block>
 </fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<xsl:for-each select="biblioentry" >
<fo:table-row>
<fo:table-cell border="solid" padding="4pt">
<fo:block>
   <xsl:number from="bibliography" count="biblioentry|bibliomixed"
                 level="any" format="A"/>
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid" padding="4pt">
<fo:block>
<xsl:value-of select="productnumber" />
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid" padding="4pt">
<fo:block>
<xsl:value-of select="pubdate" />
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid" padding="4pt">
<fo:block>
<xsl:value-of select="title" />
</fo:block>
</fo:table-cell>
</fo:table-row >
</xsl:for-each>
</fo:table-body>
</fo:table>
</xsl:template>
</xsl:stylesheet>

This works fine but the xerf links in the document are not active as the ID is missing. Having looked through the biblio stylesheet I changed/added the following

<xsl:template match="bibliography">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>

and added id="{id}" to the first fo:block. Now my links are active but the output is longer displayed in a table?

Any ideas would be appreacited.

Thanks


Nick Wood
NATO Communications and Information Agency
Chief Document Engineering and Production Section, NPC
Thier Mathias 1b
4690 Bassenge (Glons), Belgium
T: +32 4 289 9211  F: +32 4 289 9329
E: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to