Re: [xml2rfc] Inline use of <sourcecode>

Roger Price <roger@rogerprice.org> Mon, 18 January 2021 15:12 UTC

Return-Path: <roger@rogerprice.org>
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 B3F5E3A0317 for <xml2rfc@ietfa.amsl.com>; Mon, 18 Jan 2021 07:12:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.919
X-Spam-Level:
X-Spam-Status: No, score=-1.919 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 xirimM9xf_us for <xml2rfc@ietfa.amsl.com>; Mon, 18 Jan 2021 07:12:28 -0800 (PST)
Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0A0813A0332 for <xml2rfc@ietf.org>; Mon, 18 Jan 2021 07:12:27 -0800 (PST)
X-Originating-IP: 78.243.124.66
Received: from maria (unknown [78.243.124.66]) (Authenticated sender: mailbox@rogerprice.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 86C89E0008 for <xml2rfc@ietf.org>; Mon, 18 Jan 2021 15:12:24 +0000 (UTC)
Date: Mon, 18 Jan 2021 16:12:24 +0100
From: Roger Price <roger@rogerprice.org>
X-X-Sender: rprice@maria.rogerprice.org
To: xml2rfc Mailing List <xml2rfc@ietf.org>
In-Reply-To: <EE36349E-6F54-4F5F-9B97-9775C595188C@tzi.org>
Message-ID: <alpine.DEB.2.20.2101181546100.26613@maria.rogerprice.org>
References: <alpine.DEB.2.20.2101181313160.26613@maria.rogerprice.org> <ee8a89be-24d7-d060-c237-47bb572743fc@gmx.de> <EE36349E-6F54-4F5F-9B97-9775C595188C@tzi.org>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
X-Message-Flag: Supplemental report to reaper.nsa.gov. rc=0
MIME-Version: 1.0
Content-Type: text/plain; CHARSET="US-ASCII"; FORMAT="flowed"
Content-ID: <alpine.DEB.2.20.2101181553051.26613@maria.rogerprice.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/HopQ8mgekplTp4wMh2JLYz51CGs>
Subject: Re: [xml2rfc] Inline use of <sourcecode>
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Mon, 18 Jan 2021 15:12:30 -0000

On Mon, 18 Jan 2021, Carsten Bormann wrote:

> On 2021-01-18, at 14:20, Julian Reschke <julian.reschke@gmx.de> wrote:
>> 
>> If xml2rfc "accepts" it as a child element of <t>, that's a bug.
> The v2v3 converter does, and it splits the <t> and places the sourcecode outside the <t> as a block element.
> The examples given are missing the </t> end tags that are needed to make the examples work.

My apologies, I mark up in SGML with lots of tag omission and then use an SGML 
parser to produce fully tagged XML.  I wrongly showed the example in SGML, the 
corresponding XML is

<t>(a) Protocol token </t>
<sourcecode>LB</sourcecode>
<t>indicates a low battery.
</t>
<t>(b) Protocol token <tt>LB</tt> indicates a low battery.
</t>

which shows that <sourcecode> is indeed a child of a previous <section>. 
My mistake, sorry.

I shall follow Anders: <tt> is the best choice.

Roger