Re: [lamps] Editing help with external references with kramdown / xml2rfc tools

Mike Ounsworth <Mike.Ounsworth@entrust.com> Sat, 12 February 2022 21:09 UTC

Return-Path: <Mike.Ounsworth@entrust.com>
X-Original-To: spasm@ietfa.amsl.com
Delivered-To: spasm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 26DD23A0FE3; Sat, 12 Feb 2022 13:09:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=entrust.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QgS4VjZhgw7u; Sat, 12 Feb 2022 13:09:06 -0800 (PST)
Received: from mx07-0015a003.pphosted.com (mx07-0015a003.pphosted.com [185.132.183.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9C7EF3A0FD7; Sat, 12 Feb 2022 13:09:02 -0800 (PST)
Received: from pps.filterd (m0242864.ppops.net [127.0.0.1]) by mx08-0015a003.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21CL36eE021171; Sat, 12 Feb 2022 15:08:59 -0600
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=entrust.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=mail1; bh=yYWZAhiAahDrL5RVNxbqoS3m8pPHGhmMFwYqOvutXxM=; b=IzuH2NjW4eT+tbkq1BH87BXTCRlUHlk5OcUYkCWuXUrnub5R5MOMPjem2GuJiHTKvUwg etV0GBzo9LkiXyltZG18pC100vcwJgAHHZeHYmNe24/I/TUFQ4k2Vs7fzVdI0hwFhm/P rlUTTaWHat2uV2rmgZqZEvTZdps1RNHELSaJJubySNPfmDSJgXlTcI8+ZvNHysweXEDz YhuPd+tZ2EhQ1uhZA/ri+lr3kb9SHR6zY2IaN2TfwQN8SEAlC7jTqLalswQ0MrXe09jA GknahlA4dr0xWjpFQILaMu44GvhpLDEWJXV5f3KweGhfDPwV8bdf5kEv6vR0Sr3IZ3ZY iw==
Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2103.outbound.protection.outlook.com [104.47.58.103]) by mx08-0015a003.pphosted.com (PPS) with ESMTPS id 3e6af590ru-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 12 Feb 2022 15:08:59 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kpsZlq9s2EQfnlaDr3ZsnAr1jkanKThfsVhspF8MfhkmLeyQT7W6KP1j9mABP2NDh2Ecj4is8Hh19C8+sMs4qKGAOe7z/fvFcUj+9CJbbWq8AbauHSk2VBHUgj+b/PAK+JxYW3LpmmGBgK6JNtsSM/coPS4nFYCvZ0Lx5RhovcJhHxcInrUd0xCKo6NMwP9BcDZIhmHS0cGj5hIIDVI/hKdh48muKQakEgE9Kloi5l2EOSZqkHXhRwJl3Achq5oBGHI8Z+z54IB4BiLErmtwxuRXqMYBuS4UZyL1XXc+iFvt2FAj/JjuAZhK9cLTHWz38jylVdlIqCvHtRtVTAOnng==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yYWZAhiAahDrL5RVNxbqoS3m8pPHGhmMFwYqOvutXxM=; b=OlRRgIxCO/sYQdHhN+3ITtHzKy5YLGTu5j6x5nuK5EQSDWf+JpRo4Wjv+gnuAJpdzVWH/099v6hXRqdRdJvXmrfu8Cvgz38gNZXdIydQzZtbiktLBhhH4WGaRlOjtFeXsonubkGeHl2qpDFuFN1ufhmmJxc9bH+tvWhZafvEjyA49kyB0or2vMrNYzitT3+/4vtQwSo6p/GfwBOtNe7F9Gfn4rv/sPRWHIItqczMogBgHwq/5+QNg0XvrBntouBxUQ9xxmTsO+z0wXvxCZ6tJl0di9geR1x4VCX17eFWqIugnUmUu35iRr8PVNb3XhiWnOOZOo22R4AechtwbCfEWg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
Received: from CH0PR11MB5739.namprd11.prod.outlook.com (2603:10b6:610:100::20) by DM6PR11MB2778.namprd11.prod.outlook.com (2603:10b6:5:c0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.11; Sat, 12 Feb 2022 21:08:55 +0000
Received: from CH0PR11MB5739.namprd11.prod.outlook.com ([fe80::5cb9:3739:1bbb:9a60]) by CH0PR11MB5739.namprd11.prod.outlook.com ([fe80::5cb9:3739:1bbb:9a60%4]) with mapi id 15.20.4951.019; Sat, 12 Feb 2022 21:08:54 +0000
From: Mike Ounsworth <Mike.Ounsworth@entrust.com>
To: Daniel Migault <daniel.migault=40ericsson.com@dmarc.ietf.org>, 'LAMPS' <spasm@ietf.org>
Thread-Topic: Editing help with external references with kramdown / xml2rfc tools
Thread-Index: AdggJpOLNhnLltrXTiyn1e2DHSzU1AAEqeK6AAbTWnA=
Date: Sat, 12 Feb 2022 21:08:54 +0000
Message-ID: <CH0PR11MB5739156242E080733C6B87069F319@CH0PR11MB5739.namprd11.prod.outlook.com>
References: <CH0PR11MB5739E2A32A93D491FAEB2EA89F319@CH0PR11MB5739.namprd11.prod.outlook.com> <DM6PR15MB3689AEBFC78ACAEC872656F3E3319@DM6PR15MB3689.namprd15.prod.outlook.com>
In-Reply-To: <DM6PR15MB3689AEBFC78ACAEC872656F3E3319@DM6PR15MB3689.namprd15.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: baa02c02-36c8-434a-483f-08d9ee6be0c7
x-ms-traffictypediagnostic: DM6PR11MB2778:EE_
x-microsoft-antispam-prvs: <DM6PR11MB2778D7BC8AF20555E0859FEB9F319@DM6PR11MB2778.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8273;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: JshtgIVt2C/XN5gojxMbXnNkSLs2hlCtEBuEI7xNlzkSiU1gg2DDlTvijLBrdi/dQqvtIcOj5oOVQfdfx8zD/OO1FClOCefhNDeQDGmDEx0U5tJalBQFYAQPcjCEpfiwY0uscs7OrZAJ9DYPpF/hEHGUQY/gUW6K/uhKY2JC85SifoWoQJ3GqxLf/zm/YncWMVpUNJOzHAh31aTN6wJwqhiUOBb46DQ0wJZ18VcrzYC2GjCYtQ7lj6+FSI+hIb26T2RPM+n3X/Nh88hM8XER0pAbyBeSTIruv7elaBcowmlHfWJ/du405ySf0KaejMfaqeHtk9DNMk5R9eLdzi6kU/92KcfFupcrg073gle550RcAUoUuha+rqu33QnP3cRw1EWqCmzLu4VxScee/PnXQS1zTTJcLhfrTxNdgbNHgj1qY9JqAdFIoisiEe+y9YV9db0RkkLwAwryzCzmK3mlixW5zXlzcXl+eDSKsSnyk9EKRjTbMCnYAHYTer9o7toGACeMyJ80IM+MjQ2btjF9QS60uYGZ97txNxIHZYRJm4Ez8MGLj4PvXujRFFIZ4xqfeEgTyNtam43YUWKe515D8Fs5dBDSYemmSS8NGFpvvcsm+Gz73LcWnwXNIx7uTPYzCEX0cMR4GXYOStNh6mMzCQ5qcWDX1XbbUR5TKl4nmXA197jgwow1OZx90TsWyezlhji8PwuTA9wKSVrQLsTx3ID0mmwpGhUkbMhLwH66ugTF2V/zAHv3uNFl+Ef9XyCBoYe9o5hU4aqaeW4KrFq6SRUskpBTEFKALOt0Gjqms38=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH0PR11MB5739.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(6506007)(55016003)(83380400001)(2906002)(7696005)(508600001)(40140700001)(38070700005)(966005)(76116006)(110136005)(316002)(71200400001)(38100700002)(122000001)(5660300002)(66946007)(66446008)(66476007)(66556008)(86362001)(52536014)(9686003)(26005)(64756008)(8676002)(33656002)(186003)(8936002)(53546011); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: ZnuTWzlpMknYrTzN4/mYA9CoLs+FrN3d21xyNmW5AroKuOhsqAuqEQ/jvP+1ZxODjm7qWfm/hIlIW+j1TrWMj62hbZG5pUrWTJN37pDuTGfsbrLqks94W/tRhhShITHeEw2eZEmu5kJD7+1vlwxKTLgB/X57lSSkla72tUqbD4oWlzrwZleFPygKBcFqC4iC5KZnnQSJwfgdi1t5DlOj3s+sCmNit/DPrmjcLeNOybOuOWmtKBFmylQSc2oOCNcedzT5AR+6o2publLw2oJW8rbG6Q/bkG6nj2HY92Ak0IusrBaZxfajyjJhWuAVu7wHquX44nc9kfSWYdt8lQlp2d8tUTHkXNtj0tfNwbAHhPuGmlVcdr7MqYaVSoQtRfgnz/EGcqUSvWpNJyVzYIUAibjsVWFiUDluFaXjiiVcENeFP5JNmPDKxbV7dzilzKFWVeIQ3TmgToOwNkWI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XWd6yOLWrsI1WeAeEsnM1T1j1WY9A4NrRgr7wWVH6VKOf5uVYo6X3I09RoZJ4Ht6kgFEl3AOSpvMZLWQ72AGeF9Ml+80pBF4ODIvK8af2VbJGDPLpAoH/Rw88M1mC6YgDVkUFQk/Gpw==
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: entrust.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH0PR11MB5739.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: baa02c02-36c8-434a-483f-08d9ee6be0c7
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2022 21:08:54.7204 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: f46cf439-27ef-4acf-a800-15072bb7ddc1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 6FA6ZXGZ38ze3UKkZJkzpi/5nwTJshjjRFOxhXE0GYWFPa33Jjcmqck6ZdlNjFEqdVExmdbCycMiqpLkGIg9axVC1EYj9ZzJY9Lu8p9I3gQ=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB2778
X-Proofpoint-GUID: j1-Wdpr0ikO0_9bTP4U-nRmT2YzxtTci
X-Proofpoint-ORIG-GUID: j1-Wdpr0ikO0_9bTP4U-nRmT2YzxtTci
X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-12_08,2022-02-11_01,2021-12-02_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 adultscore=0 mlxlogscore=999 clxscore=1011 priorityscore=1501 lowpriorityscore=0 mlxscore=0 phishscore=0 suspectscore=0 malwarescore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202120132
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/TTqt5BcmA2NQhrX3lMolcDcgQRw>
Subject: Re: [lamps] Editing help with external references with kramdown / xml2rfc tools
X-BeenThere: spasm@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "This is a venue for discussion of doing Some Pkix And SMime \(spasm\) work." <spasm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spasm>, <mailto:spasm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spasm/>
List-Post: <mailto:spasm@ietf.org>
List-Help: <mailto:spasm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spasm>, <mailto:spasm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 12 Feb 2022 21:09:13 -0000

Got it working! 
Thank you for the example to copy!

(I also have to shamefully admit that I either had too much or not enough coffee this morning because I had one draft open in my IDE / terminal and a completely different draft open in firefox, so of course the changes were not showing in the html / txt)

---
Mike Ounsworth

-----Original Message-----
From: Daniel Migault <daniel.migault=40ericsson.com@dmarc.ietf.org> 
Sent: February 12, 2022 11:53 AM
To: Mike Ounsworth <Mike.Ounsworth@entrust.com>; 'LAMPS' <spasm@ietf.org>
Subject: [EXTERNAL] Re: Editing help with external references with kramdown / xml2rfc tools

WARNING: This email originated outside of Entrust.
DO NOT CLICK links or attachments unless you trust the sender and know the content is safe.

______________________________________________________________________
This might be what you are looking at:


informative:
  UNBOUND-ANCHOR:
    author:
    target: https://urldefense.com/v3/__https://nlnetlabs.nl/documentation/unbound/unbound-anchor/__;!!FJ-Y8qCqXTj2!KZ-nEE9XQBabc6gdQJcO713jD7p91gwFVFgxNj6QjTSIuprcGDZ5wEjzuAXRG4DUbjPg$ 
    title: unbound-anchor - Unbound anchor utility
  ENT:
    author:
      name: Vincent Levigneron
    target: https://urldefense.com/v3/__https://indico.dns-oarc.net/event/25/contributions/403/attachments/378/647/AFNIC_OARC_Dallas.pdf__;!!FJ-Y8qCqXTj2!KZ-nEE9XQBabc6gdQJcO713jD7p91gwFVFgxNj6QjTSIuprcGDZ5wEjzuAXRG2wL8wwO$ 
    title: ENT was here !!!



https://urldefense.com/v3/__https://github.com/mglt/draft-mglt-dnsop-dnssec-validator-requirements/edit/master/draft-ietf-dnsop-dnssec-validator-requirements.mkd__;!!FJ-Y8qCqXTj2!KZ-nEE9XQBabc6gdQJcO713jD7p91gwFVFgxNj6QjTSIuprcGDZ5wEjzuAXRGxil2Lvb$ 

________________________________________
From: Spasm <spasm-bounces@ietf.org> on behalf of Mike Ounsworth <Mike.Ounsworth=40entrust.com@dmarc.ietf.org>
Sent: Saturday, February 12, 2022 10:38 AM
To: 'LAMPS'
Subject: [lamps] Editing help with external references with kramdown / xml2rfc tools

Anyone willing to help me get the syntax right for specifying external references in an I-D?

Toolchain: source (.mkd) ----kramdown-rfc2629--->  .xml  ------xml2rfc------>  .txt / .html


I have specified my references like this:

informative:
  I-D.draft-ounsworth-pq-composite-sigs-05:
  Bindel2017:
    title: "Transitioning to a quantum-resistant public key infrastructure"
    author:
      -
        ins: N. Bindel
        name: Nina Bindel
      -
        ins: U. Herath
        name: Udyani Herath
      -
        ins: M. McKague
        name: Matthew McKague
      -
        ins: D. Stebila
        name: Douglas Stebila
    date: 2017

normative:
  RFC1421:
  RFC2119:
  RFC2986:
  RFC4210:
  RFC4648:
  RFC5280:
  RFC5652:
  RFC5958:
  RFC7468:
  RFC8174:
  RFC8411:
  X.690:
      title: "Information technology - ASN.1 encoding Rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)"
      date: November 2015
      author:
        org: ITU-T
      seriesinfo:
        ISO/IEC: 8825-1:2015


The normatives all render fine.

The informatives are completely absent in the rendered .txt and .html.



The kramdown-rfc2629 tool is placing them in the .xml intermediate like this:

    <references title='Normative References'>

&RFC1421;
&RFC2119;
&RFC2986;
&RFC4210;
&RFC4648;
&RFC5280;
&RFC5652;
&RFC5958;
&RFC7468;
&RFC8174;
&RFC8411;
<reference anchor="X.690" >
  <front>
    <title>Information technology - ASN.1 encoding Rules: Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER)</title>
    <author >
      <organization>ITU-T</organization>
    </author>
    <date year="2015" month="November"/>
  </front>
  <seriesInfo name="ISO/IEC" value="8825-1:2015"/> </reference>

    </references>

    <references title='Informative References'>

&I-D.draft-ounsworth-pq-composite-sigs-05;
<reference anchor="Bindel2017" >
  <front>
    <title>Transitioning to a quantum-resistant public key infrastructure</title>
    <author initials="N." surname="Bindel" fullname="Nina Bindel">
      <organization></organization>
    </author>
    <author initials="U." surname="Herath" fullname="Udyani Herath">
      <organization></organization>
    </author>
    <author initials="M." surname="McKague" fullname="Matthew McKague">
      <organization></organization>
    </author>
    <author initials="D." surname="Stebila" fullname="Douglas Stebila">
      <organization></organization>
    </author>
    <date year="2017"/>
  </front>
</reference>

    </references>


but xml2rfc gives me this warning and then they don't appear at all in the rendered .txt and .html

Warning: No <xref> in <rfc> targets <reference anchor='RFC1421'>
Warning: No <xref> in <rfc> targets <reference anchor='RFC4648'>
Warning: No <xref> in <rfc> targets <reference anchor='I-D.ounsworth-pq-composite-sigs'>
Warning: No <xref> in <rfc> targets <reference anchor='Bindel2017'>



Anyone have an idea what I'm doing wrong here?


- - -
Mike Ounsworth
Software Security Architect
(pronouns: he/him)
O: +1-613-270-2873
[cid:image004.png@01D81FF4.4B63C2A0]

[cid:image003.png@01D81FF2.8323D560]


Any email and files/attachments transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. If this message has been sent to you in error, you must not copy, distribute or disclose of the information it contains. Please notify Entrust immediately and delete the message from your system.