This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.
> 

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]