Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Mar 2002 18:43:15 +0000
From:      Nik Clayton <nik@freebsd.org>
To:        Ceri <setantae@submonkey.net>
Cc:        doc@FreeBSD.org
Subject:   Re: The FAQ and IndexTerm
Message-ID:  <20020304184314.E29209@canyon.nothing-going-on.org>
In-Reply-To: <20020301161045.GA43649@submonkey.net>; from setantae@submonkey.net on Fri, Mar 01, 2002 at 04:10:45PM %2B0000
References:  <20020301161045.GA43649@submonkey.net>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Fri, Mar 01, 2002 at 04:10:45PM +0000, Ceri wrote:
> According to http://www.docbook.org/tdg/en/html/indexterm.html, the indexterm
> element is not valid within <qandaentry> tags, which as I understand (and I
> could be very wrong) leaves me with the only way of doing this to be adding
> IndexTerm ranges as described on the same page.

Put the indexterms inside the <question> or <answer> elements.

    <qandaset>
      <qandaentry>
        <question id="foo-frobbing">
	  <indexterm>
	    <primary>foo</primary>
	    <secondary>frobbing</secondary>
          </indexterm>

	  <para>How do I frob the foo device?</para>
        </question>

	<answer>
	  <para>Frob the foo device by. . .</para>
        </answer>
      </qandaentry>

      ...
    </qandaset>

which is valid DocBook (but I haven't tested it to see what the output
looks like.

N
-- 
FreeBSD: The Power to Serve      http://www.freebsd.org/               (__)
FreeBSD Documentation Project    http://www.freebsd.org/docproj/    \\\'',)
                                                                      \/  \ ^
   --- 15B8 3FFC DDB4 34B0 AA5F  94B7 93A8 0764 2C37 E375 ---         .\._/_)

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjyDwEEACgkQk6gHZCw343UgKQCfdXeIRQ9khTAgQnrcJLTSslUN
vloAn2vSlKr6ABjaOo3cLjKDpdHXVEt/
=dnGD
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020304184314.E29209>