Re: [rfc-i] t with indent

Julian Reschke <julian.reschke@gmx.de> Tue, 29 December 2020 19:39 UTC

Return-Path: <rfc-interest-bounces@rfc-editor.org>
X-Original-To: ietfarch-rfc-interest-archive@ietfa.amsl.com
Delivered-To: ietfarch-rfc-interest-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EB48F3A08D6; Tue, 29 Dec 2020 11:39:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.2
X-Spam-Level:
X-Spam-Status: No, score=-2.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, NICE_REPLY_A=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=gmx.net
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 M2K3dnpNW7rp; Tue, 29 Dec 2020 11:39:35 -0800 (PST)
Received: from rfc-editor.org (rfc-editor.org [4.31.198.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 555113A08D5; Tue, 29 Dec 2020 11:39:35 -0800 (PST)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id 10FAAF406CD; Tue, 29 Dec 2020 11:39:06 -0800 (PST)
X-Original-To: rfc-interest@rfc-editor.org
Delivered-To: rfc-interest@rfc-editor.org
Received: from localhost (localhost [127.0.0.1]) by rfc-editor.org (Postfix) with ESMTP id 66214F406CD for <rfc-interest@rfc-editor.org>; Tue, 29 Dec 2020 11:39:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at rfc-editor.org
Authentication-Results: rfcpa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net
Received: from rfc-editor.org ([127.0.0.1]) by localhost (rfcpa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4N330ToeZGuZ for <rfc-interest@rfc-editor.org>; Tue, 29 Dec 2020 11:39:01 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by rfc-editor.org (Postfix) with ESMTPS id B94DAF406C6 for <rfc-interest@rfc-editor.org>; Tue, 29 Dec 2020 11:39:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1609270766; bh=EUrZxqW3M8pAwbkcxbG5dpTNGc6GDWhIitEsYsQN86c=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=aLHGl6v7lVV/hUSz34svbuqrqezqvgfUYJ4jXo0G+H2y1OLxFLU7zyKamFyqhIVdi jIg5l+hl9O72Kgedt5mZs0n5qy0/JQK+QqKFn9Z6YrtmQU5b2Lv7NzjLEFp7ye6Fkg dY4zHHu8qIxNtSJBRwAclERNhTEFbgzjq6L4FAbo=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.20] ([91.61.51.65]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MQv8n-1khUef2JTL-00O2NN for <rfc-interest@rfc-editor.org>; Tue, 29 Dec 2020 20:39:26 +0100
To: rfc-interest@rfc-editor.org
References: <CABcZeBOvxuD0pnWrkcywcKBMsd4CuCrLB4YkmDStpwh7e-SkSA@mail.gmail.com>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <6551e660-83e3-eb1b-0ac1-bce0d15bcdad@gmx.de>
Date: Tue, 29 Dec 2020 20:39:24 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0
MIME-Version: 1.0
In-Reply-To: <CABcZeBOvxuD0pnWrkcywcKBMsd4CuCrLB4YkmDStpwh7e-SkSA@mail.gmail.com>
X-Provags-ID: V03:K1:4V6whzAAfHv04Y+xtf01KdLGBIjhaMFgTKrkWW5akWpFswsCYog 4sox86pzSnE5ZFbTPDaDGXKQ847o01bKfQmZ2LFZZ+tluCrQm8I/SuuBOZya2kdfedwIR5N lFIYLwOrM9VxNjPc7lK4duUzZE2VeF0qGPuE0CssOD5+BDMFciUIp9ZqwgRYrFtwf/BaXYf 9uO6fHK0ZhzE5B7mMP21A==
X-UI-Out-Filterresults: notjunk:1;V03:K0:HnrN81KQg2U=:fW4rPKT6tDh6PzwH5pyVvD j6//SgoP4bzOYM+ijs+uGHabAFLW1KOQ1IksX0ai+4axwdZOqDBKQ6eLOAmQvf/CSqIhrTHmt Rc1Jm5EziCqUfMPK3guzjTg3UBkYIWFW37bRgwqM94KHutCtCnzRmoNa1c5ahOLeCp8HDbei0 cdGoDNYvS7cbmysKGqhe7XJC2FpwIGjQFnMa2NGZkT06+2zJxIj8Oc+gB969ypd7Q7YRPnafl 3ygUnn+pgZZqRM2v8wzU0SLczwFm7Qd4FtDj3n1oc0cS03xLrdJPhg165vQi9orT6eaq4xQ15 YQotu5BF9qxdlZxpj6xC9yN2v1EitZcZCrhbXAuQAtm4ckSAQDoixK0q/y66EiBqFY1zYknF+ 6MA+bbRmvLePZfLIKQqzc8J1+Fz8kvYIwgi33hTbxMEl/mmVzslz0hYfpD3aBmo7G7RYFGi72 CSDMCq9IMV0lN6CnTuAeu+dbLft65mXgTDmZlzpLtvHyd0JBcPvOJtw6WAb6kiyFBj8ooPI92 JNqKuE0vkleUASU2/4oe0SVBjoerTF5320+0vk25idc5UODAMykA8BqzmnbV/VnC0PudIcLEO gaMOfWGyALo5MaboPTgZqhsJQG2XyGoMdk26eilR9VO6ko4GZYczAqHI0IAcjgMv5nYwXyhJr Lyctb7jo6C6wpfVmJqE7zc4Q2f0g4lVCnYJ6gTbsFkw9kjE9xLsmCYCoRMp3IPz7sf7VaNu9B PTWilUSZSvUILe2W0huAljRlkoIVNVRc6CS+Lmvsxop/vG7m7F3KKvfFMtuWlnM2VI/RD8jVD kk/URGbhGlrMEEbOXFbylv6WMcEP3lO4ErqLib3gXU5Z8stU9TJZjKC0Ppt6C2B411WJ8lorQ VX8HnXTLWABg3Wd8tcm2fsocxepE8mXioIFfO04u0=
Subject: Re: [rfc-i] t with indent
X-BeenThere: rfc-interest@rfc-editor.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the RFC series and RFC Editor functions." <rfc-interest.rfc-editor.org>
List-Unsubscribe: <https://www.rfc-editor.org/mailman/options/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=unsubscribe>
List-Archive: <http://www.rfc-editor.org/pipermail/rfc-interest/>
List-Post: <mailto:rfc-interest@rfc-editor.org>
List-Help: <mailto:rfc-interest-request@rfc-editor.org?subject=help>
List-Subscribe: <https://www.rfc-editor.org/mailman/listinfo/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=subscribe>
Content-Transfer-Encoding: base64
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>

Am 29.12.2020 um 20:08 schrieb Eric Rescorla:
> Hi folks,
>
> In doing Auth48 for RFC8844 I noticed that each <t> block in the final
> XML seems too contain an "indent" attribute, as in:
>
>     <t indent="0" pn="section-2-5">
>
> While I see that the current v3 grammar seems to allow "indent" under
> <t>, this doesn't seem to be in draft-iab-rfc7991bis, so it's not
> quite clear what purpose it's intended for. This seems to raise two
> questions:

FWIW, it seems to be a fairly recent addition
(<https://github.com/mnot/v3grammar/commit/20ccb12dc9d4b308f025c17aa3c8dcf8dbfb0ab2>).

> First, do we really want this kind of layout-specific markup rather
> than semantic markup? Searching for <t> with indent != 0 in the
> published RFCs, I see the following cases:
>
> - RFC 8907, S. 6.2 -- a definition list nested in another definition list
>
> - RFC 8916, S. 5 -- a definition list indented under a hed (arguably
>                      another nested definition list)
>
> - RFC 8919 S 7.3 -- a set of Note: values introduced by a sentence
>                      ending in a colon
>
> - RFC 8934 S 4.2.2 -- an equation
>
> - RFC 8949 S 8 -- an equation
>
> It seems like we might be better served here by introducing some new
> semantic constructs. Both nested definition lists and equations are
> natural structures that would benefit from consistent layout (note:
> it's possible that nested definition lists already exist; it wasn't
> quite clear to me from the grammar). RFC 8919 is kind of an edge:

<dt> can contain <dl>, so yes, a definition inside a definition list can
contain another definition list.

AFAIC, the desire to tune horizonal whitespace likely comes from people
trying to optimize the text output. Something we explicitly should *not*
encourage (IMHO).


> one could probably model it as a definition list or one could just
> live with the Notes not being indented.

The example IMHO clearly should be a <blockquote> (which will get
indentation), as it cites text from the IANA registry:

>   IANA has also added the following notes to this registry:
>
>       Note: For future codepoints, in cases where the document that
>       defines the encoding is different from the document that assigns
>       the codepoint, the encoding reference MUST be to the document that
>       defines the encoding.
>
>       Note: If a link attribute can be advertised both as a sub-TLV of
>       TLVs 22, 23, 25, 141, 222, and 223 and as a sub-sub-TLV of the
>       Application-Specific Link Attributes sub-TLV defined in RFC 8919,
>       then the same numerical code should be assigned to the link
>       attribute whenever possible.

It's frustrating that the RPC did not get this right. But, IMHO, a very
good example why we should be open to fix the XML even after publication.

> Second, even assuming that <t indent=...> is a good thing, it seems
> suboptimal to have it attached to every paragraph in the XML. Is
> there a reason why it can't simply be omitted when it is set to
> the modal value of "0"?
> ...

That's a requirement for the preptool, see
<https://greenbytes.de/tech/webdav/rfc7998.html#attribute-default-value-insertion>:

"Fill in any default values for attributes on elements, except
"keepWithNext" and "keepWithPrevious" of <t>, and "toc" of <section>.
Some default values can be found in the RELAX NG schema, while others
can be found in the prose describing the elements in [RFC7991]."

(FWIW, I disagreed with that requirement)

Best regards, Julian
_______________________________________________
rfc-interest mailing list
rfc-interest@rfc-editor.org
https://www.rfc-editor.org/mailman/listinfo/rfc-interest