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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vvo at geocities dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 11:01:30 2024 UTC