Itsme wrote:
> I think I should be able to put an <indexterm>stuff<indexterm> in the middle 
> of a <para>.
> 
> <para>this is some text with an <indexterm>key word</indexterm> in it. 
> </para>
> 
> If I select a word in a para, XXE does not give me the Convert[wrap] option.

The Convert[wrap] is a generic command. It cannot be used to convert 
text to an indexterm element (which has a pretty complex element-only 
content).

It is, of course, possible to write a macro which would convert selected 
text to a indexterm element.

> If I insert an <indexterm> I cannot figure out how I can enter/edit its 
> contents.
> 


> Is anyone out there using docbook and <indexterms>? I am not able to make 
> XXE
> 
> - convert[wrap] an existing word into an indexterm
> - insert an indexterm (blank) and then get the cursor into it to edit it.
> 
> If I hand edit the XML I can put in a non-blank <indexterm>, and from that 
> point on I can manage it and edit it further in XXE.
> 


> Turns out I had to manually add an intermediate <primary> element.
> 
> I don't think <indexterm> makes sense without a <primary> child element 
> (<primary> may even be a mandatory child of <indexterm> in the schema). 
> Should XXE be automatically creating the <primary> when I create the parent 
> <indexterm>?

No, because the DocBook schema does not require the indexterm element to 
have a primary child element (don't ask me why because I don't know). 
See http://www.docbook.org/tdg5/en/html/indexterm.singular.html

If you are using XMLmind XML Editor Professional Edition, simply select 
a indexterm element containing a empty primary child element then use 
Options|Customize Configuration|Save Selected Element as Template (see 
http://www.xmlmind.com/xmleditor/_distrib/doc/help/optionsMenu.html#customizeConfigurationMenu).
 
By doing this, you'll no longer need insert a primary child element by hand.


Reply via email to