Re: [xml2rfc] Point about --v2v3 option

Carsten Bormann <cabo@tzi.org> Sun, 22 March 2020 16:56 UTC

Return-Path: <cabo@tzi.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 D977E3A086C for <xml2rfc@ietfa.amsl.com>; Sun, 22 Mar 2020 09:56:24 -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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, 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 tz_mBKG7pGRD for <xml2rfc@ietfa.amsl.com>; Sun, 22 Mar 2020 09:56:21 -0700 (PDT)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AD8CE3A0775 for <xml2rfc@ietf.org>; Sun, 22 Mar 2020 09:56:20 -0700 (PDT)
Received: from [192.168.217.147] (p548DCD70.dip0.t-ipconnect.de [84.141.205.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 48lkDf6shJz102D; Sun, 22 Mar 2020 17:56:18 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <bf947fba-41a6-bb41-adf7-494e6bcc17c1@levkowetz.com>
Date: Sun, 22 Mar 2020 17:56:18 +0100
Cc: Robert Moskowitz <rgm@htt-consult.com>, "xml2rfc@ietf.org" <xml2rfc@ietf.org>
X-Mao-Original-Outgoing-Id: 606588978.2595201-4c0b0ad4a5d08f7f448a6d6fdfc38df2
Content-Transfer-Encoding: quoted-printable
Message-Id: <8680B1C7-7A59-4F3D-B3C1-21580A2F4B3A@tzi.org>
References: <5b204bef-17a1-c877-751f-c722b9ed852b@htt-consult.com> <bf947fba-41a6-bb41-adf7-494e6bcc17c1@levkowetz.com>
To: Henrik Levkowetz <henrik@levkowetz.com>
X-Mailer: Apple Mail (2.3608.60.0.2.5)
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/5J1Px-IXThC8LnQ9sX1QpBzOehE>
Subject: Re: [xml2rfc] Point about --v2v3 option
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, 22 Mar 2020 16:56:25 -0000

I can’t answer for Bob, but to me it was indeed feeling a bit strange that I can’t get xml2rfc to expect v2 only input and reliably act on it with v2 rules.  I don’t think that is a big problem going forward, but it was weird in the transition.  Look at

https://tools.ietf.org/rfcdiff?url2=draft-ietf-core-senml-more-units-06.txt

for an example why surprise switching to v3 rules can be disconcerting (even if it wasn’t caused by xml2rfc acting on non-v2 input in this particular case).

Again, I don’t think this is much of a problem now going forward.

Grüße, Carsten


> On 2020-03-22, at 17:34, Henrik Levkowetz <henrik@levkowetz.com> wrote:
> 
> Hi Bob,
> 
> On 2020-03-22 15:19, Robert Moskowitz wrote:
>> A few weeks back, I was editing my old draft ietf-hep-dex and since the 
>> xml in there goes back years, and I was having problems (remember that 
>> pagebreak question?), I thought to 'force' v2 by:
>> 
>> xml2rfc --v2
>> 
>> Guess what, no such option but it acted as:
>> 
>> xml2rfc --v2v3
>> 
>> !!!
>> 
>> Something you may want to fix.
>> 
>> I bring this up now, as I did it again Friday.  I was rushed getting a 
>> bunch of things done and it kind of slipped out.  No harm as I knew 
>> about it from past mess ups.
> 
> Well, there's no way to force 'v2' for a draft with v3 XML, and unless
> you explicitly indicate --v3, a draft with v2 xml will be not be converted
> to v3 during processing.
> 
> Abbreviations of long options are accepted as long as they are unique,
> which is why --v2 did something, instead of being rejected.
> 
> Before going further, I think I'd better ask what you intended to happen
> with --v2:  Did you have a draft with v3 XML, or was it just insurance
> against processing through the v3 formatters?
> 
> 
> Regards,
> 
> 	Henrik
> 
> _______________________________________________
> xml2rfc mailing list
> xml2rfc@ietf.org
> https://www.ietf.org/mailman/listinfo/xml2rfc