|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Linking acronym to a glossary entry
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
|
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








