This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] sorting a bibliography
- From: Emma Jane Hogbin <emmajane at xtrinsic dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 10 Dec 2003 12:27:00 -0500
- Subject: [docbook-apps] sorting a bibliography
- Reply-to: Emma Jane Hogbin <emmajane at xtrinsic dot com>
Hi,
I'm currently working on a document for the Linux Documentation Project.
Alas, I am a lazy author (or perhaps that should read: moderately horrid
at alphabetical correctness) but moderately good with google. I have a
gaggle of items in my bibliography, but they are not in order.
I'd like to tweak my biblio.xsl (nwalsh) file so that each <bibliodiv />
is sorted alphabetically by <biblioentry /><title /> when the document is
output to XHTML.
/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/xhtml/biblio.xsl
contains:
<xsl:template match="bibliodiv">
<div xmlns="http://www.w3.org/1999/xhtml" class="{name(.)}">
<xsl:apply-templates>
<xsl:sort select="bibilioentry/title" data-type="text" order="descending"/>
</xsl:apply-templates>
</div>
</xsl:template>
Although this throws up no errors, it does not sort the bibliography by
title in the output XHTML file.
Thank you for any help you may be able to give me,
emma
--
Emma Jane Hogbin
[[ 416 417 2868 ][ www.xtrinsic.com ]]
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.