Re: [xml2rfc-dev] <artset> feedback

Henrik Levkowetz <henrik@levkowetz.com> Fri, 10 May 2019 09:25 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 CEA46120086 for <xml2rfc-dev@ietfa.amsl.com>; Fri, 10 May 2019 02:25:33 -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 9Rr59i6qSI47 for <xml2rfc-dev@ietfa.amsl.com>; Fri, 10 May 2019 02:25: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 4A47D120052 for <xml2rfc-dev@ietf.org>; Fri, 10 May 2019 02:25:32 -0700 (PDT)
Received: from h-202-242.a357.priv.bahnhof.se ([158.174.202.242]:50957 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 1hP1mV-00070j-M4; Fri, 10 May 2019 02:25:32 -0700
To: Julian Reschke <julian.reschke@gmx.de>, XML Developer List <xml2rfc-dev@ietf.org>
References: <eb78385f-9ac0-01e8-8b4a-572d8890c1a1@greenbytes.de> <19522381-3529-e66e-adb4-3a1c7d5ee9ea@gmx.de> <e8791b44-738a-9ebe-946e-4b02a6635dc2@levkowetz.com> <df6742ec-d60b-0835-ad87-a297531a2771@gmx.de>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <4fe5ca5e-4fbf-6ca8-36c7-1d1b93dfc07a@levkowetz.com>
Date: Fri, 10 May 2019 11:25:23 +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: <df6742ec-d60b-0835-ad87-a297531a2771@gmx.de>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="1vvTispQ5aHUoScKLKSUAKAh742TOmJwt"
X-SA-Exim-Connect-IP: 158.174.202.242
X-SA-Exim-Rcpt-To: xml2rfc-dev@ietf.org, 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/GHXHzoDE6VuS1mwdJMjW5AA8lH4>
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:25:34 -0000

On 2019-05-10 11:19, Julian Reschke wrote:
> On 10.05.2019 11:16, Henrik Levkowetz wrote:
>> 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?
> 
> Yes. What makes you think it's not?

When did v2 get support for handling both a 'src' attribute and textual
content in <artwork>?


	Henrik