php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11910 Invalid XML declaration generated, missing '?' before the closing '>'
Submitted: 2001-07-05 11:02 UTC Modified: 2001-07-05 12:46 UTC
From: vvo at geocities dot com Assigned:
Status: Not a bug Package: Sablotron XSL
PHP Version: 4.0.4pl1 OS: Linux Redhat 7.0
Private report: No CVE-ID: None
 [2001-07-05 11:02 UTC] vvo at geocities dot com
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-05 12:46 UTC] derick@php.net
If it is Sablotron who is generating the wrong non-valid XML files, then this bugreport should go to the Sablotron team.

Bogusfied
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 23 16:01:26 2019 UTC