Re: [xml2rfc-dev] <artset> feedback

Henrik Levkowetz <henrik@levkowetz.com> Fri, 10 May 2019 09:16 UTC

Return-Path: <henrik@levkowetz.com>
X-Original-To: xml2rfc-dev@ietfa.amsl.com
Delivered-To: xml2rfc-dev@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 38D0012008C for <xml2rfc-dev@ietfa.amsl.com>; Fri, 10 May 2019 02:16:34 -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 g6uwfiyW6-sZ for <xml2rfc-dev@ietfa.amsl.com>; Fri, 10 May 2019 02:16:32 -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 A9AED120086 for <xml2rfc-dev@ietf.org>; Fri, 10 May 2019 02:16:32 -0700 (PDT)
Received: from h-202-242.a357.priv.bahnhof.se ([158.174.202.242]:50892 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 1hP1dm-0000BZ-2p; Fri, 10 May 2019 02:16:31 -0700
To: Julian Reschke <julian.reschke@gmx.de>, Julian Reschke <julian.reschke@greenbytes.de>, XML Developer List <xml2rfc-dev@ietf.org>
References: <eb78385f-9ac0-01e8-8b4a-572d8890c1a1@greenbytes.de> <19522381-3529-e66e-adb4-3a1c7d5ee9ea@gmx.de>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <e8791b44-738a-9ebe-946e-4b02a6635dc2@levkowetz.com>
Date: Fri, 10 May 2019 11:16:13 +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: <19522381-3529-e66e-adb4-3a1c7d5ee9ea@gmx.de>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="kFg1wQ5akBiA13U8gxXFuJ1BdN3hLm86K"
X-SA-Exim-Connect-IP: 158.174.202.242
X-SA-Exim-Rcpt-To: xml2rfc-dev@ietf.org, julian.reschke@greenbytes.de, julian.reschke@gmx.de
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-dev/B8r1jTKucVQh_j9Ye46b0hDpTY0>
Subject: Re: [xml2rfc-dev] <artset> feedback
X-BeenThere: xml2rfc-dev@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion about particulars of xml2rfc V3 design, development and code." <xml2rfc-dev.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc-dev>, <mailto:xml2rfc-dev-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc-dev/>
List-Post: <mailto:xml2rfc-dev@ietf.org>
List-Help: <mailto:xml2rfc-dev-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc-dev>, <mailto:xml2rfc-dev-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 10 May 2019 09:16:34 -0000

Hi Julian,

On 2019-05-10 10:46, Julian Reschke wrote:
> On 09.05.2019 13:24, Julian Reschke wrote:
>> ...
> 
> 5. Preptool behavior
> 
> So the motivation for <artset> is:
> 
>>    The way <artwork> has been specified to handle the presence of both
>>    SVG artwork and text fallback (in Section 2.5 of [RFC7991]) has the
>>    result that any SVG content has to be placed as a data: URL in the
>>    "src" attribute when an ascii-art fallback is present.  This makes
>>    the SVG effectively uneditable once the preptool has been run, even
>>    if the SVG artwork was originally provided as a regular SVG XML file
>>    external to the document XML file.
> 
> <https://tools.ietf.org/html/draft-levkowetz-xml2rfc-v3-implementation-notes-08#section-3.1.1>
> 
> So I was under the impression that the preptool would deal with this by
> inserting <artset> elements when needed, and I was confused because the
> documentation doesn't say so.
> 
> Testing with:
> 
>> <artwork type="svg" src="rect.svg">
>> +-+
>> | |
>> +-+</artwork>
> 
> and xml2rfc --v3 however gives:
> 
>> foo.xml(225): Error: Found <artwork> with both a 'src' attribute and content.  Please use <artset> with multiple <artwork> instances instead.
>> foo.xml(475): Error: When looking for the name of "     ", got: no such name
> 
> So something that was perfectly valid before is now a fatal error. Is
> this intentional or something that is on the todo list?

"Before" meaning at which point in time?  Are you claiming this is valid v2?

> IMHO, this input is perfectly ok (and indeed what authors would want to
> use), and the preptool should rewrite that if needed.

??  The preptool isn't in the business of converting invalid input to valid.

What you have above is invalid v2, valid according to RFC 7991, but not
valid after the introduction of <artset>.


	Henrik