Re: [xml2rfc] No <t> in a <dd> !

Carsten Bormann <cabo@tzi.org> Sun, 03 January 2021 16:50 UTC

Return-Path: <cabo@tzi.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 93C763A1018 for <xml2rfc@ietfa.amsl.com>; Sun, 3 Jan 2021 08:50:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.019
X-Spam-Level:
X-Spam-Status: No, score=-0.019 tagged_above=-999 required=5 tests=[RCVD_IN_MSPIKE_H4=-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 K-wFLXy6bTbJ for <xml2rfc@ietfa.amsl.com>; Sun, 3 Jan 2021 08:50:48 -0800 (PST)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 97B1F3A1016 for <xml2rfc@ietf.org>; Sun, 3 Jan 2021 08:50:48 -0800 (PST)
Received: from [192.168.217.118] (p548dc939.dip0.t-ipconnect.de [84.141.201.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4D84Wj6Y6xzybM; Sun, 3 Jan 2021 17:50:41 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <alpine.DEB.2.20.2101031612550.26613@maria.rogerprice.org>
Date: Sun, 03 Jan 2021 17:50:41 +0100
Cc: xml2rfc Mailing List <xml2rfc@ietf.org>
X-Mao-Original-Outgoing-Id: 631385441.3687249-3ebd723f00fde42ef137c39dd23b6609
Content-Transfer-Encoding: quoted-printable
Message-Id: <10B1FED1-04DE-45B4-A6ED-EB5156523D82@tzi.org>
References: <alpine.DEB.2.20.2101031350280.26613@maria.rogerprice.org> <51826EA8-68E8-4705-93FE-8FB624C3A0E1@tzi.org> <alpine.DEB.2.20.2101031612550.26613@maria.rogerprice.org>
To: Roger Price <roger@rogerprice.org>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/2eSOBXJV4IaCjRXAWDUa_qh45o4>
Subject: Re: [xml2rfc] No <t> in a <dd> !
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: Sun, 03 Jan 2021 16:50:53 -0000


> On 2021-01-03, at 16:54, Roger Price <roger@rogerprice.org> wrote:
> 
> On Sun, 3 Jan 2021, Carsten Bormann wrote:
> 
>> On 2021-01-03, at 14:56, Roger Price <roger@rogerprice.org> wrote:
>>> 
>>> draft-rprice-UPS-management-protocol-00.rfc(81): Error: Element dd has extra
>>>  content: t, at /rfc/middle/section[1]/section[1]/dl/dd[1]/t
>>> draft-rprice-UPS-management-protocol-00.rfc(97): Error: Element dd has extra
>>>  content: dl, at /rfc/middle/section[1]/section[1]/dl/dd[3]/dl
>> 
>> The full story in v3.rnc is:
> 
> Thanks for the pointer to v3.rnc.  Can I take this as the true grammar for xml2rfc?

AFAIK, that is the grammar xml2rfc actually uses for checking the input for v3.

> Wow! XML makes hard work of it.  I guess its because the XML mixed content declaration restricts the use of #PCDATA.  Why does the v3.rnc definition use "text" rather than #PCDATA ?

What was called #PCDATA (“parsed character data”) in SGML, and thus in XML DTDs, is called “text” in Relax-NG.

>> So, once you have used a span-level item (plain text, spans like em and strong, etc.), you can’t move up to block-level items (t, dl).
>> Can you post an excerpt of what you have been trying to do?
> 
> My problem was that I wrote
> 
> <dl>
>  <dt>Pizza</dt>
>  <dd>Lots of flavours. Look at these
>      <dl>
>        <dt>Banana...</dt>
>        <dd>...</dd>
>      </dl>
>  </dd>
> </dl>
> 
> I fixed this by adding a <t> to turn the text into a block:
> 
> <dl>
>  <dt>Pizza</dt>
>  <dd><t>Lots of flavours. Look at these   <- I added a <t>
>      <dl>
>        <dt>Banana...</dt>
>        <dd>...</dd>
>      </dl>
>  </dd>
> </dl>

Exactly; you need to avoid what SGML called “mixed content”.

> xml2rfc accepts this but I found that nested <dl> are all presented at the same depth in HTML output, so I will change the way I mark up.

I can’t reproduce that — for me, they nest just fine, nicely progressing to the right.

Grüße, Carsten