Dimitri Monie wrote:
> 
> I have a formatting problem with XML Mind Std Edition, including in v2.3p1:
> 
> If I create a <itemizedlist> element inside a <para>, this element, and all 
> its sub-elements (item, ...) 
> are not formatted nor indented in the xml file.
> It has no impact when using XXE, but it prevents users of text editors from 
> being able to browse the file.

That's true. This is a limitation of XXE: inside mixed elements such as
para, text *and descendant elements* are always formatted like this (in
the saved XML file):

---
  <para>xxx xxx xxx xxx xxx xxx
  xxx xxx xxx xxx xxx xxx xxx
  xxx xxx xxx xxx xxx xxx xxx xxx
  xxx xxx xxx xxx</para>
---

There are 2 workarounds:

* Do not put itemizedlist inside a para. This is allowed by the DocBook
DTD and therefore this is supported by XXE, but, in practice, there very
few good reasons to do so. (Note: Simplified DocBook does not allow to
put itemizedlists inside paras.) 

To do so, simply use command 'Insert After' instead of 'Insert'. Or more
simply, use the 'Add itemizedlist' icon found in the DocBook tool bar.
The macro-command executed by this iconic button will not insert an
itemizedlist inside the para, but rather after it.

* OR Use a third party indenter/pretty printer to nicely format XML
files produced by XXE.

I'm not ironic in saying this. I'm just saying that producing very
nicely indented XML files in all possible cases is a job of its own.
Nevertheless, I'm adding your request to the XXE wish list (will be
published on our new Web site).

Reply via email to