With lxml release 5.0.0, xml2rfc generates an error when xml:space attribute is used in spanx (deprecated) and<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [ ]> is declared.
This causes xml2rfc test suite to fail with lxml==5.0.0.
But xml:space attribute in artwork doesn't generate an error.
...
Warning: /usr/local/lib/python3.10/dist-packages/xml2rfc/templates/rfc2629-other.ent is no longer needed as the special processing of non-ASCII characters has been superseded by direct support for non-ASCII characters in RFCXML.
draft-rathnayake-xmlspace-00.xml(30): Error: Invalid attribute space for element em, at /rfc/middle/section[1]/t/em
/root/xml2rfc/draft-rathnayake-xmlspace-00.xml(4): Error: Invalid document before running preptool.
Unable to complete processing draft-rathnayake-xmlspace-00.xml
Describe the issue
With lxml release 5.0.0,
xml2rfc
generates an error whenxml:space
attribute is used inspanx
(deprecated) and<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [ ]>
is declared. This causesxml2rfc
test suite to fail withlxml==5.0.0
. Butxml:space
attribute inartwork
doesn't generate an error.Example:
xml2rfc
output:Code of Conduct