Leif H. S. wrote:
Please have a look at the attached XHTML document (or the code example
below). It contains a non-conforming but well-formed nesting error for
HTML lists. This kind of nesting error is unfortunately typical for many
javascript based WYSIWYG editors.

The previous version (version 6.7), when opening the attached file,
would display an informative validation message with the built-in
validation tool.

Whereas the current version (version 7.0) only displays a «red flag» in
the bottom left corner of the document window - but without the
informative error message in the validation tool pane on the right side
of the window that informs about /what/ it is that has gone wrong. Hence
it is hard to understand what the error is and, thus, hard to know
whether the program’s refusal to save the document (if you edit it) is
due to an error with the the XMLmind editor or something wrong with the
document.

I paste the code example here:

<h4>Correct nesting</h4>
<ul>
<li>aaa
<ul><li>bbb</li> </ul>
</li>
<li>ccc</li>
</ul>
<h4>Incorrect nesting</h4>
<ul>
<li>aaa</li>
<ul> <li>bbb</li> </ul>
<li>ccc</li>
</ul>


XMLmind XML Editor v6 and v7 behave *exactly* the same after you open error.xhtml:

1) The "red flag" is displayed at the bottom/left of the main window.

2) The "Validity" tool is not automatically displayed.

3) If you click on its tab to display it (this choice is persistent across editing sessions, that is, once displayed, XMLmind XML Editor will keep this tool displayed), it shows:

---
[1] element cannot contain element "ul" [cvc-complex-type]
[2] the sequence of child elements is incorrect [cvc-complex-type.2.4]
---

See attached screenshot.

4) XMLmind XML Editor v6 and v7 allow you to save any file if and only if you modify this file. In the case of erroneous file error.xhtml, XMLmind XML Editor v6 and v7 allow you to save it whether these modifications fix the validity problem or not.



--> You may want to check "Automatically show Validity tool" (Options|Preferences, Tools|Validate section). This will not change XMLmind XML Editor behavior when opening an erroneous file but only when saving it. Please try this option, may be it will help. See http://www.xmlmind.com/xmleditor/_distrib/doc/help/toolsOptions.html#validateOptions






--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to