This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Multiple glossaries with docbook xsl
The easiest thing would be to sort your glossary collection. The stylesheet
reads through the collection and selects any that match in the document. So
if the collection is sorted, then each generated glossary should be sorted.
If you want the stylesheet to sort, you'll have to customize the template
named "make-auto-glossary" in fo/glossary.xsl. You need to add an xsl:sort
inside the xsl:for-each:
<xsl:for-each select="$collection//glossentry">
<xsl:sort select="normalize-space(glossterm)"/>
See this thread for more on this subject:
http://lists.oasis-open.org/archives/docbook-apps/200212/msg00120.html
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Paulo Eduardo Neves" <pauloneves@gmail.com>
To: "docbook list" <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, May 04, 2005 12:51 PM
Subject: Re: [docbook-apps] Multiple glossaries with docbook xsl
On 5/4/05, Dave Pawson <davep@dpawson.co.uk> wrote:
> Have you looked at the subdivisions of glossary element?
> That may be enough for you? perhaps with included entities
> to keep each 'separate' glossary?
Sean and Dave suggestions almost gave me what I need. I configured it this
way:
1)I'm using a glossary database/collection, as in:
http://www.sagehill.net/docbookxsl/GlossDatabase.html
2)In the project document dir I have a link to the global glossary
(the company glossary).
3)The global glossary has an entity that includes the file
"localglossary.xml". It is the glossary with the project specific
terms. If the project has no specific terms, the file is empty.
Since I don't have duplicate entries, everything works fine. I have a
glossary with all the terms my document use. There's just one PROBLEM:
The glossary entries aren't alphabetically ordered.
Can I tell the docbook xsl files to automatically order my glossary entries?
--
Paulo Eduardo Neves
Agenda do Samba & Choro
http://www.samba-choro.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org