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

Paul Kyzivat <pkyzivat@alum.mit.edu> Tue, 21 July 2020 15:48 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 090FD3A0BDD; Tue, 21 Jul 2020 08:48:33 -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 FVRPn-VCzgbC; Tue, 21 Jul 2020 08:48:31 -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 18D723A0BB2; Tue, 21 Jul 2020 08:48:29 -0700 (PDT)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id 1B3B5F40722; Tue, 21 Jul 2020 08:48:15 -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 E79F5F40722 for <rfc-interest@rfc-editor.org>; Tue, 21 Jul 2020 08:48:13 -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 3sQWuqmsYeBC for <rfc-interest@rfc-editor.org>; Tue, 21 Jul 2020 08:48:10 -0700 (PDT)
Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2066.outbound.protection.outlook.com [40.107.93.66]) by rfc-editor.org (Postfix) with ESMTPS id CE153F40721 for <rfc-interest@rfc-editor.org>; Tue, 21 Jul 2020 08:48:09 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KdDmUnCdIjWZr9iBONAkW9V5RzSi4m6TeFT43YQwl4Gd4yeW0D0ABCN7YRL/ouKIg3o+5xeBJubDp0PerAKGSCaCywtx3dVlIYHaTEKWOUHIe/oF86rugQxGoOFvIPrw1/jVvLrESMAW3GvcCPojoQ6YCwPGkuLsdckAFNuGgDH+J2soLlsvN77tw+5TyW7CasxBIloSUmtwmKQYtI7JKiJqPqx1CiPCciDNqw871NIGoobevG74qi4i8T8rJ8JJ2aChDgrxlX4eBYe6t0zoIfoYxuUQGwTiwGtG3rhemGDP67bs0DRfWq8RLvdhzzk0eTy8hT8si3MPS0VPp80elA==
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=ib/5VQ5T/nTiOP8tMOo8cWhQqdfzJMWPbxi3IrBsRBI=; b=TgQa39sjCmN4/Tc0za7QFi+owuFMe4vzLjxU5qqvm3wEgKV4fV4cfqxnV3lxdvufjPcAN8lrQffAa/BRm3LTR9M2G35Q3ZADW/SbwURGz4M6JGONK3OCt4yFudPh1LhYD67Lw7A5Pg1DSC9W7gFHNsXUfluzM/ym+qIJsILcY3Xd8lw7hT7L5M6XgqbuVnkzimThLq7RSTrhEXP4+YiKzY0P10XWpwPT//i7V2s/Mr4ZcHGVmRs7yk5iJk8Jw9mRMx/yVkWzZyUROLw8zOrH9VppPZAKHykh86BF/GONqPZb0xbklf9KPV35y/RgbhcE/Hu0Bl9B2eiKH2EKeE1E2Q==
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=ib/5VQ5T/nTiOP8tMOo8cWhQqdfzJMWPbxi3IrBsRBI=; b=hwfnc8Q9N2Oq206kzINGoUTVHmoOoA4DQBbdGtfKH17jXaE6JGvZbO+n7Ygc5rF1+8V/HrZb4Akv0cpqkGN+9qQlryTsBlg6zX9WaTuuA1c+TjxoMW4h0w5NEzSLmeu2o/Qs6Qc8ZPr0Bcz0OrKFd5JjfUoD+xLDSqakSRZ1+t0=
Received: from MN2PR19CA0020.namprd19.prod.outlook.com (2603:10b6:208:178::33) by BY5PR12MB3731.namprd12.prod.outlook.com (2603:10b6:a03:1a7::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.20; Tue, 21 Jul 2020 15:48:17 +0000
Received: from BL2NAM02FT062.eop-nam02.prod.protection.outlook.com (2603:10b6:208:178:cafe::f2) by MN2PR19CA0020.outlook.office365.com (2603:10b6:208:178::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18 via Frontend Transport; Tue, 21 Jul 2020 15:48:17 +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 BL2NAM02FT062.mail.protection.outlook.com (10.152.77.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.18 via Frontend Transport; Tue, 21 Jul 2020 15:48:16 +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 06LFmDj5016872 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 21 Jul 2020 11:48:14 -0400
To: Carsten Bormann <cabo@tzi.org>
References: <e13ad2a9-e460-58cb-3ffe-88acec803a8a@alum.mit.edu> <748F0BE8-5DDA-4CC1-9306-0C67F906C955@tzi.org>
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
Message-ID: <a4c96c4f-72da-e8b6-5a31-b1617bf518fb@alum.mit.edu>
Date: Tue, 21 Jul 2020 11:48:13 -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: <748F0BE8-5DDA-4CC1-9306-0C67F906C955@tzi.org>
Content-Language: en-US
X-EOPAttributedMessage: 0
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:(46966005)(4326008)(86362001)(31696002)(31686004)(70206006)(70586007)(336012)(75432002)(956004)(2616005)(8676002)(8936002)(54906003)(498600001)(53546011)(186003)(26005)(83380400001)(966005)(47076004)(7596003)(356005)(36906005)(5660300002)(6916009)(2906002)(82310400002)(43740500002); DIR:OUT; SFP:1101;
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: a4a32800-cd83-4e86-7eb6-08d82d8d7c03
X-MS-TrafficTypeDiagnostic: BY5PR12MB3731:
X-Microsoft-Antispam-PRVS: <BY5PR12MB3731ACA110A52298574133B3F9780@BY5PR12MB3731.namprd12.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:5516;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 2Ix8qla2Ov9T24nlu4fT/eu/tGTlTVUl0A3CyMvqwmszGQBd6B/UveXkJfiNOVye+ZoIPeJuRm4WRg2g0PF4E7ouLko3aNa/QxRL/5jb1J1aiT3KMUdhjymW/wtpp57jqerD6bPBU/an9SDiyDm6VCkeEFMAwmnO4WnljMzM8+6hRhK/m8F2oshj7OgOQBVlxE8TuLuIOHZ8VmS4YNm9cmsutmd+/Fznx+4aY8nJTNoxjKWa4va53x+ufZYk31PCKVQlWqd/nMspz6FjTvuGwr4upuEGs3rLdlrD4pkiBXFAKkNdBw9qAKV+jUOFRsq/ep+D0iYqEuB+XxAYFXtLqM74HXSD6hnvDZHgmNWO8I7MmjZdJILijljO+gpV3HLgIb/jEDfYsxq7Yz/n/vw773y+I20vdzFvMRsqxkZUqX9vzuRhQ2PWvOchfcI3tF5zDshQBJxefyqS6kCMLYKzPI4lZ5La67qvbX1ATVIBego0ueVb2kQyWhDWrluSF4Qe
X-OriginatorOrg: alum.mit.edu
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2020 15:48:16.6258 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: a4a32800-cd83-4e86-7eb6-08d82d8d7c03
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: BL2NAM02FT062.eop-nam02.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB3731
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: XML2RFC Interest Group <xml2rfc@ietf.org>, RFC Interest <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/21/20 11:10 AM, Carsten Bormann wrote:
> A similar problem is giving examples that are intentionally bad in order to demonstrate a kind of error.

Good point.

> I typically tag them with a type that is derived from the one I would give for real code, e.g., “CDDLx” for a bad CDDL example.  I think it would be good to agree on some way to indicate this.

I agree that we should have some agreed upon way to do this.

Perhaps a "+xyz" suffix, with some agreed up xyz values.

> A related problem is that often several code blocks combine to one valid instance of CDDL, for example see Figure 1, 2, 3 in RFC 8428.  There is no way to say that Figure 1 and 2 combine into a valid instance, and so do Figure 1 and 3, but not any other combination.

I'm also interested in this. I believe an obvious solution to this is 
via the "name" attribute. All the ones with the same name should be 
gathered together.

A problem I have with both name and type is that they are invisible in 
the human readable formats. They provide semantic information that may 
be of interest to a reader. Perhaps they could be available in html via 
a popup?

> And, by the way, those type tags are conventionally lower-cased, but this is not made very explicit; you have to infer that from the list in Section 2.48.4 of RFC 7991 or the RFC editor’s updated copy of that list:

> https://www.rfc-editor.org/materials/sourcecode-types.txt
> 
> (Ha, this doesn’t even have “cddl” in it; I’m not sure how this is updated and whether there shouldn’t really be an IANA registry for these.)

For these to be useful for any sort of automated processing I think they 
should be standardized. I agree with an IANA registry.

If we wanted to allow unstandardized usage there could be X- prefixes, 
but we have banned those many other places.

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