[xml2rfc] <sourcecode> inside an <aside>

Roger Price <roger@rogerprice.org> Fri, 29 January 2021 17:28 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 952883A11AC for <xml2rfc@ietfa.amsl.com>; Fri, 29 Jan 2021 09:28:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.52
X-Spam-Level:
X-Spam-Status: No, score=-0.52 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-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 e9CWXD8NBdCg for <xml2rfc@ietfa.amsl.com>; Fri, 29 Jan 2021 09:28:25 -0800 (PST)
Received: from relay12.mail.gandi.net (relay12.mail.gandi.net [217.70.178.232]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 773213A11A9 for <xml2rfc@ietf.org>; Fri, 29 Jan 2021 09:28:24 -0800 (PST)
Received: from maria (unknown [78.243.124.66]) (Authenticated sender: mailbox@rogerprice.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 1F5CB200004 for <xml2rfc@ietf.org>; Fri, 29 Jan 2021 17:28:20 +0000 (UTC)
Date: Fri, 29 Jan 2021 18:28:20 +0100
From: Roger Price <roger@rogerprice.org>
X-X-Sender: rprice@maria.rogerprice.org
To: xml2rfc Mailing List <xml2rfc@ietf.org>
Message-ID: <alpine.DEB.2.20.2101291807360.6375@maria.rogerprice.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; format="flowed"; charset="US-ASCII"
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/Qe17kZJ6hpT62QKL4PxTcyAHLaI>
Subject: [xml2rfc] <sourcecode> inside an <aside>
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: Fri, 29 Jan 2021 17:28:28 -0000

I would like to place a short piece of code in an aside, but this is not 
allowed by the content model for <aside>:

  element aside {,,,, (artset|artwork|blockquote|dl|figure|iref|ol|t|table|ul)* }

It is forbidden to write

  <aside><t>Bla bla ....</t>
  <sourcecode>a=a+1</sourcecode></aside>

I find I have to write

  <aside><t>Bla bla ....</t>
  <figure><sourcecode>a=a+1</sourcecode></figure></aside>

This puts the a=a+1 into the aside, but gives me an unwanted "Figure n".

1. Is there a neater way of doing this?
2. Why not allow <sourcecode> in the content model for <aside>?

Roger