El 21/09/2012 22:47, Mike Vevea escribió:
> Many thanks!  That pointed me to the right solution...in my old
> environment, I was defining an entity for each chapter, then invoking
> it. Because they were basically cut/paste into the base document, I
> couldn't have headers on the files.
>
> I tested with adding an appropriate header and switching to Xinclude,
> and it seems to understand that the chapters are actually DocBook
> documents, and...at least so far...doesn't seem to mess with formatting
> inside screen elements.
>
> Thanks!
>
> On Fri, Sep 21, 2012 at 3:19 AM, Hussein Shafie <[email protected]
> <mailto:[email protected]>> wrote:
>...
>     So what could cause this problem?
>
>     --> First idea: XXE does not recognize your document as being a
>     DocBook 4 or DocBook 5 one.
>
>     Move your mouse over the document tab to display tooltip info about
>     your document. If you see "DocBook" like in the attached screenshot,
>     then forget about this idea.
>
>     --> Second idea: your document is structurally invalid. (Example: a
>     table element does not start with a title child element.)
>
>     Do you see a red icon at the botton/left of XXE's main window (see
>     other attached screenshot)? If this is the case, then please fix all
>     validation errors.
>
>     After doing that, please use XXE normally (e.g. never use "Force
>     Deletion", "Force Removal"), as XXE makes it impossible to create
>     structurally invalid documents.
>
>     If you don't know how (or, for any reason, don't want) to fix the
>     structure of your document, then I confirm that, unfortunately for
>     us, you'll have to use another XML editor.

The non-preservation-of-whitespace issue has been discussed several 
times in the past. My preference, as already said, is to keep always the 
whitespace except when an explicit schema allows reformatting.

In particular, I find very convenient to keep all the whitespace:

1 - For invalid documents (the "lenient" editing mode)

and perhaps also:

2 - For XML documents not constrained by a schema

In particular the case (1) is a requirement for using XXE to make 
corrections on invalid documents in order to make them schema-compliant.

Regards,
-- 
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado



 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to