Hi Hussein,
Thanks for your help - the 'with_glossdef' template was just the
trick... I also received an email from another XXE user who suggested I
add <rootElementLocalName>glossary</rootElementLocalName> to the
rootElementNamespace.
I realize that docBook may not be your main focus, so I understand when
you say XXE is not ideal for docBook - *not with the
bundled DocBook configuration alone* - does this mean there is a
docBook config that is more comprehensive on the Professional Edition?
Cheers,
Chris
Chris Johnson
Web Developer
Capilano College
604.986.1911 ext. 3455
cjohnson at capcollege.bc.ca
>>> hussein at pixware.fr 12/15/2003 2:38:09 AM >>>
[b] XXE, which is not a DocBook editor (that is, which doesn't know the
semantics of DocBook elements), has the following default behavior:
When you insert an element, say a <glossentry>, XXE chooses the
simplest
possible content model, which is for a <glossentry>:
---
<glossentry>
<glossterm></glossterm>
<glosssee></glosssee>
</glossentry>
---
Of course, this is *very annoying* because common sense would mandate:
---
<glossentry>
<glossterm></glossterm>
<glossdef>
<para></para>
</glossdef>
</glossentry>
---
But <glossdef> which contains a <para> is more complex than <glosssee>
which just contains a #text.
Replacing <glosssee> by <glossdef> is easy to do using command
Edit|Replace, but why not automate all this?
Edit <XXE_install_dir>/config/docbook/docbook.xxe and add a template
for
the <glossentry> element:
---
<elementTemplate name="with_glossdef" selectable="override">
<glossentry xmlns="">
<glossterm></glossterm>
<glossdef>
<para></para>
</glossdef>
</glossentry>
</elementTemplate>
---
All this is described in the Power User's Guide. See
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s04s09.html
We can ensure that you can write large DocBook books using XXE Standard
Edition, without never having to use the tree view or an external
editor, more efficiently than with any other tool, but *not with the
bundled DocBook configuration alone*.
In order to reach maximum efficiency, you need to tune the DocBook
configuration to your taste and habits.