Bug #68454 [NEW]: ID already defined errors after update to anything after 1.1.26
| From: | x9sim9 at hotmail dot com | Date: | Wed, 19 Nov 2014 17:43:25 +0000 |
| Subject: | Bug #68454 [NEW]: ID already defined errors after update to anything after 1.1.26 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-188687@lists.php.net to get a copy of this message | ||
From: x9sim9 at hotmail dot com
Operating system:
PHP version: 5.4.35
Package: XSLT related
Bug Type: Bug
Bug description:ID already defined errors after update to anything after 1.1.26
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 bug report at https://bugs.php.net/bug.php?id=68454&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68454&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68454&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68454&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68454&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68454&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68454&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68454&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68454&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68454&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68454&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68454&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68454&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68454&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68454&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68454&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68454&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68454&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68454&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68454&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68454&r=mysqlcfg