Re: [Tools-discuss] Links from HTML I-Ds to datatracker/latest versions

Jeffrey Yasskin <jyasskin@google.com> Wed, 10 March 2021 23:29 UTC

Return-Path: <jyasskin@google.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 F37533A0D8A for <tools-discuss@ietfa.amsl.com>; Wed, 10 Mar 2021 15:29:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.599
X-Spam-Level:
X-Spam-Status: No, score=-17.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.com
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 2y5-9bCBGECF for <tools-discuss@ietfa.amsl.com>; Wed, 10 Mar 2021 15:29:55 -0800 (PST)
Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5A0F43A0D81 for <tools-discuss@ietf.org>; Wed, 10 Mar 2021 15:29:55 -0800 (PST)
Received: by mail-qt1-x829.google.com with SMTP id w60so9613571qte.0 for <tools-discuss@ietf.org>; Wed, 10 Mar 2021 15:29:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HqoIZ6RmabkLgEy8MxgQJCQ6TI4DrSKYBcfjgscznRQ=; b=TNqHFKcgvO64t8JFxWJpCCSUw550eF6GY5bsDcz69m3dlp53JoEvz06F7wBueQSiOs 2MPhZ5v9AJl+fRtlZx0OWd0WmQFDlF7zEOe2MP+pBinsaQfeGyOm/ufMb22tHLAtsmfT XhRT1UfoyysCAINDdjAwkMxAZe82jTy7qFHqIYvB5FpnJXWfZ3BJ87vwmh0YKJf+1u6a 453ChVcGqRJVcsUOFL/VDIVnybY5HxCMSXei8graGXPw+ZJ0+sqSJ7eHFuZXB9XYuAE6 60cwug212V980WRkalaYEftJqW7svaJxoEWzOoztSpNOWN520v3vgk0Lzioy/jItYgc1 hRkw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HqoIZ6RmabkLgEy8MxgQJCQ6TI4DrSKYBcfjgscznRQ=; b=jcfo7cyMnF0r+JeG2xZkH7fGP/VYZI2HJgygMrFhNcEPQX+ruCq7et45oWIAp+j3x+ IDnY6j/t7iTHfc+fW5+dsAN3vP5yEf6wYMtwiDDX37jM+AN4NQm8xZUu9PhVOs+PiQsJ fYVYvXjVynLhsIzS61L6U8gEXLlNTlUU+fjSSTVXjbwZCsGLHVVl6Rc3PGx3Q8qVu7HR IWxmnGwpMmNcdg/BZnYH+JN+Pt4+ftcOwmLG8ykGqgBoPwjuOc2nz7/i2SlYxS4XV+lQ Ug2QTOEzmIovYK6tVlUSEfN008wEBCs6O9GpI5o8ivBBcgnq9EwLpuHA6S2wr2zDCLhz s+5w==
X-Gm-Message-State: AOAM532V46Xfe5rsmZ09uUmJRe85dxlZxVTuMjAwcD3xHgnbU2ts5TQx 0z86+3IvKMy05aYU5gii1CzVSo0mELm6DC0yniToXg==
X-Google-Smtp-Source: ABdhPJyasyWYYpHo2mcwOWP/f6LW/GkAr8xse0hKGaWQv5ZxdiMmumGnP/u/I31ENoZyyOqbjytiVURGS3EtfpMpqso=
X-Received: by 2002:ac8:44cc:: with SMTP id b12mr5059010qto.382.1615418992724; Wed, 10 Mar 2021 15:29:52 -0800 (PST)
MIME-Version: 1.0
References: <CANh-dX=C9J9NVXrJyyTfnMdSWaFxg6rkWKX6HuTF0TeyK=jOCA@mail.gmail.com> <1db89591-3852-4b6e-8c7b-0e9407409edf@gmail.com>
In-Reply-To: <1db89591-3852-4b6e-8c7b-0e9407409edf@gmail.com>
From: Jeffrey Yasskin <jyasskin@google.com>
Date: Wed, 10 Mar 2021 15:29:41 -0800
Message-ID: <CANh-dXmt5gzTFMh_bMCyNv456x7=0iHtBx2oKB8XpDd6bFmHaw@mail.gmail.com>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
Cc: Jeffrey Yasskin <jyasskin=40google.com@dmarc.ietf.org>, Tools Discussion <tools-discuss@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000003a228b05bd370b7e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/k4IJDWnqDAonC1YHxCAjIuM1IAQ>
Subject: Re: [Tools-discuss] Links from HTML I-Ds to datatracker/latest versions
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: Wed, 10 Mar 2021 23:29:57 -0000

On Wed, Mar 10, 2021 at 2:15 PM Brian E Carpenter <
brian.e.carpenter@gmail.com> wrote:

> On 11-Mar-21 09:02, Jeffrey Yasskin wrote:
> > I've noticed that the native-HTML version of internet drafts, like
> https://www.ietf.org/archive/id/draft-yasskin-wpack-bundled-exchanges-03.html
> >
> > 1) Don't link back to the datatracker's description of the draft:
> https://datatracker.ietf.org/doc/draft-yasskin-wpack-bundled-exchanges/
> > 2) Don't link to any later versions of the draft:
> https://www.ietf.org/archive/id/draft-yasskin-wpack-bundled-exchanges-04.html
> > 3) Don't have an easy way to find a version-independent URL, like the
> htmlized version provides at
> https://datatracker.ietf.org/doc/html/draft-yasskin-wpack-bundled-exchanges
> .
> >
> > This makes it dangerous to link to native-HTML versions of I-Ds because
> readers don't have any way to realize that they're reading an old version.
>
> Really? When I tried with your draft -03, the links to updated drafts gave
> 404 errors.
>
> > I haven't dug into which tools would need to change to provide such
> links. Probably both xml2rfc and the datatracker itself? Are there issues
> with the /archive/ path segment that might imply these files can never
> change to incorporate the fact that the latest available version does
> change?
>
> afaik, if your xml (v3) looks like this:
>
> <xi:include href="
> https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.foo-bar.xml
> "/>
>
> the html rendering will point to the current version at the time the xml
> file is converted, but via the tools server. The top bar there gives you
> the versions up to date. There's also a link to the tracker.
>
> (That will have to be changed of course when tools.ietf.org goes away.)
>
> Looking at your -04 draft, that's exactly how it is, so whatever caused
> the wrong links in the -03 draft seems to have been fixed already.
>

I think you might have confused the htmlized version (
https://datatracker.ietf.org/doc/html/draft-yasskin-wpack-bundled-exchanges-04),
which has the cross-links I want, with the native-HTML version (
https://www.ietf.org/archive/id/draft-yasskin-wpack-bundled-exchanges-04.html)
that has better typesetting and table of contents, but is missing the
cross-links I mentioned above. I'm not sure where the mention of
<xi:include> came from, as it's not in my XML version at all (
https://www.ietf.org/archive/id/draft-yasskin-wpack-bundled-exchanges-04.xml
).

Jeffrey