Re: [xml2rfc] Differentiating prepped from unprepared documents

"John R. Levine" <johnl@iecc.com> Wed, 22 June 2022 14:35 UTC

Return-Path: <johnl@iecc.com>
X-Original-To: xml2rfc@ietfa.amsl.com
Delivered-To: xml2rfc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D8B6DC1595E6 for <xml2rfc@ietfa.amsl.com>; Wed, 22 Jun 2022 07:35:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.109
X-Spam-Level:
X-Spam-Status: No, score=-2.109 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_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=iecc.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 v_F7USM-qCTk for <xml2rfc@ietfa.amsl.com>; Wed, 22 Jun 2022 07:35:47 -0700 (PDT)
Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 341C5C15948A for <xml2rfc@ietf.org>; Wed, 22 Jun 2022 07:35:46 -0700 (PDT)
Received: (qmail 85978 invoked from network); 22 Jun 2022 14:35:44 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type:content-transfer-encoding; s=14fd8.62b328c0.k2206; bh=RZYYlDl0DyTrEbfaujuM76wmvr1nF57tr2G5i9MzG4c=; b=H3Tt5LOXJekUy0b0tI96iQPRhj8t/vnxJeXM8VVmX2dGQcjALe2aVcPWukot8ONK6zxdzcWWJPN8lUG2yJMO3lawto1mWkYuHrozVju5RGN+4c9Q2/v/XKs0DwceC2P1GulKowD6w5YsE3i0hBCA3gi5/6Fjq60cRY+LV/sfh3UZkLW5/fMLfUovet83IkwkgGKR/LqB40Ry5lsJcbBEfaGNDdq9lpiTaM3/TsfjQfrfhSxvMn3+VhkHEFmigcD9ZU4HzOe/MfZE/U3+zCkyUr633bQuFcuGm4DxeEAi1k8devYq3r59Hnp4ex/Q+ZubncG0J1x+07HOBKhRri+tTQ==
Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.3 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 22 Jun 2022 14:35:44 -0000
Received: by ary.qy (Postfix, from userid 501) id DF6DC4418841; Wed, 22 Jun 2022 10:35:43 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1]) by ary.qy (Postfix) with ESMTP id 47AFD4418823; Wed, 22 Jun 2022 10:35:43 -0400 (EDT)
Date: Wed, 22 Jun 2022 10:35:43 -0400
Message-ID: <2eae38d3-7da0-97cd-8b84-fabc4b97decc@iecc.com>
From: "John R. Levine" <johnl@iecc.com>
To: Jay Daley <exec-director@ietf.org>, xml2rfc@ietf.org
Cc: Julian Reschke <julian.reschke@gmx.de>, Carsten Bormann <cabo@tzi.org>, Robert Sparks <rjsparks@nostrum.com>
X-X-Sender: johnl@ary.qy
In-Reply-To: <222A7719-518F-45FB-BE05-A3CA1172DD9B@ietf.org>
References: <222A7719-518F-45FB-BE05-A3CA1172DD9B@ietf.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/rC7IEoPJAUZZZags20nKQu1gj1I>
Subject: Re: [xml2rfc] Differentiating prepped from unprepared documents
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: XML2RFC discussion list <xml2rfc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc/>
List-Post: <mailto:xml2rfc@ietf.org>
List-Help: <mailto:xml2rfc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 22 Jun 2022 14:35:51 -0000

On Wed, 22 Jun 2022, Jay Daley wrote:
> Julian has suggested that we use a namespace extension for the prepped grammar.  That would mean that the prep tool would add a namespace attribute, such as xmlns:prep="http://www.rfc-editor.org/prep-namespace", to the <rfc> element and then all markup inserted by the tool would be prefixed with "prep" ("prep" is just an example prefix) such as the <prep:toc …> element and "prep:pn" attributes.  There would still only be one grammar file (i.e. rfcXXXX.rnc) but that would be amended to specify the namespace of each element/attribute.
> Personally, I think this is the best way forward given where we are now, though I would have preferred us to have started differently.  Ideally we would have more clearly differentiated between I-Ds and RFCs in the authoring format to match the distinction that is so apparent in how these documents are used.  That would mean having two different grammar files, one for I-Ds with a root element <i-d> and one for RFCs with a root element of <rfc>, and with the prep tool converting between the two.  However, moving to that now seems excessive.

I agree.  In the next week or two I'll be looking at RFC 7998 and the 
xml2rfc docs to put together a proposal

> The only practical downside of the namespace solution is that it constricts I-D grammar to always being a subset of RFC grammar (as the latter is implemented by an extension) and so it makes it messy to implement such things as including annotations in the grammar that are only for use in I-Ds and not RFCs.

I suppose we could add an I-D namespace if that turned out to be 
important.

Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly