xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: Linking acronym to a glossary entry


Subject: RE: Linking acronym to a glossary entry
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 1 Sep 1999 10:27:08 +0100

> 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



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor