|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-13 13:35 UTC] amt@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 04:00:01 2025 UTC |
Description: ------------ The <xsl:copy-of> transformation on elements called '<link>'. This is extremely anoying for transforming RSS for example. Reproduce code: --------------- Here is the xml file : <rss version="0.92"> <channel> <item> <timestamp>1057489449</timestamp> <title>aaa</title> <link>bbb</link> </item> </channel> </rss> and the xslt file : <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="yes" encoding="utf-8"/> <xsl:template match="/"> <xsl:copy-of select="*"/> </xsl:template> </xsl:stylesheet> Expected result: ---------------- <rss version="0.92"> <channel> <item> <timestamp>1057489449</timestamp> <title>aaa</title> <link>bbb</link> </item> </channel> </rss> Actual result: -------------- <rss version="0.92"> <channel> <item> <timestamp>1057489449</timestamp> <title>aaa</title> <link> </item> </channel> </rss> Look at the <link> element ! it doesn't close anymore.