Re: Issue: Unwanted xmlns declarations

Hussein Shafie <[email protected]> Wed, 9 Apr 2025 11:58:17 +0200
Newsgroups gmane.editors.xxe.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------FQq5Y99Jcbm0auj6iwoJKOWP
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

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


--------------FQq5Y99Jcbm0auj6iwoJKOWP
Content-Type: text/html; charset=UTF-8; name="table_template.html"
Content-Disposition: attachment; filename="table_template.html"
Content-Transfer-Encoding: base64

PGRpdiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+PHRhYmxlLz48L2Rp
dj4gCg==
--------------FQq5Y99Jcbm0auj6iwoJKOWP
Content-Type: text/html; charset=UTF-8; name="table1.html"
Content-Disposition: attachment; filename="table1.html"
Content-Transfer-Encoding: base64

PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGRpdiB4bWxucz0iaHR0
cDovL3d3dy53My5vcmcvMTk5OS94aHRtbCI+PHRhYmxlPgogICAgPHRib2R5PgogICAgICA8
dHI+CiAgICAgICAgPHRkPjE8L3RkPgoKICAgICAgICA8dGQ+MjwvdGQ+CiAgICAgIDwvdHI+
CgogICAgICA8dHI+CiAgICAgICAgPHRkPjM8L3RkPgoKICAgICAgICA8dGQ+NDxkaXY+PG1h
dGggZGlzcGxheT0iYmxvY2siCiAgICAgICAgICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9y
Zy8xOTk4L01hdGgvTWF0aE1MIj4KICAgICAgICAgICAgPG1yb3c+CiAgICAgICAgICAgICAg
PG1uPjI8L21uPgoKICAgICAgICAgICAgICA8bW8+KzwvbW8+CgogICAgICAgICAgICAgIDxt
bj4yPC9tbj4KICAgICAgICAgICAgPC9tcm93PgogICAgICAgICAgPC9tYXRoPjwvZGl2Pjwv
dGQ+CiAgICAgIDwvdHI+CiAgICA8L3Rib2R5PgogIDwvdGFibGU+PC9kaXY+Cg==

--------------FQq5Y99Jcbm0auj6iwoJKOWP
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

--------------FQq5Y99Jcbm0auj6iwoJKOWP--