Re: [xml2rfc] url ref confusion

Henrik Levkowetz <henrik@levkowetz.com> Fri, 19 April 2019 18:19 UTC

Return-Path: <henrik@levkowetz.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 D79BB1200B9 for <xml2rfc@ietfa.amsl.com>; Fri, 19 Apr 2019 11:19:21 -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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 cy9-Peuqs8hC for <xml2rfc@ietfa.amsl.com>; Fri, 19 Apr 2019 11:19:20 -0700 (PDT)
Received: from zinfandel.tools.ietf.org (zinfandel.tools.ietf.org [IPv6:2001:1890:126c::1:2a]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 899DA120103 for <xml2rfc@ietf.org>; Fri, 19 Apr 2019 11:19:20 -0700 (PDT)
Received: from h-202-242.a357.priv.bahnhof.se ([158.174.202.242]:59011 helo=tannat.localdomain) by zinfandel.tools.ietf.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <henrik@levkowetz.com>) id 1hHY6Y-0002pC-76; Fri, 19 Apr 2019 11:19:19 -0700
To: Randy Bush <randy@psg.com>, XML2RFC Interest Group <xml2rfc@ietf.org>
References: <m28sw5q3k4.wl-randy@psg.com>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <3b80d5f4-93bb-ae0b-bcc1-1879f558594c@levkowetz.com>
Date: Fri, 19 Apr 2019 20:19:03 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <m28sw5q3k4.wl-randy@psg.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="LP5DiDdgB3QdjrHN0aUoWVguwIHFgdePp"
X-SA-Exim-Connect-IP: 158.174.202.242
X-SA-Exim-Rcpt-To: xml2rfc@ietf.org, randy@psg.com
X-SA-Exim-Mail-From: henrik@levkowetz.com
X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000)
X-SA-Exim-Scanned: Yes (on zinfandel.tools.ietf.org)
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/QaWsgx3iyelwiXdPJ3KC-Rrtg_8>
Subject: Re: [xml2rfc] url ref confusion
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: Fri, 19 Apr 2019 18:19:22 -0000

Hi Randy,

On 2019-04-19 19:59, Randy Bush wrote:
> https://www.rfc-editor.org/materials/FAQ-xml2rfcv3.html#name-how-do-i-reference-a-url
> says
> 
>     <reference anchor="W3C" target="https://www.w3.org/">
>         <front>
>             <title>World Wide Web Consortium (W3C)</title>
>             <author/>
>         </front>
>     </reference>

Huh.  That has the same problem as your <reference>:

> i try
> 
>     <reference anchor="Clos" target="https://en.wikipedia.org/wiki/Clos_network/">
>       <front>
>         <title>Clos Network</title>
> 	<author/>
>         </front>
>       </reference>
> 
> i get
> 
> Error: Unable to validate the XML document: foo.xml
> <string>: Line 1552: Element front content does not follow the DTD,
> expecting (title , author+ , date , area* , workgroup* , keyword* ,
> abstract? , note*), got (title author)

... which is that the <date> element is not optional.  If you look at
the error message, it says ... expecting (title , author+ , date , ...;
i.e., with no '*' or '?' after 'date', it cannot be omitted.  If you
add a <date/> you should do better.


Best regards,

	Henrik