xsl-list
[Top] [All Lists]

RE: Reusing XML content as I publish

2005-01-28 09:37:18
Hello,

Thanks for your answer, but it's not quite what I need...

Basically I have a section of XML that creates a glossary. In the
glossary are glossaryitems.

The glossary already exists, the formatting is set.

What I want to do is pick up the text from one of the terms and reuse it
elsewhere in the document by referencing just the glossary item "name",
and getting the term and definition as part of a 'tooltip.'

So if the glossary entry is: 
<glossaryitem name="Allocate">

            <term>Allocate Stuff</term>

            <definition>

              <para>Stuff about allocations</para>

            </definition>


And in the document (in another section completely)I write, 'You can
then Allocate resources' I want to be able to add a tag that will then
pick up the glossaryitem details without me having to retype it.

So I would write: 'You can then <glossarytt name="Allocate"
width="200">Allocate</glossarytt> resources'

When I publish to HTML, the glossarytt tag would request the specific
<glossaryitem> and pick up the <definition>, and format them into a
tooltip:

<a href="#" class="tooltip_Allocate">Allocate<span>Stuff about
allocations</span></a>

The user would then see the text 'You can then Allocate resources' with
Allocate underlined. When they clicked on it they would get a
description of the term.

I can do the tooltips. I can do the glossary. What I can't get it to do
it locate a specific glossary item and then put the definition into the
right place.

Hope that helps...

Nicola

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>