[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] FW: PROBELMS WITH BIBLIOGRAPHY
Bob, Thank you very much. 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: nick.wood@ncia.nato.int W: www.ncia.nato.int ________________________________________ From: Bob Stayton [bobs@sagehill.net] Sent: Thursday, February 21, 2013 5:34 PM To: Wood Nick; DocBook Apps Subject: Re: [docbook-apps] FW: PROBELMS WITH BIBLIOGRAPHY OK, thanks for clarifying. The problem here is not with id on bibliolist or bibliography, but with biblioentry. When you do: <xsl:for-each select="biblioentry" > that changes the context to each biblioentry. Then you can run object.id on that context and insert the id the first fo:block in the table row: <xsl:for-each select="biblioentry" > <fo:table-row> <fo:table-cell border="solid" padding="4pt"> <fo:block> <xsl:attribute name="id"> <xsl:call-template name="object.id"/> </xsl:attribute> <xsl:number from="bibliography" count="biblioentry|bibliomixed" level="any" format="A"/> </fo:block> </fo:table-cell> Bob Stayton Sagehill Enterprises bobs@sagehill.net -------------------------------------------------- From: "Wood Nick" <Nick.Wood@ncia.nato.int> Sent: Thursday, February 21, 2013 4:59 AM To: "DocBook Apps" <docbook-apps@lists.oasis-open.org> Subject: RE: [docbook-apps] FW: PROBELMS WITH BIBLIOGRAPHY > Hi Bob, > > Yes the outputted xref should be an active link to a biblioentry. > > My inintial customisation (matching biliolist) aimed at rendering my > biblionetries in a table within a chapter. In further chapters I have > xrefs with linkend ids with the value of the biblioentry ids. My table > renders as expected and the xrefs also render as expected, with the > exception that the generated text is not an active link to an entry in the > table. On inspecting the fo output I noticed there was no id in the first > fo:block for each biblioentry. > > I suspected this had something to do with calling template object.id. as > in the original biblio stylesheet, so I tried the following: > > <xsl:template match="bibliolist"> > <xsl:variable name="id"> > <xsl:call-template name="object.id"/> > </xsl:variable> > > On inspecting the fo output I noticed that the id in the first fo:block > for each biblioentry was still empty. So to test, I tried the same > customisation but this time matching bibliography (as in the original > stylesheet). This did put a value in the id in the fo ouput (and my links > were active) but the entries did not rendered in a table. > > 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: nick.wood@ncia.nato.int W: www.ncia.nato.int > ________________________________________ > From: Bob Stayton [bobs@sagehill.net] > Sent: Wednesday, February 20, 2013 5:59 PM > To: Wood Nick; DocBook Apps > Subject: Re: [docbook-apps] FW: PROBELMS WITH BIBLIOGRAPHY > > 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 > bobs@sagehill.net > > -------------------------------------------------- > From: "Wood Nick" <Nick.Wood@ncia.nato.int> > Sent: Tuesday, February 19, 2013 1:44 AM > To: "DocBook Apps" <docbook-apps@lists.oasis-open.org> > 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: nick.wood@ncia.nato.int 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: nick.wood@ncia.nato.int >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org >> >> >> > --------------------------------------------------------------------- > 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]