Missing space in XML declaration of an XSLT Result

Bug #1123074 reported by Alexis Huet on 2013-02-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxml
Medium
scoder

Bug Description

By migrating an XSL from xsltproc command-line to a lxml program, I’ve discovered that resulting XML declaration were different, and especially that a missing whitespace in the XML declaration lead to validation fail.

The attached script generate the following output :

Python : sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
lxml.etree : (3, 1, 0, 0)
libxml used : (2, 8, 0)
libxml compiled : (2, 8, 0)
libxslt used : (1, 1, 26)
libxslt compiled : (1, 1, 26)

Missing space with unicode
<?xml version="1.0"standalone="no"?>
<tata>I løve spåm</tata>

OK with str
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<tata>I løve spåm</tata>

Alexis Huet (ahuet+launchpad) wrote :
scoder (scoder) wrote :
Changed in lxml:
assignee: nobody → Stefan Behnel (scoder)
importance: Undecided → Medium
status: New → Fix Committed
scoder (scoder) wrote :

Fixed in lxml 3.1.2.

Changed in lxml:
status: Fix Committed → Fix Released
scoder (scoder) on 2013-04-28
Changed in lxml:
milestone: none → 3.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers