Re: [xml2rfc-dev] Weird formatting of list in presence of XML comments

Henrik Levkowetz <henrik@levkowetz.com> Wed, 29 January 2020 15:52 UTC

Return-Path: <henrik@levkowetz.com>
X-Original-To: xml2rfc-dev@ietfa.amsl.com
Delivered-To: xml2rfc-dev@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3DBCA120169 for <xml2rfc-dev@ietfa.amsl.com>; Wed, 29 Jan 2020 07:52:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.899
X-Spam-Level:
X-Spam-Status: No, score=-6.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, 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 JmqK-nk9XuRn for <xml2rfc-dev@ietfa.amsl.com>; Wed, 29 Jan 2020 07:52:35 -0800 (PST)
Received: from zinfandel.tools.ietf.org (zinfandel.tools.ietf.org [64.170.98.42]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C0550120020 for <xml2rfc-dev@ietf.org>; Wed, 29 Jan 2020 07:52:35 -0800 (PST)
Received: from h-202-242.a357.priv.bahnhof.se ([158.174.202.242]:57042 helo=tannat.localdomain) by zinfandel.tools.ietf.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <henrik@levkowetz.com>) id 1iwpdU-0002ZA-Pj; Wed, 29 Jan 2020 07:52:34 -0800
To: Christian Huitema <huitema@huitema.net>, xml2rfc-dev@ietf.org
References: <d29a76b7-c07a-f699-89d8-d3f686a2ba94@huitema.net>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <d6f44f95-8667-8e42-ce1d-d9d2c91ecaa5@levkowetz.com>
Date: Wed, 29 Jan 2020 16:52:05 +0100
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <d29a76b7-c07a-f699-89d8-d3f686a2ba94@huitema.net>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-SA-Exim-Connect-IP: 158.174.202.242
X-SA-Exim-Rcpt-To: xml2rfc-dev@ietf.org, huitema@huitema.net
X-SA-Exim-Mail-From: henrik@levkowetz.com
X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000)
X-SA-Exim-Scanned: Yes (on zinfandel.tools.ietf.org)
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc-dev/Yuz8E4Q9eV4ykCbXvJsrDBQXQII>
Subject: Re: [xml2rfc-dev] Weird formatting of list in presence of XML comments
X-BeenThere: xml2rfc-dev@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion about particulars of xml2rfc V3 design, development and code." <xml2rfc-dev.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc-dev>, <mailto:xml2rfc-dev-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc-dev/>
List-Post: <mailto:xml2rfc-dev@ietf.org>
List-Help: <mailto:xml2rfc-dev-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc-dev>, <mailto:xml2rfc-dev-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 29 Jan 2020 15:52:45 -0000

Hi Christian,

On 2020-01-29 02:02, Christian Huitema wrote:
> I just submitted
> https://www.ietf.org/internet-drafts/draft-ietf-dnssd-prireq-04.txt, and
> I am surprised by the text rendering section 4.1. It looks like:

This is indeed a bug.  It doesn't appear in a straightforward invocation
of xml2rfc with your xml input file, though, so it will take a bit of
debugging to pinpoint the circumstances that caused it.

Regards,

	Henrik

> 
> 4.1.  Private Client Requirements
> 
>    For all three scenarios described in Section 3.1, client privacy
>    requires DNS-SD messages to:
> 
>    1.  Avoid disclosure of the client's identity, either directly or via
>        inference, to nodes other than select servers.
> 
>    1.
> 
>    2.  Avoid exposure of linkable identifiers that allow tracing client
>        devices.
> 
>    2.
> 
>    3.  Avoid disclosure of the client's interest in specific service
>        instances or service types to nodes other than select servers.
> 
>    3.
> 
>    Listing and resolving services via DNS-SD, clients typically disclose
>    their interest in specific services types and specific instances of
>    these types, respectively.
> 
> Notice the extra "1.", "2.", "3."? Before submission, I tested the XML
> input against https://xml2rfc.tools.ietf.org/cgi-bin/xml2rfc.cgi, and
> there was no issue. The text rendering, as expected, was:
> 
> 4.1.  Private Client Requirements
> 
>    For all three scenarios described in Section 3.1, client privacy
>    requires DNS-SD messages to:
> 
>    1.  Avoid disclosure of the client's identity, either directly or via
>        inference, to nodes other than select servers.
> 
>    2.  Avoid exposure of linkable identifiers that allow tracing client
>        devices.
> 
>    3.  Avoid disclosure of the client's interest in specific service
>        instances or service types to nodes other than select servers.
> 
>    Listing and resolving services via DNS-SD, clients typically disclose
>    their interest in specific services types and specific instances of
>    these types, respectively.
> 
> The input is an XML2RFC V2 file. The relevant section is:
> 
>   <section title="Private Client Requirements">
>     <t>
>       For all three scenarios described in <xref target="scenarios" />,
> client privacy
>       requires DNS-SD messages to:
>       <list style="numbers">
>         <t>
>           Avoid disclosure of the client's identity, either directly or
> via inference,
>           to nodes other than select servers.
>           <!-- (violated by typical queries, and badly designed privacy
> extensions, e.g., via badly used hints) -->
>         </t>
>         <t>
>           Avoid exposure of linkable identifiers that allow tracing
> client devices.
>           <!-- (violated by typical queries, and badly designed privacy
> extensions, e.g., via badly used hints) -->
>         </t>
>         <t>
>           Avoid disclosure of the client's interest in specific service
> instances or service types to
>           nodes other than select servers.
>           <!-- (violated by PTR, TXT, SRV queries) -->
>         </t>
>       </list>
>     </t>
>     <t>
>       Listing and resolving services via DNS-SD, clients typically
> disclose their interest in
>       specific services types and specific instances of these types,
> respectively.
>     </t>
> 
> I suspect that the XML comments are tripping some bug. I will remove
> them in the next iteration of the draft, but I wonder whether that's a
> bug that should be fixed.
> 
> -- Christian Huitema
> 
> 
> 
> 
> 
> 
> _______________________________________________
> xml2rfc-dev mailing list
> xml2rfc-dev@ietf.org
> https://www.ietf.org/mailman/listinfo/xml2rfc-dev
>