Run xml2rfc foo.xml. You'll get the following output:
Parsing file foo.xml
ERROR: Unable to validate the XML document: foo.xml
foo.xml: Line 3: Element front content does not follow the DTD, expecting (title , author+ , date , area* , workgroup* , keyword* , abstract? , note*), got (title date)
Notice how the error message says foo.xml when it should say ~/.cache/xml2rfc/badref.xml.
Ideally the error would say something like this:
ERROR: Unable to validate the XML document: foo.xml
foo.xml: Line 16: Error in included file
~/.cache/xml2rfc/badref.xml: Line 3: Element front content does not follow the DTD, expecting (title , author+ , date , area* , workgroup* , keyword* , abstract? , note*), got (title date)
Issue migrated from trac:299 at 2021-10-20 18:20:32 +0500
component_Version 2 cli
resolution_overtaken by events
type_defect
| by rhansen@bbn.comWith xml2rfc v2.5.0, if an included reference file has an error, the error message displays the document filename not the reference filename.
To reproduce:
foo.xml
with the following contents:~/.cache/xml2rfc/badref.xml
with the following contents:xml2rfc foo.xml
. You'll get the following output:Notice how the error message says
foo.xml
when it should say~/.cache/xml2rfc/badref.xml
.Ideally the error would say something like this:
Issue migrated from trac:299 at 2021-10-20 18:20:32 +0500