This program takes two XML files containing SVG or RFC documents and creates an HTML file which shows the differences between the two documents.
The RFC Editor is in the process of changing the canonical input format of Internet-Draft and RFC documents. Further information on the process can be found on the RFC Editor at the RFC Editor site.
rfc-xmldiff
accepts a pair of XML documents as input and outputs an HTML document.
rfc-xmldiff [options] SOURCE1 SOURCE2
The following parameters affect how rfc-xmldiff behaves, however none are required.
Short | Long | Description |
---|---|---|
-C |
--clear-cache |
purge the cache and exit |
-h |
--help |
show the help message and exit |
-N |
--no-network |
don't use the network to resolve references |
-q |
--quiet |
don't print anything |
-r |
--raw |
don't use the xml2rfc vocabulary when matching |
-v |
--verbose |
print extra information |
-V |
--version |
display the version number and exit |
-X |
--no-xinclude |
don't resolve xi:include elements |
-o FILENAME |
--out=FILENAME |
specify an output filename |
-t FILENAME |
--template=FILENAME |
specify HTML template filename |
-D |
--no-defaults |
don't load attribute defaults from the dtd |
. |
--resource-url=URL |
specify the URL for resources in the template |
Two template files are installed with the package:
single.html
- provides just the XML difference between the two files.base.html
- provides three columns containing the left source files, the XML difference and the right source files. Uses color to highlight changes. This is the default template.wdiff.html
- provides three columns containing the left source files, the XML difference and the right source files. Uses color and strike throughs to highlight changes.
For new template files, the following variables are define:
title
- provides a default window titlebody
- contains the XML difference HTMLleftSourceNames
- the list of all input files for the left sourcesleftFile
- contains the left source filesrigthSourceNames
- the list of all input files for the right sourcesrightFile
- contains the right source filesresource_dir
- contains the URL to find the resources. This defaults to the Template directory of the package.allScript
- contains the contents ofresize.js
so the resulting html file is self contained.
rfc-xmldiff
depends on the following packages:
- lxml (>= 4.1.1)
- requests (>= 2.5.0)
- rfctools_common (>= 0.5.10)
- cffi (>= 1.0.0)