lxml 4.2.3: failure in isoschematron.Schematron()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Components version (on Ubuntu 18.04) :
Python : sys.version_
lxml.etree : (4, 2, 3, 0)
libxml used : (2, 9, 8)
libxml compiled : (2, 9, 8)
libxslt used : (1, 1, 32)
libxslt compiled : (1, 1, 32)
Steps to reproduce the infinite loop:
cd /tmp
git clone https:/
Then run the following python script:
---------------
#! /usr/bin/python2.7
from lxml import etree
from lxml import isoschematron
f = open('/
sct_root = etree.parse(f)
print("sct_root=%s" % sct_root)
# print(etree.
schematron = isoschematron.
print("
------------------
And you get an infinite loop when you reach the line isoschematron.
The same bug exists for this other schematron : "/tmp/validatio
I was told I had to wait longer because it could take up to 30 minutes to generate XSLT from these schematron files. So I waited longer and, after 20 minutes, I get this crash:
Traceback (most recent call last): n.py", line 10, in <module> Schematron( sct_root, store_report=True) lib/python2. 7/dist- packages/ lxml/isoschemat ron/__init_ _.py", line 285, in __init__ schematron, **compile_params) xslt.pxi" , line 600, in lxml.etree. XSLT.__ call__ XSLTApplyError: Fail: This implementation of ISO Schematron does not work with
File "./fx-schematro
schematron = isoschematron.
File "/usr/local/
validator_xslt = self._compile(
File "src/lxml/
lxml.etree.
schemas using the "xslt2" query language.
So the problem is not an infinite loop... but a missing feature ?