Skip to main content

Create an HTML difference display from two XML input files.

Project description

Create a difference on two RFC XML files

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.

Usage

rfc-xmldiff accepts a pair of XML documents as input and outputs an HTML document.

Basic Usage: rfc-xmldiff [options] SOURCE1 SOURCE2

Options

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

.

--resource-url=URL

specify the URL for resources in the template

Templates

Two template files are installed with the package:

  • single.html - provides just the XML difference between the two files. This is the default template

  • base.html - provides three columns containing the left source files, the XML difference and the right source files.

For new template files, the following variables are define:

  • title - provides a default window title

  • body - contains the XML difference HTML

  • leftFile - contains the left source files

  • rightFile - contains the right source files

  • resource_dir - contains the URL to find the resources. This defaults to the Template directory of the package.

Dependencies

rfc-xmldiff depends on the following packages:

Changelog

Version 0.5.9.1 (Mon 27 Aug)

  • Add missing file to distribution

Version 0.5.9 (Mon 6 Aug)

  • Complete work to remove JQuery from the html file

  • Make the HTML file be self contained

  • Add space after differences for readability

  • Change the pane re-size algorithm.

Version 0.5.8.1 (Wed 18 July)

  • Switch to a word by word diff computation for display

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rfc-xmldiff-0.5.9.1.tar.gz (37.2 kB view details)

Uploaded Source

File details

Details for the file rfc-xmldiff-0.5.9.1.tar.gz.

File metadata

  • Download URL: rfc-xmldiff-0.5.9.1.tar.gz
  • Upload date:
  • Size: 37.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.6

File hashes

Hashes for rfc-xmldiff-0.5.9.1.tar.gz
Algorithm Hash digest
SHA256 5e5de17af8848c7f79ed12f60600f8c1d6a85ed0401f2d3ebb295869137e07bf
MD5 5ffbba592d6e347745936da875a502f7
BLAKE2b-256 49da85c7beae54c8617f4f0d5712a47ffa3840fb222fd0cf971a10e4cc38e980

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page