[Tools-discuss] Suppressing or eliminating warnings from xml2rfc?

Paul Hoffman <paul.hoffman@vpnc.org> Fri, 03 March 2023 15:52 UTC

Return-Path: <paul.hoffman@vpnc.org>
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 34BDFC14CF0D for <tools-discuss@ietfa.amsl.com>; Fri, 3 Mar 2023 07:52:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.495
X-Spam-Level:
X-Spam-Status: No, score=-0.495 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, TVD_SUBJ_NUM_OBFU_MINFP=1, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pqo5x1km1fMZ for <tools-discuss@ietfa.amsl.com>; Fri, 3 Mar 2023 07:52:00 -0800 (PST)
Received: from mail.proper.com (Opus1.Proper.COM [207.182.41.91]) (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 B40A6C14F738 for <tools-discuss@ietf.org>; Fri, 3 Mar 2023 07:52:00 -0800 (PST)
Received: from [10.32.60.123] (76-209-242-70.lightspeed.mtryca.sbcglobal.net [76.209.242.70]) (authenticated bits=0) by mail.proper.com (8.15.2/8.15.2) with ESMTPSA id 323FtHCI082315 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <tools-discuss@ietf.org>; Fri, 3 Mar 2023 08:55:17 -0700 (MST) (envelope-from paul.hoffman@vpnc.org)
X-Authentication-Warning: mail.proper.com: Host 76-209-242-70.lightspeed.mtryca.sbcglobal.net [76.209.242.70] claimed to be [10.32.60.123]
From: Paul Hoffman <paul.hoffman@vpnc.org>
To: Tools Team Discussion <tools-discuss@ietf.org>
Date: Fri, 03 Mar 2023 07:51:59 -0800
X-Mailer: MailMate (1.14r5937)
Message-ID: <D7064FBD-FA92-4BC9-AB16-1BCA4901F19D@vpnc.org>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/Xi80pHCbwmExyx4ogmAlGV7bXhc>
Subject: [Tools-discuss] Suppressing or eliminating warnings from xml2rfc?
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.39
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: Fri, 03 Mar 2023 15:52:05 -0000

Greetings again. I have gotten an XML file from the RPC to use as the basis of a -bis document. When I process it with xml2rfc 3.16.0, I get a slew of warnings that I would prefer not to see:

Warning: /Users/paul.hoffman/Library/Python/3.11/lib/python/site-packages/xml2rfc/templates/rfc2629-xhtml.ent is no longer needed as the special processing of non-ASCII characters has been superseded by direct support for non-ASCII characters in RFCXML.
Warning: /Users/paul.hoffman/Library/Python/3.11/lib/python/site-packages/xml2rfc/templates/rfc2629-other.ent is no longer needed as the special processing of non-ASCII characters has been superseded by direct support for non-ASCII characters in RFCXML.
...repeated three more times...

There doesn't seem to be a way to suppress these other than -q, which also suppresses the desired announcement at the end that the draft was written out.

The file from the RPC starts with:
<?xml version="1.0" encoding="US-ASCII"?>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY rfc1034 PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.1034.xml">
...
]>

--Paul Hoffman