Re: [Xml-sg-cmt] Fwd: docName - Re: Fwd: [django-project] Weird Internal Metadata error in I-D HTML

John R Levine <johnl@taugh.com> Sat, 04 September 2021 20:25 UTC

Return-Path: <johnl@taugh.com>
X-Original-To: xml-sg-cmt@ietfa.amsl.com
Delivered-To: xml-sg-cmt@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B17D33A10B9 for <xml-sg-cmt@ietfa.amsl.com>; Sat, 4 Sep 2021 13:25:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=iecc.com header.b=EFkRrt4W; dkim=pass (2048-bit key) header.d=taugh.com header.b=SPYpJgUV
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 A0DUgvc_-Kme for <xml-sg-cmt@ietfa.amsl.com>; Sat, 4 Sep 2021 13:25:53 -0700 (PDT)
Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D73D63A10B8 for <xml-sg-cmt@ietf.org>; Sat, 4 Sep 2021 13:25:52 -0700 (PDT)
Received: (qmail 83962 invoked from network); 4 Sep 2021 20:25:49 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:subject:in-reply-to:references:mime-version:content-type:content-transfer-encoding; s=147f8.6133d64d.k2109; bh=lTk3a9ajb6Wzmg3AWpY1/qO9v50JO0XgSArTQJr3MjA=; b=EFkRrt4WUCNFaVgLy8x3vQva/bkdKOzIJbn5645WnEHWwpZ9ICL9pgQXUv5gSvLPcJYnGlQ110E8fKAN6CbOi/QmYobqSQRiyB8e2s8e4xTy3tFAM6rsCtOQlkrV8QUj9mlETfMN3tJROIl51EaxtsMT6vzPXL9iYOav4EbheWBnMfjkLSASHxCEOFQfFVCJ2T876OzmUKI//1l4LMUEZqsjAyEeuJKT2nd3XVkfFMOPrJ1K3aPXj+t+IUdjH+PcTH3JgwBHsz8m+d1RgD4/RM4mJEpR5JUGMc/qlJCkMJI5Z3Wnjd5nmKOMKVk6n79a93d1+nVNv1FeBPf1JzIgnQ==
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:subject:in-reply-to:references:mime-version:content-type:content-transfer-encoding; s=147f8.6133d64d.k2109; bh=lTk3a9ajb6Wzmg3AWpY1/qO9v50JO0XgSArTQJr3MjA=; b=SPYpJgUVF/kKYERBMpmrGccSy8LdVbtYIgzKeubDUd4WknWsrMIcmTC6r1AEaLxLb5nUk892rzcidfK1neV8vkyrJJfesRL7YJZscggK5wQd3k50IDiO8pNuXpDYKXhd4ndnqyeRJW8UBPNivwfjkLC0SCjDu3gNokYrdTWTVhkPPAiTNvgaC0knfDmzwOTJs2651I5ExuGTrrsDy9NjIROp/bdvp92FfKZEz75ByR8lzZNbfmY4e9KgWBejn3jfBMQgiXHjEj8VDZxczoxztg3j3ji6oYGqLSDyP6vUpxrU0GFG73jb87bF8n/tWkoUCFjxJmZQ/EFl3dQYWh18xQ==
Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.2 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 04 Sep 2021 20:25:49 -0000
Received: by ary.qy (Postfix, from userid 501) id 8FEEE27684D4; Sat, 4 Sep 2021 16:25:48 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1]) by ary.qy (Postfix) with ESMTP id 134AD27684B6; Sat, 4 Sep 2021 16:25:48 -0400 (EDT)
Date: Sat, 04 Sep 2021 16:25:47 -0400
Message-ID: <b6d6c6d1-abc6-8155-1d80-c54e548212b@taugh.com>
From: John R Levine <johnl@taugh.com>
To: Robert Sparks <rjsparks@nostrum.com>, xml-sg-cmt@ietf.org, Kesara Rathnayake <kesara@staff.ietf.org>
X-X-Sender: johnl@ary.qy
In-Reply-To: <14d0326c-d8d0-0a3c-d30a-7917dba79efe@nostrum.com>
References: <06C35681-F5E3-473F-BAF6-2ABF82A6DC8B@amsl.com> <728E07A7-EEB6-41A1-BA10-2E397F4FDB1F@amsl.com> <14d0326c-d8d0-0a3c-d30a-7917dba79efe@nostrum.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml-sg-cmt/0vU-fxzgAHSu0B4fRLE20V4A41I>
Subject: Re: [Xml-sg-cmt] Fwd: docName - Re: Fwd: [django-project] Weird Internal Metadata error in I-D HTML
X-BeenThere: xml-sg-cmt@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Working list for the xml and style guide change management team <xml-sg-cmt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml-sg-cmt>, <mailto:xml-sg-cmt-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml-sg-cmt/>
List-Post: <mailto:xml-sg-cmt@ietf.org>
List-Help: <mailto:xml-sg-cmt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml-sg-cmt>, <mailto:xml-sg-cmt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 04 Sep 2021 20:25:59 -0000

