Re: [Tools-discuss] bibxml3 database reload frequency

Carsten Bormann <cabo@tzi.org> Fri, 21 August 2020 05:48 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B3AC23A1859 for <tools-discuss@ietfa.amsl.com>; Thu, 20 Aug 2020 22:48:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 24SprTyJgb2W for <tools-discuss@ietfa.amsl.com>; Thu, 20 Aug 2020 22:48:33 -0700 (PDT)
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 9E1203A1448 for <tools-discuss@ietf.org>; Thu, 20 Aug 2020 22:48:33 -0700 (PDT)
Received: from [172.16.42.100] (p5089ae91.dip0.t-ipconnect.de [80.137.174.145]) (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 4BXrCz0XrlzyTY; Fri, 21 Aug 2020 07:48:31 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <010001740df92895-fbde9921-36cf-455c-a1a6-4dbd2f32ebfd-000000@email.amazonses.com>
Date: Fri, 21 Aug 2020 07:48:30 +0200
Cc: Tools Discussion <tools-discuss@ietf.org>
X-Mao-Original-Outgoing-Id: 619681710.527257-4743b263a23686a62c4a86270a68bd7d
Content-Transfer-Encoding: quoted-printable
Message-Id: <95235D1E-81B0-4CD5-AF99-8D5134009325@tzi.org>
References: <010001740c9e6adf-5f978dea-f19a-4298-8376-b82bf3be0835-000000@email.amazonses.com> <5d239c70-0124-c4d4-5dd2-8e712c7b14cd@levkowetz.com> <010001740df92895-fbde9921-36cf-455c-a1a6-4dbd2f32ebfd-000000@email.amazonses.com>
To: Kent Watsen <kent+ietf@watsen.net>
X-Mailer: Apple Mail (2.3608.120.23.2.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/GzYQT-WS-8xQV3sZve_IDEuV7IM>
Subject: Re: [Tools-discuss] bibxml3 database reload frequency
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 21 Aug 2020 05:48:37 -0000

On 2020-08-21, at 00:24, Kent Watsen <kent+ietf@watsen.net> wrote:
> 
> It worked, and then it didn’t. 

Yes.  One of the features and bugs of uploading XML is that you rely on the server-side XML2RFC to do your processing for you.  Here it seems, that still had -17 in its cache.

The kramdown-rfc process has a setting, “stand_alone: true”, which asks kramdown-rfc to resolve any external nreferences.  This is what I recommend people to use.  (It is not the default only because kramdown-rfc tries to support the long document development times typical for the IETF by being insanely backwards-compatible.)

To get the same level of assurance out of XML authoring, you need to prep the XML before uploading.

	xml2rfc --preptool foo.xml

You then have a foo.prepped.xml that you can upload.
(This step is also needed with any local references to SVG, source-code etc.)

Note that prepping means the uploaded XML is less useful for the RFC editor.
So, ironically, despite the switch to XML uploading, you will want to provide an unprepped XML, as well as all the locally referenced files, to the RFC editor -- even though the approved, but prepped, XML is in the I-D repository.
But this is irrelevant during the document development process up to approval.

Ultimately, I hope that xml2rfc gains a reference resolution function that does not involve all the preptool processing.  For now, prepping it is.

Grüße, Carsten