Hello

by default, when inserting a docbook <glossentry>, XXE creates the 
following XML code:

   <glossentry>
     <glossterm></glossterm>
     <glosssee></glosssee>
   </glossentry>

I guess this is automatically derived from the DTD, since the content 
model of <glossentry> looks like this:

   glossentry ::=
   (glossterm,acronym?,abbrev?,
    (indexterm)*,
    revhistory?,
    (glosssee|glossdef+))

The problem now is that I don't see a way of converting these 
glossentries to:

   <glossentry>
     <glossterm></glossterm>
     <glossdef></glossdef>
   </glossentry>

which is what you want as a default most of the time.

I managed to *create* glossentries like this by creating the following 
template in my customization:

   <elementTemplate name="mydocbook" selectable="override">
     <glossentry xmlns="">
       <glossterm></glossterm>
       <glossdef><para></para></glossdef>
     </glossentry>
   </elementTemplate>

But now I have the inverse problem: I can't create a glossentry with a 
<glosssee> element inside.

So my question is:
Is there a reason why I can't convert a <glosssee> to a <glossdef> and 
vice-versa? (because that would be the only way to go from one to the 
other without breaking dtd conformance).

Thanks for your help
        Bernd
-- 
"I'm a doctor, I am supposed to tell people where it hurts (so I can
fix it and make money)."
                                        -- Mark S.


Reply via email to