Bug #68454 [Opn->Fbk]: ID already defined errors after update to anything after 1.1.26
| From: | cmb@php.net | Date: | Tue, 06 Jul 2021 16:33:12 +0000 |
| Subject: | Bug #68454 [Opn->Fbk]: ID already defined errors after update to anything after 1.1.26 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-234839@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68454&edit=1
ID: 68454
Updated by: cmb@php.net
Reported by: x9sim9 at hotmail dot com
Summary: ID already defined errors after update to anything
after 1.1.26
-Status: Open
+Status: Feedback
Type: Bug
Package: XSLT related
PHP Version: 5.4.35
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
According to the SO thread, you have filed a bug report against
libxml2. What came out of that?
Previous Comments:
------------------------------------------------------------------------
[2014-11-19 17:43:24] x9sim9 at hotmail dot com
Description:
------------
This issue has already been well documented on stack exchange so I thought it made sense to add the
link here instead:
http://stackoverflow.com/questions/25893393/xsltprocessortransformtoxml-id-already-defined/27023224#27023224
The issue seems to have been created by fixing an existing bug and that the XHTML is now being
treated as XML whereas older versions were treated as HTML.
I am hoping a compatibility flag or similar could be implemented so that codebases built on this
flaw can still operate.
Test script:
---------------
XML demonstrating the issue (rare)
<x>
<my_tag id="1234" id="4567">aaa</my_tag>
</x>
XSL demonstrating the issue (more common)
<xsl:template match="/">
<div id="1234">aaa</div>
<!-- further down the code -->
<div id="1234">bbbb</div>
</xsl:template>
Expected result:
----------------
Render the HTML
Actual result:
--------------
XSLT ERROR OCCURED: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]: ID already
defined
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68454&edit=1