Closed bertsky closed 2 years ago
Note: I also tried implementing the namespace
fixer on the etree level instead of string postprocessing, but it seems that lxml does not provide an easy mechanism for changing namespaces (there are no namespace nodes or such, and if you attempt to replace a node.tag
, you'll automatically get a new nsprefix like ns0
in the nsmap, which you cannot control or override; etree.cleanup_namespaces
only partially helps) – so I gave up on that.
Arg, this was closed because I force-pushed. But I still have the original branch, so can apply it later.
Fixes #1, #2, #3 (but we could do more here), #4, #6 and #8.
Here's the current output of
-h
: