[PHP-DEV] Bug #11910: Invalid XML declaration generated, missing '?' before the closing '>' From: vvo <email protected>
Date: 07/05/01

From: vvo <email protected>
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 '&gt;'

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

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>