On 4/6/25 22:20, Leif Halvard Silli wrote:
I have a Web page where I update the HTML table regularely.

The very section with the HTML table element, I edit in XXE:  I have created an XML document in the HTML namespace, with the following document structure:

<div xmlns="http://www.w3.org/1999/xhtml";><table/></div>

(Thus, there is no DOCTYPE or <html> or <body> —  or any other of the elements that are required in a valid HTML document.)

And thus, every time I need to edit the table, I create a new file with the above document structure, and edit in XXE, before I paste the code into the Web page.

I/We have worked this way for some years.

But this week, I noticed that even when I open old documents, extra namespace declarations are added, like so:

<div xmlns="http://www.w3.org/1999/xhtml";
xmlns:xxe="http://www.xmlmind.com/xmleditor/namespace/extension";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:svg="http://www.w3.org/2000/svg";
xmlns:ns="http://www.w3.org/1999/xhtml";
xmlns:mml="http://www.w3.org/1998/Math/MathML";>

I think might be the first time I saw these declarations in the documents of this particular project. But it is not the first time I have seen it, as such.

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.




Or if it is an XXE bug?

Even if all these namespace declarations are not useful, they are pretty harmless.




Or what? The version XXE where this happened, is version 10.10

I'm sorry but I cannot reproduce the issue you describe using forthcoming XXE 10.11 (identical to XXE 10.10 when it comes to saving XHTML files).

1) I've created attached table_template.html

---
<div xmlns="http://www.w3.org/1999/xhtml";><table/></div>
---

2) I opened this file automatically detected by XXE as being XHTML5 and I've added a tbody, tr, td, etc, to its table.


3) I've inserted a MathML expression and I get attached table1.html.

---
<?xml version="1.0" encoding="UTF-8"?>
<div xmlns="http://www.w3.org/1999/xhtml";><table>
    <tbody>
      <tr>
        <td>1</td>

        <td>2</td>
      </tr>

      <tr>
        <td>3</td>

        <td>4<div><math display="block"
            xmlns="http://www.w3.org/1998/Math/MathML";>
            <mrow>
              <mn>2</mn>

              <mo>+</mo>

              <mn>2</mn>
            </mrow>
          </math></div></td>
      </tr>
    </tbody>
  </table></div>
---

1 2
3 4
2 + 2
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to