Leif H Silli wrote:
I have some new info:
I assumed that the namespace declaration only got inserted into XHTML
files without the HTML doctype declaration.
However, it turns out that the declarations get inserted even in regular
XHTML files __with__ the HTML doctype declaration.
Further more, when I enable the option to immediately save new
documents, I recognized that in the immediately saved file, there are no
xmlns declarations. Only when I subsequently write something, and
__then__ save the file, do the xmlns attributes get inserted.
I'll try to reproduce the issue using these new info.
2025-04-09 11:58 Hussein Shafie:
[ snip ]
Anyway, I just wondered if this is due to some XXE setting that I
might have edited?
I don't see which setting this could be.
Then what is it ...?
Or if it is an XXE bug?
Even if all these namespace declarations are not useful, they are
pretty harmless.
Probably. Unless this is sign of some further misbehavior by XXE.
I noticed that in one document, some "<" that should been kept as is,
were converted to <.
Please explain how to reproduce this.
Another issue is that the built in validator/error checker does not
detect these namespace declarations: It should reported them as errors.
The validation step checks the *logical* contents of the XML document
against its schema (and also possibly against a Schematron) and that's it.
Namespace declarations are not part of the logical contents of the
document. They are just used by XXE when the document is being loaded
and parsed.
But instead it simply ignores them - it is as if they do not exist.
Please consider this as an XXE limitation as we are not going to change
this.
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support