The content model of a <caption> is:
---
caption ::=
(#PCDATA|calloutlist|glosslist|itemizedlist|orderedlist|
  segmentedlist|simplelist|variablelist|caution|important|note|tip|
  warning|literallayout|programlisting|programlistingco|screen|
  screenco|screenshot|formalpara|para|simpara|blockquote)*
---

Therefore, a <caption> is always indented like this (mixed content ==> 
``horizontal layout''):
---
<caption><para>Component view of the Sectra Cardiology Package and its 
interaction with IDS5</para></caption>
---

When a <caption> is indented like that (element-only content ==> 
``vertical layout''):
---
<caption>
   <para>Component view of the Sectra Cardiology Package and
   its interaction with IDS5</para>
</caption>
---
my *guess* is that one of the ancestors of this caption was found to be 
structurally invalid (red icon) and that the indenter has guessed the 
content model of *this* <caption> by looking at its current content 
(just a <para> and surrounding white-space).

I suggest that you send me the version of the document where a <caption> 
is treated like having element-only content so we can sort this problem out.

---
PS: You may find this behavior pretty stupid in the case of a *DTD* 
because the contents of a <caption> is always the same and is very easy 
to find. The problem is that XXE knows nothing at all about the 
specifities of a DTD. XXE works at a much more abstract level. You'll be 
happy with that when we will all have to work with DocBook RELAX NG.




Kenneth Johansson wrote:
> We have found a strange behaviour in XXE v2.8. As you can see in the diff 
> below XXE has added nice indention which is nice, except
> it should have indented the text nicely when it was added, and not several 
> versions later. The text in revision 1.12 has been
> indented like this since revision 1.9 and in revision 1.8 the text was nicely 
> indented, i.e. same as here.
> 
> We have the same setup in all XXE installations. Do you have any idea what 
> this problem might be?
> 
> 
> retrieving revision 1.12
> retrieving revision 1.13
> diff -r1.12 -r1.13
> 27,28c27,28
> <     <xi:include href="file:///common/about_this_document_preface.xml"
> <     xmlns:xi="http://www.w3.org/2001/XInclude";></xi:include>
> ---
> 
>>  <xi:include href="file:///common/about_this_document_preface.xml"
>>              xmlns:xi="http://www.w3.org/2001/XInclude"; />
> 
> 109,110c109,112
> <         <caption><para>Component view of the Sectra Cardiology Package
> and it
> 
> <         interaction with IDS5</para></caption>
> ---
> 
>>        <caption>
>>          <para>Component view of the Sectra Cardiology Package and
> 
> its
> 
>>          interaction with IDS5</para>
>>        </caption>
> 
> 540c542,544
> <             <caption><para>CMS License Manager</para></caption>
> ---
> 
>>            <caption>
>>              <para>CMS License Manager</para>
>>            </caption>
> 
> 574c578,580
> <             <caption><para>CMS License Manager</para></caption>
> ---
> 
>>            <caption>
>>              <para>CMS License Manager</para>
>>            </caption>
> 
> 690c696,698
> <             <caption><para>CMS License Manager</para></caption>
> ---
> 
>>            <caption>
>>              <para>CMS License Manager</para>
>>            </caption>
> 
> 
> 
> Part of diff:
> retrieving revision 1.8
> retrieving revision 1.9
> <         <caption>
> <           <para>Component view of the Sectra Cardiology Package and its
> <           interaction with IDS5</para>
> <         </caption>
> ---
> 
>>        <caption><para>Component view of the Sectra Cardiology Package and its
>>        interaction with IDS5</para></caption>
> 
> 
> 
> Thanks,
> 
> /Kenneth
> 
> --------------------------------------------------------
> Kenneth Johansson       Technical Documentation Manager
> Sectra Imtec AB
> Teknikringen 20         E-mail: ke-joh AT sectra DOT se
> SE-583 30 Link?ping     Phone:  +46 13 23 52 00
> SWEDEN                  Web:    http://www.sectra.se <http://www.sectra.se/>
> 
> 
> 
>  
> --
> XMLmind XML Editor Support List
> xmleditor-support at xmlmind.com
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support
> 
> 


-- 
Hussein SHAFIE, hussein at pixware.fr,
Pixware, Immeuble Capricorne, 23 rue Colbert,
78180 Montigny Le Bretonneux, France,
Phone: +33 (0)1 30 60 07 00, Fax: +33 (0)1 30 96 05 23


Reply via email to