Skip to main content

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

-D

--no-defaults

don’t load attribute defaults from the dtd

.

--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.

  • 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 title

  • body - contains the XML difference HTML

  • leftSourceNames - the list of all input files for the left sources

  • leftFile - contains the left source files

  • rigthSourceNames - the list of all input files for the right sources

  • rightFile - contains the right source files

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

  • allScript - contains the contents of resize.js so the resulting html file is self contained.

Dependencies

rfc-xmldiff depends on the following packages:

Changelog

Version 0.5.19 (Thur 29 Aug)

  • Change source repository

Version 0.5.18 (Fri 16 Aug)

  • Fix error building paragraphs with ‘li’

  • Fix error in JavaScript

  • Remove Python 3.4 from the supported list

  • Correct problem with writing unicode on Python 2.7

Version 0.5.18 (Fri 16 Aug)

  • Fix error building paragraphs with ‘li’

  • Fix error in JavaScript

  • Remove Python 3.4 from the supported list

  • Correct problem with writing unicode on Python 2.7

Metadata

Release files for rfc-xmldiff 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rfc-xmldiff 0.6.0
File Size Uploaded
rfc-xmldiff-0.6.0.tar.gz 39.0 kB Details

Release files / rfc-xmldiff-0.6.0.tar.gz

Download URL rfc-xmldiff-0.6.0.tar.gz
Size 39.0 kB
Tags Source
SHA-256 checksum
How to use checksums
2763e68c0965379ac0f0b8aa21e48cf79ef0518ef0c77629e5a120557058cf5f
BLAKE2b-256 checksum
How to use checksums
f5d07c65a7bd389e1b0ca84fed57f55be6c5164003711e7751d8658b686c9989
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.9.1 pkginfo/1.4.1 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.6.0 This release

1 release file

0.5.19

1 release file

0.5.18

1 release file

0.5.17

1 release file

0.5.15

1 release file

0.5.14

1 release file

0.5.13

1 release file

0.5.12

1 release file

0.5.11

1 release file

0.5.10

1 release file

0.5.9.1

1 release file

0.5.9

1 release file

0.5.8.1

1 release file

0.5.8

1 release file

0.5.7

1 release file

0.5.6

1 release file

0.5.5

1 release file

0.5.4.1

1 release file

0.5.4

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page