Re: [xml2rfc] can xref section= reference an anchor?

Julian Reschke <julian.reschke@gmx.de> Mon, 16 December 2019 17:18 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 8FE84120871 for <xml2rfc@ietfa.amsl.com>; Mon, 16 Dec 2019 09:18:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-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 djeGuZIVqIO9 for <xml2rfc@ietfa.amsl.com>; Mon, 16 Dec 2019 09:18:33 -0800 (PST)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (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 DA225120870 for <xml2rfc@ietf.org>; Mon, 16 Dec 2019 09:18:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1576516705; bh=ZqO6KhzlxZKV9ECGfzyILqc50V8HRsrSkuHcYltx3YU=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=L2YaqE+tS1XnMWr03qpJtk4cIhDUcGCjJggyXsM567IaIAxn6KrPHLzFKAAqDZ9Eh A7JwEUHVbfXNuRZtniBTQ2fgfLsmisVM+wB1CbknDz8Bikn+PVcmqdh5MNsHA50bfl 0LiQtFedKDEskJXst2blyRdJEXzjbEtktrZnQeQQ=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.124] ([91.61.56.199]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N9dwj-1hbPNs0W1t-015cTO; Mon, 16 Dec 2019 18:18:25 +0100
To: Robert Moskowitz <rgm@htt-consult.com>, "xml2rfc@ietf.org" <xml2rfc@ietf.org>
References: <5d192de5-c6ca-aa1f-b7e0-0500704e491a@htt-consult.com> <13eeba5e-bb17-a0dc-cf21-8380150f480d@gmx.de> <2e3a4d01-34e2-5609-5179-3ddd47493947@htt-consult.com>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <9193046f-22f1-e9f2-0a11-86d622ab11fd@gmx.de>
Date: Mon, 16 Dec 2019 18:18:23 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
In-Reply-To: <2e3a4d01-34e2-5609-5179-3ddd47493947@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:PZDzi5lOb19NPIrmpWO+BfMy5ZjKSPSI8G6Wx4EMPvcVcq8hcyn dMbL9RlkSCPXr+feaurV0OAElT/+Ifqthad6cDX+kt3FW0pTOUJ9JibrHS0Ldrn+yqg40lw Z0logmMrdtN0e+V0sVCpkSZsDd3R9tUQqqVDCIjkff4JJnkxVLVpW5IhBRFF7R40pyUXvpA TGl2KNqPvzdcitERH21fg==
X-UI-Out-Filterresults: notjunk:1;V03:K0:W5MP8HdT5yA=:s9ORDW6N71GIoe+YpjoOPt HU34Io/MuUpnRDYmBQr+hAuhUcXYB6t2Fb9zAzU+yguDZGxFxoxrelGaHVgkpkiRh+jedtXFk i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RtSt7/zS anwoKbV4PMag4tj0t3zhscrsTBa47BIJuKtSnCfRRNCmABaIxzoAu5Xy+F9lxW8LffI8De+n1 Y0d1lwG7cGttpggiCZfkR12RxbE5GA3PkjqKJFhAJo9adG1GZrYL3BNF7rEk=
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/uqrNeZKQeL-WlxB0FaQsx6aG9GA>
Subject: Re: [xml2rfc] can xref section= reference an anchor?
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: Mon, 16 Dec 2019 17:18:34 -0000

On 16.12.2019 18:07, Robert Moskowitz wrote:
>
>
> On 12/16/19 12:01 PM, Julian Reschke wrote:
>> On 16.12.2019 17:47, Robert Moskowitz wrote:
>>> I see examples of section=5 for RFCs, but for IDs, the section number
>>> will tend to be version specific.
>>>
>>> Is there a way to reference the anchor label for the desired section?
>>>
>>> I am missing it in the FAQs.
>>
>> You set anchor="label" on the section that you want to reference, and
>> then use <xref target="label"/> in order to reference it.
>
> I was not clear enough.
>
> Consider:
>
> <xref target="I-D.moskowitz-orchid-cshake" format="default"
>      section="4" sectionFormat="of">"Using cSHAKE in ORCHIDs"</xref>
>
> And in moskowitz-orchid-cshake I have:
>
> <section anchor="Decode" numbered="true" toc="default"> <name>ORCHID
> Decoding</name>
>
> I want to use that anchor, "Decode" from the xml, not the section # that
> ended up in the current ver of the draft's txt.
> ...

That's not currently possible in xml2rfc.

It *is* possible, if you run a preprocessor on the XML (such as the one
coming with rfc2629.xslt, but that in turn currently only supports a
subset of v3).

Best regards, Julian