Re: [Tools-discuss] bibxml3 database reload frequency

Henrik Levkowetz <henrik@levkowetz.com> Fri, 21 August 2020 11:26 UTC

Return-Path: <henrik@levkowetz.com>
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 04BF43A0825 for <tools-discuss@ietfa.amsl.com>; Fri, 21 Aug 2020 04:26:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.848
X-Spam-Level:
X-Spam-Status: No, score=-2.848 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.949, 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 QDC_FvsGKhil for <tools-discuss@ietfa.amsl.com>; Fri, 21 Aug 2020 04:26:06 -0700 (PDT)
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 C05093A0823 for <tools-discuss@ietf.org>; Fri, 21 Aug 2020 04:26:06 -0700 (PDT)
Received: from h-202-242.a357.priv.bahnhof.se ([158.174.202.242]:65120 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 1k95BI-0004xF-OW; Fri, 21 Aug 2020 04:26:03 -0700
To: Carsten Bormann <cabo@tzi.org>, Kent Watsen <kent+ietf@watsen.net>
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> <95235D1E-81B0-4CD5-AF99-8D5134009325@tzi.org>
Cc: Tools Discussion <tools-discuss@ietf.org>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <81e0bd4f-f284-19f0-ede1-5d817edddacf@levkowetz.com>
Date: Fri, 21 Aug 2020 13:25:53 +0200
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: <95235D1E-81B0-4CD5-AF99-8D5134009325@tzi.org>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="UV1aPFdrKb2THqRE4HgGnsdRjGILbEevV"
X-SA-Exim-Connect-IP: 158.174.202.242
X-SA-Exim-Rcpt-To: tools-discuss@ietf.org, kent+ietf@watsen.net, cabo@tzi.org
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/tools-discuss/QyDcXS95NoYOLPEDlLtpAAIAwiU>
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 11:26:10 -0000

On 2020-08-21 07:48, Carsten Bormann wrote:
> 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

Since release 2.44.0 in April this year, --expand is a much better option,
as it leaves a file that can still be worked with (--preptool expands all
attribute default values, adds ToC xml, and a lot of other things that you
don't really want in a document you might want to edit later).

> 
> 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.

The --expand option should avoid these drawbacks.

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

Maybe try --expand?


Regards,

	Henrik