Re: [xml2rfc] question about ?anchor= in xi:include

Julian Reschke <julian.reschke@gmx.de> Wed, 27 May 2020 13:30 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 C54623A0DD5 for <xml2rfc@ietfa.amsl.com>; Wed, 27 May 2020 06:30:41 -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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net
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 tV1y-ABNxoYx for <xml2rfc@ietfa.amsl.com>; Wed, 27 May 2020 06:30:37 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 458253A0E30 for <xml2rfc@ietf.org>; Wed, 27 May 2020 06:30:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1590586229; bh=/fE6EqUFPSpKN8aKLUKRQM7VZpn3HoVHf+Aqo/napXw=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=dBapvzoJpZFJRXsmXn+ABAHlbilpnRGr+Qg6pFTj/aWfX+Hlg/yCXCyPSxKJ1cQSG uVTg/ECRwXwcg3SMVlnMCUUnlF0E16EfmNgyG1UtOWqJvN1+sFT7TMkB4R71vRePgc dePXLg5CgMhCBrChkbbZz/dcmn45H7M3OLQ229+8=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.1.220] ([217.91.35.233]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MJVHe-1jK3o50mZE-00JskI; Wed, 27 May 2020 15:30:29 +0200
To: Robert Moskowitz <rgm@htt-consult.com>, "xml2rfc@ietf.org" <xml2rfc@ietf.org>
References: <4676a8d6-82fa-8085-79fb-92ab7737bcb3@htt-consult.com>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <2b516e43-3f11-1888-c3e0-499d05c496f6@gmx.de>
Date: Wed, 27 May 2020 15:30:26 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1
MIME-Version: 1.0
In-Reply-To: <4676a8d6-82fa-8085-79fb-92ab7737bcb3@htt-consult.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:xF0u+qy70wOHNW1xcuHefOAaqV+i4vU9hItzcutJEiEhhOhLWCL R58x+CDNjFcG9jGWvSrYMd2vZRPIw8Aq3vzcdGxa+w+lI4jGd16vswoAzYKwcIPI04jaKZu j/L2e2aM/qxM+TyaGJOsZc0X0ptyAYyBS+fqblJasiw5dZL8kQVFduiyv5i7VUNw0HNSJ9I GRrQBuqzheOMb0GA2WcgA==
X-UI-Out-Filterresults: notjunk:1;V03:K0:KsZX9Isdk/c=:T6ZKjjLvQBKHJ0Zr10MAeW /ef0uqvyhZiKFOmJ2+qeVIvMSA2+cbGq1shxBXm41Nxcif9EJu2oGpX5i+5S2BnEQk1JNnz/D L2bI9D2zJPlT/NqgAc8/teC32gkkrPp3cCu5xqYEU2JtQ8NzDHv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TSUChq2fFB85M5bN0sLAKPZiIgy0uHK5QnTRJi+F6G1b/ZptfWE ZcxKOyRtxcyR3ilM1
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/xmfvcC5svPqjtsEPeqGCi-XasJM>
Subject: Re: [xml2rfc] question about ?anchor= in xi: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: Wed, 27 May 2020 13:30:42 -0000

On 27.05.2020 15:13, Robert Moskowitz wrote:
> In the usage below:
>
> <xi:include
> href="https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.card-drip-reqs.xml?anchor=drip-reqs"/>
>
>
> Where at the beginning of <back> there is:
>
> <displayreference target="I-D.card-drip-reqs" to="drip-requirements"/>
>
> What value is the anchor?

In the URI


https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.card-drip-reqs.xml?anchor=drip-reqs

the "anchor" query parameter doesn't seem to be used; the XML is:

<reference anchor="I-D.card-drip-reqs">
<front>
<title>Drone Remote Identification Protocol (DRIP) Requirements</title>

<author initials="S" surname="Card" fullname="Stuart Card">
     <organization/>
</author>

<author initials="A" surname="Wiethuechter" fullname="Adam Wiethuechter">
     <organization/>
</author>

<author initials="R" surname="Moskowitz" fullname="Robert Moskowitz">
     <organization/>
</author>

<date month="April" day="20" year="2020"/>

<abstract><t>This document defines the requirements for Drone Remote
Identification Protocol (DRIP) Working Group protocols and services to
support Unmanned Aircraft System Remote Identification (UAS RID).
Objectives include: complementing external technical standards as
regulator-accepted means of compliance with UAS RID regulations;
facilitating use of existing Internet resources to support UAS RID and
to enable enhanced related services; and enabling verification that UAS
RID information is trustworthy (to some extent, even in the absence of
Internet connectivity at the receiving node).</t></abstract>

</front>

<seriesInfo name="Internet-Draft" value="draft-card-drip-reqs-02"/>
<format type="TXT"
target="http://www.ietf.org/internet-drafts/draft-card-drip-reqs-02.txt"/>
</reference>


So, as anchor you'll need to use "I-D.card-drip-reqs". The
<displayreference> just changes what's displayed in the references.

> I can't use it in a xref target=

You are not supposed to :-)

> If I leave it out, there is no difference in the resultant draft.
>
> When I look at the v3 FAQ, it seems that the anchor is used when no
> displayreference?

<displayreference> only affects *display*. See
<https://greenbytes.de/tech/webdav/rfc7991.html#element.displayreference>.


Best regards, Julian