etree.RelaxNG fails to load RELAX NG compact (.rnc) file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Medium
|
Unassigned |
Bug Description
With rnc2rng 2.6.1 installed, etree.RelaxNG still fails to load a .rnc file.
test.rnc:
start = element a {empty}
test.py:
from lxml import etree
etree.RelaxNG(
It seems that the rng content generated by rnc2rng is rejected by etree.RelaxNG because it begins with '<?xml version="1.0" encoding=
Version info:
Python : sys.version_
lxml.etree : (4, 3, 3, 0)
libxml used : (2, 9, 5)
libxml compiled : (2, 9, 5)
libxslt used : (1, 1, 30)
libxslt compiled : (1, 1, 30)
Changed in lxml: | |
assignee: | scoder (scoder) → nobody |
milestone: | 4.4.0 → none |
status: | Fix Committed → Fix Released |
milestone: | none → 4.4.0 |
Changed in lxml: | |
status: | Fix Released → Confirmed |
status: | Confirmed → Fix Released |
Thanks for the report. /github. com/lxml/ lxml/commit/ bb2a4fd588d1cdf 5ecd9badd618505 d578ea2942
Fixed here: https:/
As the saying goes, it's either tested or broken. The integration tests with rnc2rng were not automatically running in CI. They are now.