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’m hoping there is an easy fix. First of all you really need to get rid of the red icon found at the bottom left of its main window by fixing the invalid structure errors. After doing that, I'm afraid you'll have to insert by hand new line characters to your <codeblock>s. We are really sorry for the inconvenience. -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

