1 Aug 2008 01:07
Placement of indexterms
Richard Hamilton <rlhamilton <at> frii.com>
2008-07-31 23:07:29 GMT
2008-07-31 23:07:29 GMT
I've been indexing a book in DocBook 5.0 and am running into something
strange. What I would like to do is to mark an entire section as a
range in the index. So, I have something like this:
<section>
<title>Using the Internet</title>
<indexterm class="startofrange" xml:id="idx.chap.using.web">
<primary>Internet</primary>
</indexterm>
... content ...
<indexterm class="endofrange" startref="idx.chap.using.web"/>
</section>
This works fine if there are no subsections in "... content ...". But,
if there are, the <indexterm> at the end is invalid. That is,
<indexterm> is allowed inside a section *before* any sub-section, but
not after. The only way to make this example parse is to place the
closing <indexterm> at the end of the last, inner-most section.
Confusing enough? Here is a better(?) example:
<section> ...
<indexterm .../> <!-- A OK-->
<section> ...
<section> ...
</section>
<section> ...
<indexterm .../> <!-- B OK-->
</section>
<indexterm .../> <!-- C BAD-->
</section>
(Continue reading)
Peter Desjardins schrieb:
>> My question: are there any possibilities to indent source code
>> automatically?
>>
>
> What tool are you using to author your DocBook content?
>
> I am including XML source code in programlistings also. I've got
> Oxygen to format the code and then I paste it into a programlisting
> using XMLMind. XMLMind preserves the indenting and it handles all the
> escaping of XML tags.
>
> Is that what you meant?
>
> Peter
>
Are there any
attribute-sets for this?
Thanks in advance,
Andreas
RSS Feed