Re: [Tools-discuss] Specifying stream in kramdown-rfc?

Spencer Dawkins at IETF <spencerdawkins.ietf@gmail.com> Sun, 08 May 2022 20:24 UTC

Return-Path: <spencerdawkins.ietf@gmail.com>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B788FC14F73F for <tools-discuss@ietfa.amsl.com>; Sun, 8 May 2022 13:24:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.098
X-Spam-Level:
X-Spam-Status: No, score=-7.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OJlz1Y7-jqin for <tools-discuss@ietfa.amsl.com>; Sun, 8 May 2022 13:24:40 -0700 (PDT)
Received: from mail-vk1-xa29.google.com (mail-vk1-xa29.google.com [IPv6:2607:f8b0:4864:20::a29]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0A73AC14F748 for <tools-discuss@ietf.org>; Sun, 8 May 2022 13:24:34 -0700 (PDT)
Received: by mail-vk1-xa29.google.com with SMTP id q136so6013077vke.10 for <tools-discuss@ietf.org>; Sun, 08 May 2022 13:24:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ayEmavL2244e1VrjeSjbHCePVbpJD4845Uu1Zqd/iNU=; b=lMtG+Zn9NuRpARxR0RKP0oNUi4uf5TivIZ+J6f3Fb3XNiDgzAskjgEvuFNJsTMRpDp iYtq8kSyuC88oyMGxmjfwklddnKTH/E+RFy9RYBAjkC39hQFcm60y/8V3KZBIxhQg1x2 R319SVtYi3DMyfafpqE8ZMPauNiBYNbFM0fLWwYCty8V8Lxc4GH+mj7fFOwp4kHqr8Lo RUYWPWcC2pvRUuWhn5HjC7ymVv6U1r/0bmu8kVwMdjo6Fq5Ky7C2CyYAipGDi/SJ7IaW +L/pAVpG47FROpTDqkhDinbWIJ2iiEogCg1QOgck+92dNzRRpcUIeIORl+J6as7N6Xiv 22aw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ayEmavL2244e1VrjeSjbHCePVbpJD4845Uu1Zqd/iNU=; b=fLP2pElt+AqMQm4OXBtlFlp1tjJVbF3wa4T3rIq1npxsX35CPlr+zqJfOzQLfMEZbW WXMYOUYeW/Oqb4rmqcrLvGgZ6NAzt7pEKNnzUkycyregpD76nnFcb2dI79plxFBg1E9l 15FAKQqrofkcmbJxqx2P4Lgu/AnbcnWdhwwq9KuQ39kSQ5OG3dDgSSVwiUYl/kJSRMH9 fYGQiqc0O3m3TRkMsl5e1A09SFYN3V3BUHa4bjqeECZgZllRsnQPkNKkFofk670xh49c N+bodpbcOOeD4XJdEoKI/auEzZOj/Z1YDpF2XBU57icJafABQexGs4nQMnMg7ObFqgYm An1g==
X-Gm-Message-State: AOAM5302NR/EsBOYt+zSc9ZITOW+4ENaYmgSDo3Dh0aKBcvdc6VOPYWh 0UV2/DJ/Iq/kvpUGAH3/uPO4MUAxgFQo5F66xKQaHlpU
X-Google-Smtp-Source: ABdhPJwhE3C16EsmsZssgEr/IyXvHnk4F4olh0aP9NhTCzSJggt6OCpSEdrN0QuvdoB7pMx+27evjWIo+c5huRWPCrU=
X-Received: by 2002:a05:6122:247:b0:34e:a7a2:fef2 with SMTP id t7-20020a056122024700b0034ea7a2fef2mr6857581vko.1.1652041473738; Sun, 08 May 2022 13:24:33 -0700 (PDT)
MIME-Version: 1.0
References: <CAKKJt-eX6hg59g5F7+WnzvsLBaem-L3=vz37yx=nAo8UzxmMuQ@mail.gmail.com> <65694804-92DF-408B-BE8E-B74F37943B77@tzi.org>
In-Reply-To: <65694804-92DF-408B-BE8E-B74F37943B77@tzi.org>
From: Spencer Dawkins at IETF <spencerdawkins.ietf@gmail.com>
Date: Sun, 08 May 2022 15:24:07 -0500
Message-ID: <CAKKJt-eSgs7D4hHvqW0__YLhRtYsRc4BHdaKdgG18QL5Has1ag@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Tools Team Discussion <tools-discuss@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000324a1705de85e1fa"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/cfEzdcIc2fjOxmJveAHRZT-MuHs>
Subject: Re: [Tools-discuss] Specifying stream in kramdown-rfc?
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 08 May 2022 20:24:43 -0000

Carsten,

On Thu, May 5, 2022 at 5:56 PM Carsten Bormann <cabo@tzi.org> wrote:

> On 2022-05-06, at 00:29, Spencer Dawkins at IETF <
> spencerdawkins.ietf@gmail.com> wrote:
> >
> > Dear All,
> >
> > I'm running make on a kramdown-rfc file that is saying
> >
> > draft-ietf-mops-streaming-opcons.xml(11): Warning: Expected a valid
> submissionType (stream) setting, one of IETF, IAB, IRTF, independent, but
> found None.  Will use 'IETF'
> >
> > My first guess was to say "stream: IETF" near the other pi fields, but I
> don't think that's working.
> >
> > What am I missing?
>
> submissiontype: IETF
>
> (And it is not a pi, just a top-level YAML entry.)
>
> In RFCXMLv3, the stream is called “submissionType” [2], the Kramdown-rfc
> deStudLiFier allows you to write submissiontype (but maybe I should add
> “stream” as an alias).  You still have to write IETF in upper case, because
> that is the actual value of the attribute [1]:
>

You're perfect!


> >> 2.49.12. "submissionType" Attribute
> >>
> >> Possible values:
> >> ( "IETF" | "IAB" | "IRTF" | "independent" )
> >> Default value:
> >> "IETF"
> >> The document stream, as described in [RFC7841]. (The RFC Series Editor
> may change the list of allowed values in the future.)
>
> I’m thinking about generating the default automatically, as xml2rfc is
> nonsensically warning about the default value being used (that’s why it’s
> the  default?  It’s not a “fallback” value…).
>

I'll never be on the tools team, but that makes perfect sense to me.
Assuming that the distribution of IDs among the streams is something like
the distribution of newly published RFCs across the streams, "IETF" is the
obvious (and non-amazing) default.

Best,

Spencer


> (I’m also planning to put in a standard set of “silence” PIs…)
>

😉


> Grüße, Carsten
>
> [1]: https://xml2rfc.tools.ietf.org/xml2rfc-doc.html#section-2.49.12
> [2]: https://datatracker.ietf.org/doc/html/rfc7991#appendix-A.2
>
>