Bug #11910: Invalid XML declaration generated, missing '?' before the closing '>'
| From: | vvo at geocities dot com | Date: | Thu, 05 Jul 2001 15:02:55 +0000 |
| Subject: | Bug #11910: Invalid XML declaration generated, missing '?' before the closing '>' | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-59002@lists.php.net to get a copy of this message | ||
From: vvo@geocities.com
Operating system: Linux Redhat 7.0
PHP version: 4.0.4pl1
PHP Bug Type: Sablotron XSL
Bug description: Invalid XML declaration generated, missing '?' before the closing
'>'
This bug was found with Sablotron 0.60. When a stylesheet is using:
...
<xsl:output method="xml" version="1.0" encoding="UTF-8"
omit-xml-declaration="no" />
...
The resulting XML will have the following declaration:
<?xml version="1.0" encoding="UTF-8">
...
Notice that according to XML 1.0 the declaration should end with '?>', not just
'>'. So the '?' is missing, hence the resulting XML document is not
well-formed.
Thanks.
--
Edit Bug report at: http://bugs.php.net/?id=11910&edit=1