Missing space in XML declaration of an XSLT Result
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
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_
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=
<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>
Changed in lxml: | |
milestone: | none → 3.1 |
Interesting. Thanks for spotting this.
https:/ /github. com/lxml/ lxml/commit/ cbfedcd89ab2d22 74a7d1266633ea7 887524d76c