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

Daniel Migault <daniel.migault@ericsson.com> Sat, 12 February 2022 17:53 UTC

Return-Path: <daniel.migault@ericsson.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 E1CE93A05C7 for <spasm@ietfa.amsl.com>; Sat, 12 Feb 2022 09:53:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.676
X-Spam-Level:
X-Spam-Status: No, score=-2.676 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.576, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 WvjbOio0SezN for <spasm@ietfa.amsl.com>; Sat, 12 Feb 2022 09:53:14 -0800 (PST)
Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on20611.outbound.protection.outlook.com [IPv6:2a01:111:f400:7ea9::611]) (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 1795A3A0491 for <spasm@ietf.org>; Sat, 12 Feb 2022 09:53:13 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Lk3iT8GfpD9cz6MaigX0aN05A+jHglyA1FWgqLeNNRDHb2bUbIxhxLjSXmrN4l0kPLvExuIzHJXiJnQtA68A/3cnbqEpsbWEwvlQWGKFwdZOv0tRxdVLqKTxMsBU278QCe9A94yQ1qacIzf0x9lPxThOo++OUVEpWDkQL16B+Bw+nKKTowi2BrCk1EVEF/ggGglGYYjDbuNbuT+A8AWpOvUUozldlJKbzn0gGFYMzJsIoEA61LY8JXkGgkUR5cZezmuHCuC+JcmUNEeuEmFkw61KbM9VvbZULuX6Rler395FdrLzatSiQOSooXYU7cA3m5oiIaeGyl5T42QWOQYoNQ==
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=enkzYTXIZnsoccIeYKFGhq2sKWUx8A6hDuoW4qE+l4g=; b=c8uPQkUsKfemPtt+qfsgvJK99Uq9Nckk1f3e5hyd7HuGs0Ca1iD3KxU4ykopFvDeW33gkJP491FfDZAZrVTKCyim9pf7ytme8ocborl/ZNTzf6lzbb0t63gQ7pUMhTDDbN4CoFc/1yGiD/+ajzMYF6e6SBua7We1A9acyi/GI9QKeGjE3jC9ol+8CVPRIS7ISGyBNcUDUafC9NGcyhQTWh7M1mkUXoClMCNirz0M46VnVtyyCvCoj8mjtCorqWSfLIfW+2aDgqE03B/I/K2jz8xlOkLg40efFHC7lIMncafN5vfqz8qGg1VIgAC4JQ6puPPQoMGs24Bcl8bG028Wyg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=enkzYTXIZnsoccIeYKFGhq2sKWUx8A6hDuoW4qE+l4g=; b=RUHaaL+Gdx32M+/tGjnYGEWNvxJeedjwmH7/zbO0SUVtHfDo+3ZjBfQpS3X6XxJHyOMHVK+/nvf1OUNTahAD2P8G1/6LZTcwiYgDOPBUz5iKINOHwbS9mQx/jLGGNAQwDWQVNaypfyZ1Cxg5Ls313ZxHr0AVOZrIJ2R1mMiwzDU=
Received: from DM6PR15MB3689.namprd15.prod.outlook.com (2603:10b6:5:1fb::27) by BN8PR15MB2658.namprd15.prod.outlook.com (2603:10b6:408:cf::17) 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 17:53:06 +0000
Received: from DM6PR15MB3689.namprd15.prod.outlook.com ([fe80::6459:15d1:c5d7:3596]) by DM6PR15MB3689.namprd15.prod.outlook.com ([fe80::6459:15d1:c5d7:3596%4]) with mapi id 15.20.4951.019; Sat, 12 Feb 2022 17:53:06 +0000
From: Daniel Migault <daniel.migault@ericsson.com>
To: Mike Ounsworth <Mike.Ounsworth=40entrust.com@dmarc.ietf.org>, 'LAMPS' <spasm@ietf.org>
Thread-Topic: Editing help with external references with kramdown / xml2rfc tools
Thread-Index: AdggJpOLNhnLltrXTiyn1e2DHSzU1AAEqeK6
Date: Sat, 12 Feb 2022 17:53:06 +0000
Message-ID: <DM6PR15MB3689AEBFC78ACAEC872656F3E3319@DM6PR15MB3689.namprd15.prod.outlook.com>
References: <CH0PR11MB5739E2A32A93D491FAEB2EA89F319@CH0PR11MB5739.namprd11.prod.outlook.com>
In-Reply-To: <CH0PR11MB5739E2A32A93D491FAEB2EA89F319@CH0PR11MB5739.namprd11.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-Hashtags: #NewslettersPlus
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
suggested_attachment_session_id: 6b1e4149-413b-fd58-239e-20dfe51d0dee
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: eed21f26-7259-43ea-d115-08d9ee50861d
x-ms-traffictypediagnostic: BN8PR15MB2658:EE_
x-microsoft-antispam-prvs: <BN8PR15MB26583D7EDE81EE4249EA5009E3319@BN8PR15MB2658.namprd15.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:7691;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: YpwwR494FNBZ3WXcs6RL2rPiFmsElY0n14UnVjvOn2Kipgbl8lhpFPRC6iPQPc3B/jccXhlf0L7MbWAus7O3l3aT5BuYNwlC7aN4ti3/wtsrQKro52+NwZUhS6ZJ2c35NG9J7BqlEfHEwfZNEZwOGElml3NQLj8SgiWKQUJvKcEtdg5t9r2dRYsy98H9xqypFT5vkChLXLfGp+C8LxO0D7+Ii26ONOmIQ6QMFo8+zHjiv8krzwA2O2SkbL7ZUCKMrcuAOYwQM4BrZ93Kxkfx7kzkmXZVDd1CiipAGxo4la9oyIa3TNlNq0BQ9WR0KlwvmQL7/OJ08Ce0xpjdwM56oDkXQDmniwvsvjEmzx0MRpkcg0JPAkGgkfZ+N+P6z84e3249LrMJehv/oWO7eVrWbCPjGHfe8rNECe2ypnzBE2mzhhtqX2pTOEL2l2FoxZuvSBQfU/n0WDPXFGw5o5hDJeiW6oFaMQM9fKWFkTJCiZw6ogtr/CkWkrgtOqg/qVv7S606GYedOeD5+IgRE6uuGaJ4/nNuHQn3sC+rf0QYXKFUkOmnXYjXqnNvZrk4+Rha1VxcILVu+1v9EM6j+CWGZt20FcURLFwZudzI7VwVPeumxFAw/KSef/eFXdXvpDeXk82XNDWMMyLTHGDnXPwOlqiv5bCRAMThQiQLCRV8mzxGJLdGCfJ5BKM5AEFnJDc168gmHSon7GAccaMju1SS4MOIYT895DBfI1RslMrUxEEi2zwTuw0WApKToCiDGasSkt2l5skIG8EOarmHU872J/8ds2epOuijvxS90pFFIco=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR15MB3689.namprd15.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(82960400001)(99936003)(38070700005)(38100700002)(122000001)(26005)(186003)(86362001)(83380400001)(52536014)(8936002)(316002)(64756008)(66946007)(66556008)(66476007)(66446008)(76116006)(5660300002)(91956017)(110136005)(55016003)(44832011)(2906002)(8676002)(40140700001)(966005)(508600001)(9686003)(7696005)(53546011)(71200400001)(6506007)(33656002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: GstpCg3aYcY5AISRGxNZZhuUvUAGCj3osB8cbuKIpfUoxtJBfPKW3qXPCbzpJWQvpWcKPQ2+nPoUpY5T4b/DGDlAXCsr9jGIGfaYP1ZXYx3JoPQylbUFsKpRFFYqhr7AmhYwrYGV4whaMAnP/LJgoxSLfxNY/EPK+RoagMZsgmVDG023eQ8UW656fjS53l5q4fjBTW0+7vGGpL6FWfbROw/pvV00+Xldpg4rsABfnvd7WZ/jBueqXlVJuvCm7qkipJ2MkgIYqog+y3xWSa5K2+A9aAfEKKLgHt74Tp/sxBlh+bagaPr4wS5Xz5LDoeHAYuCdLpHILlZraKp9VFQ9NhdI/OaPAWr4V5CDC9U8sxNHBBdHF7n4CNbFJFLpcjfOGw4NnBkXNjKqBi+5QgEq7cZF3H4CFrHY83ctULsjErTWvDiLO4co4U/R6Pk3WIDrXSIp23hg7WHm6O0OP7erIoaMZNuK3LE74OPEMLRVfIG6XtYwWylgkmC/yymH3jdXUfLaGFQ81XBQXnFHDHYNH4Ed5jIo9wR87By7iFb9zm4429Y7QoaTMq8qX0qllU9B2qDJMfSJXpENLN0rKO56wGpaA6SaSWHTApgWQtmgcCSg6sTI4JGjijQbkqK1a8BJe9pd5B4d3RdgTVrdKYs0VwhugjbblMuhzb7Axa7xcjTbCKhcZ/k/++1IXJInzH9GNOWbJgu7Er+3HwCDPMlpyXrCcKAXjHG2TQ/dP1ag2UFExg4uibYghQY2ihK4IygtsaFYQt8jmQOKTc6Cz6+BxEHUgXwTujKiWwgdaJEC0a4GKPPvuAfplvLm5GYQHnbpLrLST/CuXRn67KjLMzdUEPJKloayK4ifLvJ+6tArQVqcrEyBe+Hmnz5TTAYSkOId6EPmhvljDhwb3UxPqYesFLG0KvAsSNyCSrRx1m7azJhj157Kw40Ijp/09oeu+8ptw+YfjLo3wLzKiPUsoFY0EiOszivroIXDvktAJQGKqpLadOCrVAWWSA0BgtiDK9Qqz+uD8PaUK3LnMFQQ8DQvkitEQ30TX9IUwZsw4SwnRH8tykoVNQTOs8PIEA+R0dTTN39pjDph8SJ/28gEcF6IM+6M/TF3LNGmo/bj509ociz74X5trNpHkjCBs97ChFSlv5a/s+smWlsc+XmPb2DfaSTRgZEtVFCyokxRUz2wZ1LcrVBp/iI4L1KnclbwgxNFx1qnQopL4iYg/yWfgooDNbceDV+PjNKFen0QHhenjC6xC1Qhr73eazfhl0SNgy/WHIxRULySvyuR6J5ekYQ5ArqT2wUf7nknOqDOhSORLPyzmke7iRzHiD8my8n91dTpsGmLkco8V7iN7LmumcDO5CY8gdlNGwhWNNtft/3iou9czv7EdNriYSAxTo5Yc9a/1UYPb+QzenOOgsVRUbwh9KEXWtgd1W1D/CTAN/K/TCQvFEOHhAnpl33IHWA1c0e6bLNTRJX9kbnWVDAN9D2MyJWBatA82GBp5AvEUPMat9Nsx985ecnH0uD6ebioG15ChkzzkRkG+M2yKtnPLIHByj3BsOf1U29mIC0EyfA1QYvw9gEmaBez8Asi7dukI/z6h0kxYDyT3Y0GMi6h+ODxi+gWB+Kk59iD+VzUHzhAqbDQPv317PSu1ujomE3e7SDGOwDYTpTQtTY/JhSEhSXUCg==
Content-Type: multipart/mixed; boundary="_003_DM6PR15MB3689AEBFC78ACAEC872656F3E3319DM6PR15MB3689namp_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DM6PR15MB3689.namprd15.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: eed21f26-7259-43ea-d115-08d9ee50861d
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Feb 2022 17:53:06.3281 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: XIONtCkKNedP56wwR9ry9HCM7xJ+VCbYByNHBVsV1PfMA9VjkrfZjsugPo8JrXZwkN+LMXtpEOzv6F3xBXcsnULOupx88YWlsXFDuMU3+6c=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR15MB2658
Archived-At: <https://mailarchive.ietf.org/arch/msg/spasm/DOMW65OiJrqJJ2x-xZ7peFjBEP8>
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 17:53:20 -0000

This might be what you are looking at:


informative:
  UNBOUND-ANCHOR:
    author:
    target: https://nlnetlabs.nl/documentation/unbound/unbound-anchor/
    title: unbound-anchor - Unbound anchor utility
  ENT:
    author:
      name: Vincent Levigneron
    target: https://indico.dns-oarc.net/event/25/contributions/403/attachments/378/647/AFNIC_OARC_Dallas.pdf
    title: ENT was here !!!



https://github.com/mglt/draft-mglt-dnsop-dnssec-validator-requirements/edit/master/draft-ietf-dnsop-dnssec-validator-requirements.mkd

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