Re: [xml2rfc] XInclude should be used instead of PI include

Julian Reschke <julian.reschke@gmx.de> Tue, 27 June 2023 07:39 UTC

Return-Path: <julian.reschke@gmx.de>
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 A1FAEC153CBB for <xml2rfc@ietfa.amsl.com>; Tue, 27 Jun 2023 00:39:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.795
X-Spam-Level:
X-Spam-Status: No, score=-2.795 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, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmx.de
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AO-BE3vY68Pv for <xml2rfc@ietfa.amsl.com>; Tue, 27 Jun 2023 00:38:58 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C5A2CC1575A7 for <xml2rfc@ietf.org>; Tue, 27 Jun 2023 00:38:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1687851535; x=1688456335; i=julian.reschke@gmx.de; bh=qVEAF3XWs8TwhI9qOAA1V9kWdkKWtuBXDM4B0UGq0Ao=; h=X-UI-Sender-Class:Date:From:Subject:To:References:In-Reply-To; b=siC9eRPIfpnLwf9tvNWbtlJUhYxXQdwksbd/SdhnNRmN/iildo5X3MdRMrGmJ/7MtkRKZMA 8LC+LzCvG1FGnWR2G+wiwbY2DQvwFg7kuN56Yxjz3Rm0vDWIOEWFpc6lZ3d77s6/+9tRQYB0X qlVhJO97FAGr+BSBamH7nRRQED4Ykga+0/yVQoKylCL3N/LcdLV4Ty+EKj+eXsGlwB8yfhqLc t2y88x62w4hpIG/EqeA+16IxC6uyzbTrmm16c8DpwwtHkGH348E2nDUm/FHAhpfmO60BrGZbm 4t/8slTipOm+iGXoeTEbno1Wj/NWDt7XuPh5lJev95KXSonMHrlw==
X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a
Received: from [192.168.192.237] ([80.187.101.238]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mg6e4-1pYf3p2BQs-00hgAe for <xml2rfc@ietf.org>; Tue, 27 Jun 2023 09:38:55 +0200
Message-ID: <938b00d1-5fb7-3e75-a682-1c4799acde02@gmx.de>
Date: Tue, 27 Jun 2023 09:38:54 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0
From: Julian Reschke <julian.reschke@gmx.de>
To: xml2rfc@ietf.org
References: <m25y7auglb.wl-randy@psg.com> <B71CAF97-2924-47FF-B28C-61E9C1B93CB1@tzi.org> <m21qhyueoj.wl-randy@psg.com> <2612E60E-6B70-44DE-A87A-5ADB7F21F923@tzi.org> <40975c07-be1c-124b-f9fa-6d8a979157b5@nostrum.com> <m2v8f9ua1d.wl-randy@psg.com>
In-Reply-To: <m2v8f9ua1d.wl-randy@psg.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:YPIRcTvnXjoNcAvTUpfO0icYzLL1yQw3eXwm3OQkT8TAWBIXb8A zsJjd95Q9pkAbozcXfjjLn4Kkgn2yT9R6XFQYF/KMToGVJOgH173725wxZo7UDv66EGqgKD AyrGafjn5m4lPp/byJ81epwhxkXdwH5Xfr+VJD5Y5Vu8TCzXa5pdwaBmmxsRioNtLxx7kVf HZVGvpm+qqI944JoFKSJA==
UI-OutboundReport: notjunk:1;M01:P0:LorCXO0AOyc=;Y41C8qOzoE4p7rGEevKAdcsEqqB VqTAGCvKFiTit0sgTYwhNVkdwN2VnszWZroo/2MsQxwgWUTGj8iYo0dEY54hT4n9m/3yqiZEo 0CQjG4NKdc/GHGUZK6dXQYoPWgoXxf64PCpwR7iOibxwu4dRXI0I32noCqjtjtLm/hkZR3U0q U/jhpqnI/Qe+uGNMxyOJ6O+rbnPxaGPr8mcEo60FNoHOLjoPbyozr24ErQs4SQ9kK8oElR4O9 GUMYf+fyKw2lZ76r130WbMkb+1zisq8A+ZHeVWJTnWO9MxpyFduIHx2Y1BgfKhD82gCKpbNHN HNKN55cOLVo318h2SW+Mmf1gRD1N35aaL8Gx5qN7k4y8pRk9iiggUhQERW7CEtMMXRZptEc0f hS9DLCDAnRS9o0diME0VtHA1ZmFdB76HrbpC06c2TNiEjxZjdArelMKT4M6DEmBXd9rNRxnOj 6i9zQP3S7nZi6XPymES7FfYxpVwRG8VR1t8I5uYv5+ybTQZyAxqFrRhJEqdzqHW0CQf8IIJxb Au5ItoPuhcoksvO/QG7o/0BCUKDATFNZyd94xQScLCrQ55N8WOScvfQSzAWNzOughYq3mR8MQ BKKX9VOvaDS2BIboYsp3rX+Kstmk9v1kLFecAIe3oz8pu5mkLYW5WxfK44n2xxsAFRfEHLwa7 BO38i9mephcjUIHdoOUhuu8ywlOsHTOBzOKS9JnVeifbeS/LtflG6otdeU4YARAi14IAEZbdC pTXJpcB9mLs2hXF4H8xMOPp4cF46ROnFh30JDs1Rt4jIaBgE7UT1y55sMZpTs9wX4PDuScqt4 D0davOnNHwUBe3tJ4MDCxgcbHhyljkqUDer7l/CEuA2U8SUra6C64V1ajySCBkboufJf1QRds lc9J2F9ntMwnfwgpw0E2VnmimqjjLEiQzcZo6lRLaWhTZte64bxEVGFj8yi+gClzsm7nOEeMY KxFEAxtcqWk74ohWBUntKO3MOj8=
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/5C4gY33m7FzDVMLbarJ0lO3zOWU>
Subject: Re: [xml2rfc] XInclude should be used instead of PI include
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: XML2RFC discussion list <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, 27 Jun 2023 07:39:02 -0000


Am 27.06.2023 um 00:35 schrieb Randy Bush:
>>>> i have a local rsunk repo and am doing
>>>>
>>>>      <references title="Normative References">
>>>>        <?rfc include="reference.RFC.2119.xml"?>
>>
>> That would look like <xi:include
>> href="https://bib.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/>
>>
>> All of Carsten's observation about this hardcoding an external
>> reference and that the URLs have been changing a _lot_ recently are
>> correct, as you can see from the before-preptool source for one of the
>> most recently published RFCs:
>>
>> rjsparks@undex feat-rfc % curl --no-progress-meter
>> https://www.rfc-editor.org/prerelease/rfc9425.notprepped.xml | grep
>> 8174
>>      <xref target="RFC8174"/> when, and only when, they appear in all
>> capitals,
>> <xi:include
>> href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/>
>>
>> (The RPC is shifting to using bib.ietf.org to which xml2rfc.ietf.org
>> redirects).
>>
>> For Internet-Drafts, you'll need to use an href that looks like
>>
>> https://bib.ietf.org/public/rfc/bibxml-ids/reference.I-D.ietf-rtgwg-segment-routing-ti-lfa.xml
>>
>> That is, using xi:include comes with the extra burden of knowing the
>> names of the bibxml datasets.
>>
>> There are conversations ongoing about how to avoid these
>> author-unfriendly aspects.
>
> i demand a refund!!!!
>
> i need to build when there is no net connectivity.  this is why i have
> rsunc repos.

That is supposed to be possible with xi:include and relative references.

Best regards, Julian