Missing space in XML declaration of an XSLT Result

Bug #1123074 reported by Alexis Huet
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

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>

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

Fixed in lxml 3.1.2.

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

Other bug subscribers