[xml2rfc] Overstrict checking of ID and IDREF values

Roger Price <roger@rogerprice.org> Sun, 10 January 2021 11:41 UTC

Return-Path: <roger@rogerprice.org>
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 462373A0A2D for <xml2rfc@ietfa.amsl.com>; Sun, 10 Jan 2021 03:41:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.62
X-Spam-Level:
X-Spam-Status: No, score=-2.62 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-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 gy2zhMaIGFzq for <xml2rfc@ietfa.amsl.com>; Sun, 10 Jan 2021 03:41:32 -0800 (PST)
Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 92ED93A0A29 for <xml2rfc@ietf.org>; Sun, 10 Jan 2021 03:41:31 -0800 (PST)
X-Originating-IP: 78.243.124.66
Received: from maria (unknown [78.243.124.66]) (Authenticated sender: mailbox@rogerprice.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 1826760004 for <xml2rfc@ietf.org>; Sun, 10 Jan 2021 11:41:28 +0000 (UTC)
Date: Sun, 10 Jan 2021 12:41:28 +0100
From: Roger Price <roger@rogerprice.org>
X-X-Sender: rprice@maria.rogerprice.org
To: xml2rfc Mailing List <xml2rfc@ietf.org>
Message-ID: <alpine.DEB.2.20.2101101159540.26613@maria.rogerprice.org>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
X-Message-Flag: Supplemental report to reaper.nsa.gov. rc=0
MIME-Version: 1.0
Content-Type: text/plain; format="flowed"; charset="US-ASCII"
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/gkqCdzUxjlq65Ff84H0V5x8Dy-s>
Subject: [xml2rfc] Overstrict checking of ID and IDREF values
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: Sun, 10 Jan 2021 11:41:34 -0000

At line 159 of my markup I have:

  <t>Figure <xref target="fig:oview"></xref> shows a reference configuration
  in which the command/response protocol applies.
  </t>
  <figure anchor="fig:oview">
  <artwork align="center">

When I submit this to xml2rfc I get the error message:

  draft-rprice-UPS-management-protocol-00.rfc(159): Error: Type IDREF doesn't
      allow value 'fig:oview', at /rfc/middle/section[3]/t[1]/xref
  draft-rprice-UPS-management-protocol-00.rfc(159): Error: Element xref failed to
      validate attributes, at /rfc/middle/section[3]/t[1]/xref
  draft-rprice-UPS-management-protocol-00.rfc(162): Error: Invalid attribute
      anchor for element figure, at /rfc/middle/section[3]/figure[1]

ID and IDREF values are names, and the EBNF for XML 1.0 shows:

  [4] 	NameChar	::=	Letter | Digit | '.' | '-' | '_' | ':' |
                                 CombiningChar |  Extender
  [5] 	Name	::=	(Letter | '_' | ':') (NameChar)*

so fig:oview should be ok.  Roger