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

Randy Bush <randy@psg.com> Thu, 29 June 2023 21:32 UTC

Return-Path: <randy@psg.com>
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 972B8C151520 for <xml2rfc@ietfa.amsl.com>; Thu, 29 Jun 2023 14:32:50 -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, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 DJqRQkU5otY5 for <xml2rfc@ietfa.amsl.com>; Thu, 29 Jun 2023 14:32:50 -0700 (PDT)
Received: from ran.psg.com (ran.psg.com [IPv6:2001:418:8006::18]) (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 2A0ACC151066 for <xml2rfc@ietf.org>; Thu, 29 Jun 2023 14:32:50 -0700 (PDT)
Received: from localhost ([127.0.0.1] helo=ryuu.rg.net) by ran.psg.com with esmtp (Exim 4.93) (envelope-from <randy@psg.com>) id 1qEzFt-000rSY-O3; Thu, 29 Jun 2023 21:32:45 +0000
Date: Thu, 29 Jun 2023 14:32:44 -0700
Message-ID: <m2y1k2q7ib.wl-randy@psg.com>
From: Randy Bush <randy@psg.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Kesara Rathnayake <kesara@staff.ietf.org>, XML2RFC Interest Group <xml2rfc@ietf.org>
In-Reply-To: <FB98C0B4-C4BA-4627-9939-3E3A012756CE@tzi.org>
References: <m2v8f9ua1d.wl-randy@psg.com> <1C2D7469-A3FE-4029-9F5F-649E2AC3B390@nostrum.com> <m2ttutu5b9.wl-randy@psg.com> <CAD2=Z86oWFs6yPm6Fzt1S4HbFJnP8t=qE58c8NnFo-L=UouRiw@mail.gmail.com> <m2o7l1u11k.wl-randy@psg.com> <CAD2=Z86Nr1KnpPQNNu55kL75i5D9CaHXa0WDngkKxBJMLeHU+A@mail.gmail.com> <m2mt0ltn0h.wl-randy@psg.com> <CAD2=Z85ujG_JKK=FntZtOxgq8sA-AEQ3nKQ0qfF-N55WNVwZyQ@mail.gmail.com> <FB98C0B4-C4BA-4627-9939-3E3A012756CE@tzi.org>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/26.3 Mule/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset="ISO-2022-JP"
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/FCgz7gx6dQckTL-zwIMNwfcmEFc>
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: Thu, 29 Jun 2023 21:32:50 -0000

On Tue, 27 Jun 2023 21:48:29 -0700,
Carsten Bormann wrote:
> 
> On 28. Jun 2023, at 02:22, Kesara Rathnayake <kesara@staff.ietf.org> wrote:
> > 
> > When the reference is an URL, xml2rfc checks the cache directory first
> > and if it misses the cache, makes a network request.
> 
> “The cache directory” being ~/.caches/xml2rfc ?
> (This is where I dump copies of various sources of reference files, and also ask kramdown-rfc to put its own cache:

yep.  i think this is maintained by a ruby script, author not
attributed, i run after rsyncing

    #!/usr/bin/env ruby
    # prerequisite:
    # gem install net-http-persistent
    #
    # dumps all bibxml for current, "Active" I-Ds in TARGET_DIR
    # reasonably efficient if the output is retained

    TARGET_DIR=File.expand_path("~/.cache/xml2rfc")

    ....

randy