Re: [rfc-i] [xml2rfc] use of sourcecode type

Paul Kyzivat <pkyzivat@alum.mit.edu> Mon, 27 July 2020 16:19 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 1CC543A1B04; Mon, 27 Jul 2020 09:19:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, 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 (message has been altered)" header.d=alum.mit.edu
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 6qnRqHV2gygO; Mon, 27 Jul 2020 09:19:17 -0700 (PDT)
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 C2C893A1EAC; Mon, 27 Jul 2020 09:18:21 -0700 (PDT)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id 0C7B6F4075E; Mon, 27 Jul 2020 09:17:58 -0700 (PDT)
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 A23B0F4075E for <rfc-interest@rfc-editor.org>; Mon, 27 Jul 2020 09:17:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at rfc-editor.org
Authentication-Results: rfcpa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=alum.mit.edu
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 Fv1gxCcU0FIs for <rfc-interest@rfc-editor.org>; Mon, 27 Jul 2020 09:17:55 -0700 (PDT)
Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2068.outbound.protection.outlook.com [40.107.244.68]) by rfc-editor.org (Postfix) with ESMTPS id 3AA69F40756 for <rfc-interest@rfc-editor.org>; Mon, 27 Jul 2020 09:17:54 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JHOldqO7OwJAjMoKs18zftjss69wurBqctujtQh8ZS7I2TdEV8MJj66DaGsjps1k7DdFKtPN9wlm7w40X/EMFsUtg37VHEEerGP/fBFy7Qj/bAhmoxyrjCgZXyTj1b5siXcO0PBLOP0kp3bbIzi+FBYs/KVlUmsy8MG3mjQacmhW6YnLimatYPqmc/A/0wg3H7EngP1QsIjPjI0yY5a+3/L6/4FDYGcFBwA9PMMUHo8CEUaGnCPgnCQrXHNT4LAAJHJztGlYnlecrPbJPoAfUKbSFzIxmjkXPiF03EXx+0xuTipgYQajM4f5iWdmtrhr6hHouYCY6dcDFUf0ayvQbw==
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-SenderADCheck; bh=TXlNgcAMYpK4Yy5Rr86Qn4zLpu0B2rhL9IDd2tRMMdw=; b=VlaVw6iBP/DZV6lGD7uTBKd61gvi9s2WTju4Azn0rzHNxkHVIJMMaxXOxPYcUO6Oey5IFW+mpLYyuNwzBd1WADDKYkP4bjvjuN/IJOCzi4j4FgteWJPtv3vmPonMcWfydWEZG/M0/6aIN6O++Z41vgV5O0Ii2rOMPovLBo2/k+IJ+ZvOyteh4hjeVIGfDGjDIt9Pr1idaQffZRQaNKPkB5cb1zoLurNU0dBAzuA0vvAmgm1JF16vVgBAZa75/vyaAqDzw2bYxEIIB/2h7Dg1blV8emAHr4MjHbmmpVq1rvzKdNsgO1oY3LR2oIXXZcgtlSCwq0DehrWBRmrxA/baMw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 18.7.68.33) smtp.rcpttodomain=tzi.org smtp.mailfrom=alum.mit.edu; dmarc=bestguesspass action=none header.from=alum.mit.edu; dkim=none (message not signed); arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alum.mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TXlNgcAMYpK4Yy5Rr86Qn4zLpu0B2rhL9IDd2tRMMdw=; b=GUlRGC3aXlGuCm+NvFFcCIK8odDrq2tNZhCddjuEeEuxpPD1OT7jX68IExq2iiYPEdwfrA6oe+Ae5d++/IBrGukdqiLPkvN/dfj7OwBHpIZVJDT051qeXM2r6hsx5VMKVpapshQZHtF+qmZxiZHn9gScImuQidsZImNk9BucCCs=
Received: from MN2PR13CA0013.namprd13.prod.outlook.com (2603:10b6:208:160::26) by MWHPR12MB1901.namprd12.prod.outlook.com (2603:10b6:300:113::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.26; Mon, 27 Jul 2020 16:18:12 +0000
Received: from BL2NAM02FT051.eop-nam02.prod.protection.outlook.com (2603:10b6:208:160:cafe::b7) by MN2PR13CA0013.outlook.office365.com (2603:10b6:208:160::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.10 via Frontend Transport; Mon, 27 Jul 2020 16:18:12 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 18.7.68.33) smtp.mailfrom=alum.mit.edu; tzi.org; dkim=none (message not signed) header.d=none;tzi.org; dmarc=bestguesspass action=none header.from=alum.mit.edu;
Received-SPF: Pass (protection.outlook.com: domain of alum.mit.edu designates 18.7.68.33 as permitted sender) receiver=protection.outlook.com; client-ip=18.7.68.33; helo=outgoing-alum.mit.edu;
Received: from outgoing-alum.mit.edu (18.7.68.33) by BL2NAM02FT051.mail.protection.outlook.com (10.152.76.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.10 via Frontend Transport; Mon, 27 Jul 2020 16:18:12 +0000
Received: from Kokiri.localdomain (c-24-62-227-142.hsd1.ma.comcast.net [24.62.227.142]) (authenticated bits=0) (User authenticated as pkyzivat@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.14.7/8.12.4) with ESMTP id 06RGI8jx012442 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 27 Jul 2020 12:18:10 -0400
To: Carsten Bormann <cabo@tzi.org>
References: <e13ad2a9-e460-58cb-3ffe-88acec803a8a@alum.mit.edu> <748F0BE8-5DDA-4CC1-9306-0C67F906C955@tzi.org> <1be09378-acbc-eef9-b4fd-f9b10b35988d@gmx.de> <ee45b592-7e86-799d-387e-c66609632f74@alum.mit.edu> <080FE9EB-7622-4783-BEB4-8315805257BD@tzi.org>
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
Message-ID: <bbfb9fb5-d67b-a7d1-6667-43e98135abff@alum.mit.edu>
Date: Mon, 27 Jul 2020 12:18:08 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <080FE9EB-7622-4783-BEB4-8315805257BD@tzi.org>
Content-Language: en-US
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 3395c9d9-b74e-4c90-ec69-08d83248a8ac
X-MS-TrafficTypeDiagnostic: MWHPR12MB1901:
X-Microsoft-Antispam-PRVS: <MWHPR12MB1901BAAB577E407D652A085AF9720@MWHPR12MB1901.namprd12.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:8882;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: zeDAQ3mvM9rF7I50T3YOYgPpn6xLnMlrLVSFcwb1KkngaeqOHO1dE0eSFP3b0wG6PI9FGTL04CElwBCLUozhhdqk3Mei1YObZE36zz9stpmOtUNPi+H2k+xWM8dEa3FvBr8aFNHDmhX0jAmwtpPdURfcXiYrTdP3rVt52bL4WnHa9Z+k0b27S042JoyvZeD0G/xs/J/SjstoAM2rmsYqgDpM2+U3h317VGYwMoLN4PhSltJ9cxHjazE52siamV9qgQz45xS/Gacj+bgHwPtu4jBTrNaafqaXElbsobn7nHVMGlFsY6gA67OdII9iDzN8IjZVWb8hUOUQSg75SSP0eJ14og/+5vittMUtWZAYMtVzE8it0MJbPn9C582scQ/BuuBQHvdj3JiB1S5z6tojlfDGeBLK8UivNY5jWpx5tMY=
X-Forefront-Antispam-Report: CIP:18.7.68.33; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:outgoing-alum.mit.edu; PTR:outgoing-alum.mit.edu; CAT:NONE; SFTY:; SFS:(136003)(396003)(376002)(39860400002)(346002)(46966005)(75432002)(36906005)(356005)(70206006)(2906002)(8936002)(70586007)(2616005)(83380400001)(956004)(82310400002)(4326008)(8676002)(31686004)(7596003)(26005)(786003)(316002)(86362001)(47076004)(53546011)(82740400003)(31696002)(5660300002)(336012)(478600001)(186003)(6916009)(43740500002); DIR:OUT; SFP:1101;
X-OriginatorOrg: alum.mit.edu
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2020 16:18:12.0954 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 3395c9d9-b74e-4c90-ec69-08d83248a8ac
X-MS-Exchange-CrossTenant-Id: 3326b102-c043-408b-a990-b89e477d582f
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3326b102-c043-408b-a990-b89e477d582f; Ip=[18.7.68.33]; Helo=[outgoing-alum.mit.edu]
X-MS-Exchange-CrossTenant-AuthSource: BL2NAM02FT051.eop-nam02.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1901
Subject: Re: [rfc-i] [xml2rfc] use of sourcecode type
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>
Cc: rfc-interest@rfc-editor.org
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>

On 7/27/20 11:43 AM, Carsten Bormann wrote:
>> […] I have never seen abnf in an ietf document that was complete on its own. Every one references rules defined somewhere else - usually in some other ietf document. These references all all informal, either stated in text before or after the abnf, or within the abnf as a comment or as a prose-val (e.g., <foo defined in RFC666>).
> 
> Well, I have started to recommend doing complete ABNF instead of ill-defined references.  E.g., see it in draft-ietf-core-dev-urn-07.txt:
> 
>     The above Augmented Backus-Naur Form (ABNF) copies the DIGIT and
>     ALPHA rules originally defined in [RFC5234], exactly as defined
>     there.

This can be quite impractical in some common usage.

At least in the sip world it is pretty common to have things like this:

(base-document):

message = foo / bar / baz / message-extention
message-extension = generic-message-format

(extension-document):

; message-header and message defined in base-document
new-message = message-header other stuff
message =/ new-message

where message-header, foo, bar, and baz may take hundreds of lines of 
abnf to define. Even in less extreme cases it can be difficult to trace 
all the dependencies on a rule whose definition you want to copy. And it 
may well involve tracing further dependencies to other documents.

I have in the past proposed and discussed (on the abnf-discuss list) 
some extensions to the abnf syntax to specify references to rules 
defined externally. They didn't get much interest at the time. But in 
any case they weren't easily and reliably automatable as long as the 
abnf had to be scraped out of a txt document. That might be more 
practical now.

	Thanks,
	Paul
_______________________________________________
rfc-interest mailing list
rfc-interest@rfc-editor.org
https://www.rfc-editor.org/mailman/listinfo/rfc-interest