[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Linking acronym to a glossary entry

Subject: RE: Linking acronym to a glossary entry
From: DPawson@xxxxxxxxxxx
Date: Thu, 2 Sep 1999 12:52:24 +0100
acronyms rnib
Mainly because my acronyms aren't 'proper'
in that at least one is a space seperated
two words.

The other problem, since resolved, is 
what to do when a word isn't in the glossary.
The author needs to know that and enter
into the glossary. Case insensitivity would
help also. Unresolved as yet.

How would key help here?

key is missing from XT isn't it?

regards, DaveP

>> given
>> 
>> <p>blah <acronym>RNIB</acronym> blah </p> 
>> 
>> ....
>> 
>> <glossary>
>>  <term>RNIB</term><defn> Royal </defn>
>>  ....
>> 
>> </glossary>
>> 
>> is it possible to create a link between 
>> the use of the acronym in the p element
>> and the term element in the glossary?
>> 
>My first though was to use key() for this.
>
>But what's wrong with:
>
><xsl:template match="glossary/term">
> <a name="{.}"/> ...
></xsl:template>
>
><xsl:template match="acronym">
> <a href="#{.}"><xsl:apply-templates/></a>
></xsl:template>
>
>(Unless perhaps some of your glossary entries are not valid in URLs: in
>which case revert to key() and generate-id().)
>
>Mike Kay
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.