Re: [Rfc-markdown] rfc-editor/to-be-removed
Carsten Bormann <cabo@tzi.org> Thu, 28 October 2021 06:16 UTC
Return-Path: <cabo@tzi.org>
X-Original-To: rfc-markdown@ietfa.amsl.com
Delivered-To: rfc-markdown@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 535543A0A3B for <rfc-markdown@ietfa.amsl.com>; Wed, 27 Oct 2021 23:16:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 c9WJsa5GeTX6 for <rfc-markdown@ietfa.amsl.com>; Wed, 27 Oct 2021 23:16:36 -0700 (PDT)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 26BF73A0A3A for <Rfc-markdown@ietf.org>; Wed, 27 Oct 2021 23:16:33 -0700 (PDT)
Received: from smtpclient.apple (p5089a10c.dip0.t-ipconnect.de [80.137.161.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4HfwLK0ClZz30Kw; Thu, 28 Oct 2021 08:16:25 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <22411.1635383048@localhost>
Date: Thu, 28 Oct 2021 08:16:24 +0200
Cc: Rfc-markdown@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <4FB881DC-5F3C-4C1E-A976-66F1C0CB1E34@tzi.org>
References: <3088.1635371892@localhost> <4BF5ABC4-B319-4B3D-8232-EDF07319D9CB@tzi.org> <22411.1635383048@localhost>
To: Michael Richardson <mcr+ietf@sandelman.ca>
X-Mailer: Apple Mail (2.3654.120.0.1.13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rfc-markdown/oITvMK44uMhrUH-8r3hdn_O7TmQ>
Subject: Re: [Rfc-markdown] rfc-editor/to-be-removed
X-BeenThere: rfc-markdown@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "rfc-markdown is a discussion list for people writing I-Ds and RFCs in Markdown and the authors of the tools used for that." <rfc-markdown.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rfc-markdown/>
List-Post: <mailto:rfc-markdown@ietf.org>
List-Help: <mailto:rfc-markdown-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 28 Oct 2021 06:16:41 -0000
On 28. Oct 2021, at 03:04, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
>
>
> Carsten Bormann <cabo@tzi.org> wrote:
>>> Is there something I should use?
>
>> RFCXMLv3 has an attribute called removeInRFC.
>> Apart from <note, this can be used in <section.
>
>> So you can write
>
>>> {:removeinrfc}
>>> ## Tempus fugit
>>>
>>> Goes away.
>
> How long does it extend?
> Until the next ##? Or?
> Would ### things be included?
I think you are asking two questions here, only the first of which really is about markdown.
(1) How does kramdown-rfc create XML sections out of the markdown headings?
This does indeed work exactly as one would think, so if an h3 heading (###) follows a sequence of zero or more paragraphs that follow an h2 heading (##), an h3 section is created that is nested into the h2 section encompassing it. The h2 section extends to the next h2 (##) or h1 (#) heading or the end of the “middle” or “back” division.
(2) How does the removeInRfc attribute of RFCXMLv3 operate on nested sections?
There is no answer to this in the RFCXMLv3 documentation [1], and it is a bit weird because the default value of removeInRfc is false, so an h3 section without further markup that is nested in an h2 section marked removeInRfc=“true” will seemingly contradict the outer h2 section. The rendering is no help in interpreting this, as it just includes a paragraph at the start of any section marked removeInRfc=“true”. AFAIU, the actual removal will happen manually during RPC processing, so we are speculating about how they will interpret the seemingly contradictory instruction.
But it is hard to remove a section without removing its subsections, and logically the h2 section to be removed does include its h3 sections, so I would expect the RPC to remove the entire h2 section, including its contradicting subsections.
Grüße, Carsten
[1]: https://xml2rfc.tools.ietf.org/xml2rfc-doc.html#section-2.50.3
- [Rfc-markdown] rfc-editor/to-be-removed Michael Richardson
- Re: [Rfc-markdown] rfc-editor/to-be-removed Carsten Bormann
- Re: [Rfc-markdown] rfc-editor/to-be-removed Mark Nottingham
- Re: [Rfc-markdown] rfc-editor/to-be-removed Michael Richardson
- Re: [Rfc-markdown] rfc-editor/to-be-removed Carsten Bormann
- Re: [Rfc-markdown] rfc-editor/to-be-removed Julian Reschke
- Re: [Rfc-markdown] rfc-editor/to-be-removed Carsten Bormann
- Re: [Rfc-markdown] rfc-editor/to-be-removed Michael Richardson