将文本格式的RFC和Internet草稿转换为.xml格式
id2xml的Python项目详细描述
Internet草稿文本到XML转换工具
此工具“id2xml”供rfc编辑器人员使用,以便 从纯文本Internet草稿生成第一个与xml2rfc兼容的XML版本 提交。
ID2XML对于希望开始工作的Internet草稿作者也很有用 在旧草稿或rfc的新版本上,没有与xml2rfc兼容的xml 来源可用。
版本1.x可以处理 处理xml2rfc可以接受的xml文件,还可以处理 其他测试文件为可接受的XML。缺少内部链接 数字和表格。
生成的默认xml遵循该工具1.x版中的rfc 7749[1]。 对于该工具的1.3.0版,可以根据rfc 7991[2]获得输出 使用'-3'开关。
[1] | Reschke, J., “The “xml2rfc” Version 2 Vocabulary”, RFC 7749, DOI 10.17487/RFC7749, February 2016, <http://www.rfc-editor.org/info/rfc7749>. |
[2] | Hoffman, P., “The “xml2rfc” Version 3 Vocabulary”, RFC 7991, DOI 10.17487/RFC7991, December 2016, http://www.rfc-editor.org/info/rfc7991>. |
更改日志
版本1.4.4(2018年10月17日)
- Since ‘–’ isn’t allowed inside html comments, trying to add a comment that contains that string will fail. Under some circumstances, id2xml inserts comments about conversion errors into the generated xml, and if the failed text contained ‘–’, this would fail. Tweaked comment insertion to avoid this.
- Added code to look for Abstract both before and after Status-of-Memo and Copyright sections. The placement of the Abstract changes around the time of RFC 5550.
版本1.4.3(2018年10月12日)
- Fixed some issues with author recognition and an infinite loop.
- Added handling for the grammar change ‘a candidate’ –> ‘candidates’ in the status of memo boilerplate.
- Aligned the short options for verbose and version with common practice.