El 23/09/2011 11:01, Hussein Shafie escribió:
> On 09/22/2011 10:47 PM, Tyrin Avery wrote:
>>
>> My group lead is converting Mylyn DITA output into more polished DITA in
>> eclipse and had a file with a<section>  inside another<section>.
>> XMLMind allowed him to open it, even though it was not valid, work in
>> it,
>
> That's normal. Doing this allows you to fix the structure of your document.
>
>> and then eliminated the whitespace in the<codeblock>  elements when
>> he saved it.
>
> When a document is structurally valid, the whitespace is preserved in
> <codeblock>  elements. (We have retested this.)
>
> When XMLmind XML Editor loads a document having invalid structure errors
> (such as a<section>  inside a<section>), it shows you a red icon at the
> bottom left of its main window and it switches to a non-validating mode.
> Once you fix the invalid structure errors, it will automatically switch
> to its normal, strictly validating, mode.
>
> If you save a document when XMLmind XML Editor is in the non-validating
> mode, currently it's not aware that the DITA DTD says: by default,
> <codeblock>  has attribute xml:space="preserve". Hence the problem you had.
>
> We acknowledge that XMLmind XML Editor could be a little smarter even
> when it's in the non-validating mode. We'll try to improve this in the
> next release. (It's too late for v5 which should be released in the next
> few days.)

I've experienced this non-preserved space inconvenience a lot of times. 
Perhaps the simplest approach could be to just preserve all space while 
in non-validating mode.

Once the document becomes valid, XXE can reformat the whitespace as usual.

-- 
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