Brett Leber wrote:
> I installed the DocBook 5b3 configuration into XXE 3.1. I'm currently
> creating a glossary within an article. Everyhing was going very
> smoothly, but I've hit a road bloack: I cannot enter a glossdef element
> within a glossentry element; it does not appear on the list of elements
> to insert anywhere. As far as I know, this is valid DocBook 5 grammar.
>
> Any suggestions? I can't have glossary entries without definitions ;)
When you insert a new glossentry, by default, XXE uses the *simplest*
*possible* *content* for it. Unfortunately, in this case, the simplest
choice is a dumb one: a glosssee.
Explicitly select the glosssee element and use command "Replace" to
replace it by a glossdef. (The grammar says that you can't have both a
glosssee and a glossdef.)
This can be automated by defining an element template for glossentry in
docbook5.xxe:
---
<elementTemplate name="simple" selectable="override">
<glossentry xmlns="http://docbook.org/ns/docbook">
<glossterm></glossterm>
<glossdef><para></para></glossdef>
</glossentry>
</elementTemplate>
---
Element templates are described here:
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/elementTemplate.html