This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Sorted Glossary (Solution)
- From: Bob Stayton <bobs at caldera dot com>
- To: David Cramer <dcramer at broadjump dot com>,Stephan Wiesner <stephan at stephan-wiesner dot de>, docbook-apps at lists dot oasis-open dot org
- Date: Tue, 17 Dec 2002 12:07:15 -0800
- Subject: Re: DOCBOOK-APPS: Sorted Glossary (Solution)
- References: <97B71B827DFB2B448A73EC00E5DA0EE67119AB@logos.inhouse.broadjump.com>
I didn't think additional markup in the glossterm would matter.
In:
<xsl:sort select="glossterm | acronym"/>
The xsl:sort select expression gets converted to
a string, so the sort key on:
<glossentry><glossterm><productname>Widgitizer</productname></glossterm>...
still be "Widgitizer", wouldn't it?
I don't understand the inclusion of acronym in the
sort key, though. Glossterm is required, so every
glossentry will have one. Taking the string value of
a nodeset (glossterm union with acronym) always gives you
the string value of just the first node in document
order, which would be glossterm. I don't think
acronym is considered.
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com
On Sat, Dec 14, 2002 at 12:49:06PM -0600, David Cramer wrote:
> Watch out for glossterms in the glossary that contain markup: <glossentry><glossterm><productname>Widgitizer</productname></glossterm>...
>
> David
>
> -----Original Message-----
> From: Stephan Wiesner [mailto:stephan@stephan-wiesner.de]
> Sent: Saturday, December 14, 2002 10:37 AM
> To: docbook-apps@lists.oasis-open.org
> Subject: DOCBOOK-APPS: Sorted Glossary (Solution)
>
>
> Hi list,
> Call me lazy, but I hate to group and sort my glossary. Therefore I just
> put them into my document and use XSL to sort them.
> Just in case anybody is interested, here it is.
>
> Stephan
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com