> Other people may be able to more quickly explain why continuing to use 
> docname in the case Henrik points to below is the better choice - I suspect 
> its so that we can treat older references and newer ones the same?

I think I see what Henrik did, but it doesn't agree with 7991 or 7998.

7991 says that docName is deprecated in favor of seriesInfo, so I think it 
is clearly wrong that the docName and seriesInfo don't match.

7998 says the preptool adds a <link> to the draft with rel="convertedFrom" 
attribute but in fact it has rel="prev"

I think the least wrong thing to do is for the preptool to add 
a link with rel="convertedFrom" and delete the docName.

This is not backward compatible but I am increasingly feeling that once we 
are done, we should have a flag day and republish the XML to match the 
final grammar.

R's,
John

> On 9/3/21 5:11 PM, Sandy Ginoza wrote:
>> Hi All,
>> 
>> Forwarding this mail in hopes we can discuss docName a bit.
>> 
>> Have a great weekend!
>> 
>> Thanks!
>> Sandy
>> 
>>> Begin forwarded message:
>>> 
>>> *From: *Sandy Ginoza <sginoza@amsl.com <mailto:sginoza@amsl.com>>
>>> *Subject: **Re: docName - Re: Fwd: [django-project] Weird Internal 
>>> Metadata error in I-D HTML*
>>> *Date: *September 1, 2021 at 6:28:06 PM PDT
>>> *To: *Alice Russo <arusso@amsl.com <mailto:arusso@amsl.com>>
>>> *Cc: *Robert Sparks <rjsparks@nostrum.com <mailto:rjsparks@nostrum.com>>, 
>>> Jean Mahoney <jmahoney@amsl.com <mailto:jmahoney@amsl.com>>
>>> 
>>> Hi Robert,
>>> 
>>> Regarding docname=“draft”, is inclusion of the version number required?
>>>  We’ve started running into the question of whether the version number 
>>> should match a) the approved version, b) the current datatracker version 
>>> (versions submitted after the document enters the queue), or c) the 
>>> version approved by the ADs (could be a or b).
>>> 
>>> Please let me know if you prefer I send this to the full xml-sg-cmt.
>>> 
>>> Thanks!
>>> Sandy
>>> 
>>> 
>>>> On Aug 24, 2021, at 9:57 AM, Alice Russo <arusso@amsl.com 
>>>> <mailto:arusso@amsl.com>> wrote:
>>>> 
>>>> Hi Robert,
>>>> 
>>>> You wrote:
>>>>> I note (and I am actually surprised - I've forgotten how we got here) 
>>>>> that we are _publishing_ RFCs with docName not matching seriesInfo 
>>>>> value, and I bet this will cause confusion in the future.
>>>> 
>>>> I'm forwarding the mail below from 2019 for background re: setting 
>>>> docName to the draft string.  (As a result of the exchange below, grep 
>>>> shows "docName=\"draft" in the 439 RFCs published in the v3 era.)
>>>> 
>>>> Alice
>>>> 
>>>>> Begin forwarded message:
>>>>> 
>>>>> From: Henrik Levkowetz <henrik@levkowetz.com 
>>>>> <mailto:henrik@levkowetz.com>>
>>>>> Subject: Re: docName - was: Re: [v3] "é" (acute/aigu accent) no longer 
>>>>> accepted
>>>>> Date: September 16, 2019 at 12:18:13 PM PDT
>>>>> To: Alice Russo <arusso@amsl.com <mailto:arusso@amsl.com>>
>>>>> Cc: RFC Editor <rfc-editor@rfc-editor.org 
>>>>> <mailto:rfc-editor@rfc-editor.org>>
>>>>> 
>>>>> Hi Alice,
>>>>> 
>>>>> On 2019-09-16 20:56, Alice Russo wrote:
>>>>>> Hi Henrik,
>>>>>> 
>>>>>> On the topic of docName:
>>>>>> 
>>>>>> Re:
>>>>>>> On Sep 16, 2019, at 11:36 AM, Henrik Levkowetz <henrik@levkowetz.com 
>>>>>>> <mailto:henrik@levkowetz.com>> wrote:
>>>>>>> 
>>>>>>>> draft-ietf-mptcp-rfc6824bis-18.xml(4): Warning: Expected a <link> 
>>>>>>>> with rel="prev" providing the datatracker url for the origin draft, 
>>>>>>>> or alternatively a "docName" attribute on <rfc> from which to 
>>>>>>>> construct such a <link> element.
>>>>>>> 
>>>>>>> You should fix this one, too.  Provide docName="..." with the draft 
>>>>>>> name
>>>>>>> from which the RFC comes.
>>>>>> 
>>>>>> OK; we can update our internal documentation accordingly.
>>>>>> 
>>>>>> I must have misunderstood from a past thread bc I thought we weren't
>>>>>> setting docName at all. If we set it to the draft string, it creates
>>>>>> this in the HTML output:
>>>>>> <link href="https://datatracker.ietf.org/doc/draft-foo-09 
>>>>>> <https://datatracker.ietf.org/doc/draft-foo-09>" rel="prev">
>>>>> 
>>>>> That's right, that's the intention.
>>>>> 
>>>>>> Is the following accurate?
>>>>>> - This link element is not displayed in the browser-rendered HTML
>>>>>> (only viewable in the HTML source).
>>>>> 
>>>>> Yes.
>>>>> 
>>>>>> - This link element exists because it is specified in
>>>>>> <https://tools.ietf.org/html/rfc7998#section-5.6.3 
>>>>>> <https://tools.ietf.org/html/rfc7998#section-5.6.3>>.
>>>>> 
>>>>> Yes.
>>>>> 
>>>>>> Is there more understanding we should have?  From the RPC
>>>>>> perspective, it seems odd that the docName is set to the drafts
>>>>>> string (i.e., the RFC is no longer draft-foo-09).
>>>>> 
>>>>> Yes, I can see that.  The attribute name is not appropriate for the use
>>>>> it has when the document becomes an RFC.  "draftName" or "draft-name" 
>>>>> would
>>>>> have been better.  But docName has been with us since Marshall Rose's 
>>>>> first
>>>>> implementation of xml2rfc, I think, so I doubt we can fix that.
>>>>> 
>>>>> 
>>>>> Best regards,
>>>>> 
>>>>> Henrik
>>>>> 
>>>>>> 
>>>>>> Thanks,
>>>>>> Alice
>>>>>> 
>>>>>> Background from May thread:
>>>>>> 
>>>>>> On May 10, 2019, you wrote:
>>>>>>> No, the docName should not change to a number; the docName is used to 
>>>>>>> add
>>>>>>> metadata about the draft from which an RFC is derived when writing a 
>>>>>>> v3
>>>>>>> RFC in html format, and to insert the draft name when writing draft 
>>>>>>> output.
>>>>>> 
>>>>>> And then later the same day:
>>>>>>>>> Warning: Expected a <link> with rel='prev' providing the datatracker 
>>>>>>>>> url for the origin draft.
>>>>>>>> 
>>>>>>>> The v2v3 converter inserts a <link> with rel='prev' if docName is 
>>>>>>>> given;
>>>>>>>> for v3 xml you should set that.  I think, however, that this warning 
>>>>>>>> should
>>>>>>>> more correctly be a note or comment.
>>>>>>> 
>>>>>>> No, I'm wrong.  It should be at least a warning, possibly an error.
>>>>>>>  This is
>>>>>>> covered in https://tools.ietf.org/html/rfc7998#section-5.6.3 
>>>>>>> <https://tools.ietf.org/html/rfc7998#section-5.6.3> .  This is
>>>>>>> emitted only in RFC production mode.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>> 
>> 
>> 
>

Regards,
John Levine, johnl@taugh.com, Taughannock Networks, Trumansburg NY
Please consider the environment before reading this e-mail. https://jl.ly