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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Fri Dec 27 02:01:29 2024 UTC