Subject: RE: Linking acronym to a glossary entry From: DPawson@xxxxxxxxxxx Date: Thu, 2 Sep 1999 12:52:24 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Linking acronym to a glossary e, Kay Michael | Thread | Re: Linking acronym to a glossary e, David Carlisle |
Re: accessing the DTD, David Carlisle | Date | Re: Linking acronym to a glossary e, David Carlisle |
Month |