docbook: transformations: alphabetizing bibliographies
Subject:
Re: transformations: alphabetizing bibliographies
From:
"John R. Daily" ####@####.####
Date:
8 Dec 2003 22:30:15 -0000
Message-Id: <200312082230.hB8MUDBs019020@ms-smtp-03-eri0.ohiordc.rr.com>
At (time_t)759482524 Saqib Ali wrote:
> <xsl:sort
> select=document/article/bibliography/bibilioentry[.=current()]"
> order="ascending" />
Here's a modified example from "XSLT for Dummies", my favorite
quick-hit reference book. Note that I don't understand
bibliographies, so I've simplified (and probably broken) the
select; also note that in order this to work, there'd
have to be a way to call the original bibliography template, or
this would have to be incorporated into a replacement template.
<xsl:template match="bibliography">
<xsl:apply-templates>
<xsl:sort select="biblioentry/title" data-type="text" order="ascending"/>
</xsl:apply-templates>
</xsl:template>
-John