Next in thread → Next in month →

Re: [docbook-apps] A very small BibTeX-like system for DocBook

From
Ramon Casellas <>
Date
2003-09-08T13:41:09+00:00
ID
Thread
Re: [docbook-apps] A very small BibTeX-like system for DocBook
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) &gt; 0 or count($nc) &gt; 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.
>
Next in thread → Next in month →