OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Text for glossterm


I am using Docbook 4.3 and docbook-xsl-1.69.1 (sorry - an established 
system. I'll catch up some when)

When I reference a glossentry, I can find no way to make the inline 
glossterm use the text inside the glossentry/glossterm. The behaviour of 
xref is what I feel I want: but clearly the semantics I want are those 
of the inline glossterm. What I want to do is reference a glossentry 
without the effort (and opportunity for accidental confusion) of copying 
the glossentry/glossterm text into the inline glossterm.

Am I missing something or asking the wrong question?

The code is below. The output (HTML) is
======================================


    1. Use

If I use xref I get "Item 
<http://localhost:8888/docs/My%20Documents/Research/meta-phor/rep/docs/design/glossary/t.html#one>".

If I use glossterm I get "// 
<http://localhost:8888/docs/My%20Documents/Research/meta-phor/rep/docs/design/glossary/t.html#one>"

Use of xreflabel with xref gives "Another 
<http://localhost:8888/docs/My%20Documents/Research/meta-phor/rep/docs/design/glossary/t.html#two>"

Use of xreflabel with glossterm gives "// 
<http://localhost:8888/docs/My%20Documents/Research/meta-phor/rep/docs/design/glossary/t.html#two>"

======================================

<?xml version='1.0'?>
<!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.3//EN'
               'http://www.oasis-open.org/docbook/xml/4.3b2/docbookx.dtd'>
<article>
  <title>Example</title>
  <section>
    <title>Use</title>
    <para>If I use <sgmltag>xref</sgmltag> I get "<xref linkend="one"/>".</para>
    <para>If I use <sgmltag>glossterm</sgmltag> I get "<glossterm linkend="one"/>"</para>
    <para>Use of <sgmltag>xreflabel</sgmltag> with <sgmltag>xref</sgmltag> gives "<xref linkend="two"/>"</para>
    <para>Use of <sgmltag>xreflabel</sgmltag> with <sgmltag>glossterm</sgmltag> gives "<glossterm linkend="two"/>"</para>
  </section>
  <glossary>
    <glossentry id="one">
      <glossterm>Item</glossterm>
      <glossdef>
	<para>A long definition.</para>
      </glossdef>
    </glossentry>
    <glossentry id="two">
      <glossterm xreflabel="label">Another</glossterm>
      <glossdef>
	<para>A long definition.</para>
      </glossdef>
    </glossentry>
  </glossary>
</article>

-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%lt%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Nigel Hardy     Tel: +44 1970 622 434.   http://users.aber.ac.uk/nwh/
Dept. Computer Sci,  University of Wales, Aberystwyth, SY23 3DB, UK
Adran Cyfrifiadureg, Prifysgol Cymru,     Aberystwyth, SY23 3DB, UK 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]