[xml2rfc] Novice bad user on device, or Catch-22?

"David R. Oran" <daveoran@orandom.net> Mon, 20 January 2020 20:00 UTC

Return-Path: <daveoran@orandom.net>
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 6EE0D12082C for <xml2rfc@ietfa.amsl.com>; Mon, 20 Jan 2020 12:00:42 -0800 (PST)
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, HTML_MESSAGE=0.001, 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 cnb5pJXosY06 for <xml2rfc@ietfa.amsl.com>; Mon, 20 Jan 2020 12:00:36 -0800 (PST)
Received: from spark.crystalorb.net (spark.crystalorb.net [IPv6:2607:fca8:1530::c]) (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 96A731208AD for <xml2rfc@ietf.org>; Mon, 20 Jan 2020 12:00:36 -0800 (PST)
Received: from [192.168.15.102] ([IPv6:2601:184:407f:80ce:3498:cbc1:44fd:d28c]) (authenticated bits=0) by spark.crystalorb.net (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id 00KK0VOH009554 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=NO) for <xml2rfc@ietf.org>; Mon, 20 Jan 2020 12:00:33 -0800
From: "David R. Oran" <daveoran@orandom.net>
To: xml2rfc@ietf.org
Date: Mon, 20 Jan 2020 15:00:26 -0500
X-Mailer: MailMate (1.13.1r5676)
Message-ID: <87E86D51-F37A-4800-BC14-6AA7E5E7EA4A@orandom.net>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_MailMate_1ED7FB47-97D0-48E5-AF8C-5FC249BD1924_="
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/08tM38FXPkaNDS_oy8MjzJybmx0>
Subject: [xml2rfc] Novice bad user on device, or Catch-22?
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, 20 Jan 2020 20:00:49 -0000

I have a new Internet Draft to write, so I decided to bite the bullet 
and do it in V3. Rather than write in V2 and try the converter, I 
started out right away with V3 syntax. I didn’t get very far. I tried 
both the most recent xml2rfc by installing it on my machine, and the web 
tool and got identical errors.

If I follow the described syntax in RFC7991, the RFC Editor FAQ in 
https://ftp.ripe.net/rfc/v3test/FAQ-2019-02.html and the example in 
draft-hoffman-rfcexamples-latest as below:

	<?xml version="1.0" encoding="US-ASCII"?>
	<!DOCTYPE rfc SYSTEM 'rfc2629.dtd'>

	<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
	<?rfc strict="yes" ?>
	<?rfc toc="yes"?>
	<?rfc tocdepth="4"?>
	<?rfc symrefs="yes" ?>
	<?rfc sortrefs="yes" ?>
	<?rfc compact="yes" ?>
	<?rfc subcompact="no" ?>
	<rfc
		version=‘3’
		ipr='trust200902'
		category='exp'
		submissionType='IRTF'
		docName='draft-oran-icnrg-reflexive-forwarding-00'
		xml:lang='en' xmlns:xi="https://www.w3.org/2001/XInclude">

	<front>
		<seriesInfo name='Internet-Draft' 
value='draft-oran-icnrg-reflexive-forwarding-00'/>
	    <title abbrev='ICN Reflexive Forwarding'>Reflexive Forwarding for 
CCNx and NDN Protocols
	    </title>



I get

	% xml2rfc draft-oran-icnrg-reflexive-forwarding.xml
	Incompatible schema information: found "rfc2629.dtd" in <DOCTYPE> of a 
version 3 file.

If I leave off the “version=‘3’, as below

	<?xml version="1.0" encoding="US-ASCII"?>
	<!DOCTYPE rfc SYSTEM 'rfc2629.dtd'>
	<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
	<?rfc strict="yes" ?>
	<?rfc toc="yes"?>
	<?rfc tocdepth="4"?>
	<?rfc symrefs="yes" ?>
	<?rfc sortrefs="yes" ?>
	<?rfc compact="yes" ?>
	<?rfc subcompact="no" ?>

	<rfc
		ipr='trust200902'
		category='exp'
		submissionType='IRTF'
		docName='draft-oran-icnrg-reflexive-forwarding-00'
		xml:lang='en' xmlns:xi="https://www.w3.org/2001/XInclude">

	<front>
		<seriesInfo name='Internet-Draft' 
value='draft-oran-icnrg-reflexive-forwarding-00'/>
	    <title abbrev='ICN Reflexive Forwarding'>Reflexive Forwarding for 
CCNx and NDN Protocols
	    </title>

I get:

		xml2rfc draft-oran-icnrg-reflexive-forwarding.xml
		Error: Unable to validate the XML document: 
draft-oran-icnrg-reflexive-forwarding.xml
		 <string>: Line 23: No declaration for attribute xmlns:xi of element 
rfc
		 <string>: Line 25: Element front content does not follow the DTD, 
expecting (title , author+ , date , area* , workgroup* , keyword* , 
abstract? , note*), got (seriesInfo title author author date area 
workgroup keyword keyword abstract )
		 <string>: Line 81: Element section content does not follow the DTD, 
expecting ((t | figure | texttable | iref)* , section*), got (name t )
		 <string>: Line 81: Element section does not carry attribute title
		 <string>: Line 81: No declaration for element name
		 <string>: Line 85: Element section content does not follow the DTD, 
expecting ((t | figure | texttable | iref)* , section*), got (name t )
		 <string>: Line 85: Element section does not carry attribute title
		 <string>: Line 85: No declaration for element name
		 <string>: Line 94: Element section content does not follow the DTD, 
expecting ((t | figure | texttable | iref)* , section*), got (name t 
section section )
		 <string>: Line 94: Element section does not carry attribute title
		 <string>: Line 94: No declaration for element name
		 <string>: Line 97: Element section content does not follow the DTD, 
expecting ((t | figure | texttable | iref)* , section*), got (name t 
table )
		 <string>: Line 97: Element section does not carry attribute title
		 <string>: Line 97: No declaration for element name
		 <string>: Line 98: No declaration for attribute keepWithNext of 
element t
		 <string>: Line 99: No declaration for element table
		 <string>: Line 99: No declaration for attribute title of element 
table

Clue bat please?

DaveO