从两个xml输入文件创建html差异显示。

rfc-xmldiff的Python项目详细描述


在两个RFC XML文件上创建差异

这个程序接受两个包含svg或rfc文档的xml文件,并创建一个html 显示两个文档之间差异的文件。

RFC Editor正在更改的规范输入格式 Internet-DraftRFC文档有关此过程的更多信息,请参见 在RFC Editor站点的rfc编辑器上。

用法

rfc xmldiff接受一对xml文档作为输入并输出一个html文档。

基本用法rfc-xmldiff [options] SOURCE1 SOURCE2

选项

The following parameters affect how rfc-xmldiff behaves, however none are required.

ShortLongDescription
^{tt2}$^{tt3}$purge the cache and exit
^{tt4}$^{tt5}$show the help message and exit
^{tt6}$^{tt7}$don’t use the network to resolve references
^{tt8}$^{tt9}$don’t print anything
^{tt10}$^{tt11}$don’t use the xml2rfc vocabulary when matching
^{tt12}$^{tt13}$print extra information
^{tt14}$^{tt15}$display the version number and exit
^{tt16}$^{tt17}$don’t resolve xi:include elements
^{tt18}$^{tt19}$specify an output filename
^{tt20}$^{tt21}$specify HTML template filename
^{tt22}$^{tt23}$don’t load attribute defaults from the dtd
.^{tt24}$specify the URL for resources in the template

模板

软件包中安装了两个模板文件:

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

对于新模板文件,将定义以下变量:

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

依赖关系

RFC xmldiff取决于以下包:

变更日志

版本0.5.19(8月29日星期四)

  • Change source repository

版本0.5.18(8月16日星期五)

  • 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

版本0.5.18(8月16日星期五)

  • 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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java正确使用setCellValueFactory   java当使用flavor维度时,设置Android applicationId的正确方法是什么?   java为了在测试用例中并发执行某些步骤,可以克隆WebDriver实例   JAVA中的If语句给出错误   java在kindle上使用JavaFX   java如何在屏幕上显示多个视图时提高性能?   java“重命名”文件项   使用kafka运行Spark流媒体示例时出现java NoSuchMethodError   java如何在查询视图时返回实体列表   java在条件表达式中使用equals方法   java实现了一种回调机制,用于通知插入/更新   java我想用动态的方式把这个json做成表格式,我怎样才能用安卓来制作呢?   java在另一个字符串的特定点输入字符串时遇到问题   java如何在SeleniumWebDriver中选择xpath中具有动态值的对象   JavaJooq生成一个静态方法来调用函数,但没有方法将其作为字段   scala文件名包含斜杠标点符号,并在线程“main”java中给出异常。木卫一。FileNotFoundException:foo/boo/en_en。json(没有这样的文件或目录)   java使用Saxon和XSLT转换JDOM XML文档   使用Java数组   java从smb文件夹读取文件   java在where in子句中没有值时如何执行查询