[xml2rfc] Date format -- Re: Strange behavior with a DOI reference include

Carsten Bormann <cabo@tzi.org> Tue, 15 December 2020 06:46 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 3D5023A0AF3 for <xml2rfc@ietfa.amsl.com>; Mon, 14 Dec 2020 22:46:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.003
X-Spam-Level:
X-Spam-Status: No, score=0.003 tagged_above=-999 required=5 tests=[RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=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 qopj_Q0xWLLH for <xml2rfc@ietfa.amsl.com>; Mon, 14 Dec 2020 22:46:50 -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 B92723A0AE6 for <xml2rfc@ietf.org>; Mon, 14 Dec 2020 22:46:50 -0800 (PST)
Received: from [192.168.217.118] (p548dca87.dip0.t-ipconnect.de [84.141.202.135]) (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 4Cw81g0nt3zyVR; Tue, 15 Dec 2020 07:46:47 +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: <3925695c-333d-9e8e-fee1-db3479f6d117@htt-consult.com>
Date: Tue, 15 Dec 2020 07:46:46 +0100
Cc: "xml2rfc@ietf.org" <xml2rfc@ietf.org>
X-Mao-Original-Outgoing-Id: 629707606.541779-f5e83da95e895a5638e766eb72c5b87a
Content-Transfer-Encoding: quoted-printable
Message-Id: <FC2C27CB-B601-41D3-A065-BBD8256CEB46@tzi.org>
References: <3925695c-333d-9e8e-fee1-db3479f6d117@htt-consult.com>
To: Robert Moskowitz <rgm@htt-consult.com>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/MjDOoywYBwu15i-bXrtzYO2dKHY>
Subject: [xml2rfc] Date format -- Re: Strange behavior with a DOI reference include
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: Tue, 15 Dec 2020 06:46:53 -0000

On 2020-12-15, at 04:47, Robert Moskowitz <rgm@htt-consult.com> wrote:
> 
>     <date year="n.d.”/>

That triggers an issue in RFCXML V3 that so far was papered over by the v2v3 converter.

In v2, if you want to have non-numeric information in the date field (e.g., “n.d.” for no date), you put it into the year attribute of the date element:

https://tools.ietf.org/html/rfc7749#section-2.13

In v3, this was changed:  The date element got content, which is supposed to be used for dates that do not clearly have year/month/day.  Actually:

https://tools.ietf.org/html/rfc7991#section-2.17 still says it’s the way it was in v2, but 

https://tools.ietf.org/html/draft-levkowetz-xml2rfc-v3-implementation-notes-11#section-4.1.3

reneges and the documentation that comes with xml2rfc (the URI for which I forget) has more details on the change.  

The bibxml data generated from DOIs don’t know that.

If you convert a v2 document into v3, non-numeric year data will be moved into the content of <date>.  If you import bibxml data into a document that is putatively v3, that breaks for a non-numeric date.

(There also is a question whether doilit should apply a heuristic to generate a date even if the DOI data say

{"issued":{"date-parts":[[null]]}}

which I think is breakage.  But that is orthogonal to be above issue.)

Grüße, Carsten