This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] A very small BibTeX-like system for DocBook
- From: Ramon Casellas <casellas at infres dot enst dot fr>
- To: Stephane Bortzmeyer <bortzmeyer at nic dot fr>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 8 Sep 2003 16:02:16 +0200 (CEST)
- Subject: Re: [docbook-apps] A very small BibTeX-like system for DocBook
- References: <20030908135422.GA32418@nic.fr>
Hi all,
Just a short note, in db2latex we did something like this:
<xsl:apply-templates select="biblioentry"
mode="bibliography.cited">
<xsl:sort select="./abbrev"/>
<xsl:sort select="./@xreflabel"/>
<xsl:sort select="./@id"/>
</xsl:apply-templates>
....
<xsl:template match="biblioentry" mode="bibliography.cited">
<xsl:param name="bibid" select="@id"/>
<xsl:param name="ab" select="abbrev"/>
<xsl:variable name="nx" select="//xref[@linkend=$bibid]"/>
<xsl:variable name="nc" select="//citation[text()=$ab]"/>
<xsl:if test="count($nx) > 0 or count($nc) > 0">
<xsl:call-template name="biblioentry.output"/>
</xsl:if>
</xsl:template>
regards,
r.
On Mon, 8 Sep 2003, Stephane Bortzmeyer wrote:
> My small work of the day. Many people requested a BibTeX-like system
> for DocBook allowing the inclusion of only the cited references. My
> solution is not perfect but it is lightweight, requires only a XSL
> processor, and it works for me. Comments welcome, the files are small
> so I include them all.
>
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.