To run the transformation:
setenv SGML_CATALOG_FILES $HOME/rfc2md/external/sgml_catalogue_files.xml
If run with --stringparam draft "final"
, leave out crefs
.
xsltproc --catalogs rfc2md.xslt rfcV2.xml
xsltproc --stringparam draft "final" --catalogs rfc2md.xslt rfcV2.xml
RFC XML v2 code tested and roundtripped with https://github.com/miekg/mmark . Mmark appears to be buggy in handling of XML references and comments as crefs.