|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Linking acronym to a glossary entry
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








