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

Kesara Rathnayake <kesara@staff.ietf.org> Mon, 06 September 2021 04:01 UTC

Return-Path: <kesara@staff.ietf.org>
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 F101E3A1E51 for <xml-sg-cmt@ietfa.amsl.com>; Sun, 5 Sep 2021 21:01:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, CTE_8BIT_MISMATCH=0.001, NICE_REPLY_A=-0.001, 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 C7_PhtfLsUua for <xml-sg-cmt@ietfa.amsl.com>; Sun, 5 Sep 2021 21:01:11 -0700 (PDT)
Received: from ietfx.ietf.org (ietfx.ietf.org [4.31.198.45]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 963F13A1E4F for <xml-sg-cmt@ietf.org>; Sun, 5 Sep 2021 21:01:11 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by ietfx.amsl.com (Postfix) with ESMTP id 7BCC84A8D5C6; Sun, 5 Sep 2021 21:01:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
Received: from ietfx.ietf.org ([4.31.198.45]) by localhost (ietfx.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dt3BZNS--Rly; Sun, 5 Sep 2021 21:01:07 -0700 (PDT)
Received: from [192.168.1.198] (unknown [124.197.12.15]) by ietfx.amsl.com (Postfix) with ESMTPSA id 7826846FDC0F; Sun, 5 Sep 2021 21:01:06 -0700 (PDT)
Message-ID: <66273423-4f5f-4509-56f2-d4fe108598fb@staff.ietf.org>
Date: Mon, 06 Sep 2021 16:01:02 +1200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:92.0) Gecko/20100101 Thunderbird/92.0
Content-Language: en-NZ
To: John R Levine <johnl@taugh.com>, Robert Sparks <rjsparks@nostrum.com>, xml-sg-cmt@ietf.org
References: <06C35681-F5E3-473F-BAF6-2ABF82A6DC8B@amsl.com> <728E07A7-EEB6-41A1-BA10-2E397F4FDB1F@amsl.com> <14d0326c-d8d0-0a3c-d30a-7917dba79efe@nostrum.com> <b6d6c6d1-abc6-8155-1d80-c54e548212b@taugh.com>
From: Kesara Rathnayake <kesara@staff.ietf.org>
Organization: IETF Administration LLC
In-Reply-To: <b6d6c6d1-abc6-8155-1d80-c54e548212b@taugh.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml-sg-cmt/XXIsXsmvXaDjFA5pYebQ80SzeaQ>
X-Mailman-Approved-At: Mon, 06 Sep 2021 09:14:12 -0700
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: Mon, 06 Sep 2021 04:01:18 -0000

 > Kesara - could you code-mine and see what the code currently wants and
 > does with any version in docname for a v3 document?

xml2rfc prep tool checks for a <link> with rel="prev" first.
If that is missing then xml2rfc looks for docName and construct a <link> 
with rel="prev" from the docName.

When both docName and a <link> with rel="prev" are missing, xml2rfc prep 
tool spitout a warning:
```
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.
```

Reference: 
https://trac.ietf.org/trac/xml2rfc/browser/trunk/cli/xml2rfc/writers/preptool.py#L2338

   -- Kesara



On 5/09/21 8:25 am, John R Levine wrote:
>> 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
> 

-- 
Kesara Rathnayake
Senior Software Development Engineer - IETF LLC
kesara@staff.ietf.org