Hi Stuart,

On Tuesday, January 1, 2013 3:31:15 AM UTC+1, Stuart Rackham wrote:
>
>
> > Does anybody know a method how to do this? 
>
> This will work: 
>
> A link to the <<foo-term,Foo glossary term>>. 
>
>
> [glossary] 
> == My glossary 
>
> [glossary] 
> Foo:: 
>   [[foo-term]]This is a foo term 
> Bar:: 
>   This is a bar term 
>

Thanks Stuart for your help! I've played around a little bit with your 
idea. However, if you use the above structure, AsciiDoc will create this 
structure:

<glossentry>
  <glossterm>Foo</glossterm>
  <glossdef>
    <simpara>
      <anchor id="foo-term" xreflabel="[foo-term]"/>This is a foo term
    </simpara>
  </glossdef>
</glossentry>

The <anchor/> tag is unfortunate at this position and quite useless. I 
guess, it's a typo and the label should be placed *on the glossary term 
itself*. If I move the label to the term ([[foo-term]]Foo::), the situation 
gets better:

<glossentry>
  <glossterm><anchor id="foo-term" xreflabel="[foo-term]"/>Foo</glossterm>
  <glossdef>
    <simpara>This is a foo term</simpara>
  </glossdef>
</glossentry>
 
Much better. However,  it's still not perfect. ;)

The xreflabel is IMHO unfortunate. If you link to a glossary entry, you 
usually don't want the label but the entry itself. If the <anchor/> could 
be removed alltogether and the id placed into the <glossentry> start tag, 
this would be perfect!

Well, I guess, this could be fixed easily with a XSLT cleanup layer before 
you pass it to your real stylesheets. Just some final thoughts on this 
topic. 

Thanks Stuart and a happy new year!

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/asciidoc/-/bwGISHfrRwYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to