Re: [xml2rfc-dev] <artset> feedback

Julian Reschke <julian.reschke@gmx.de> Fri, 10 May 2019 08:47 UTC

Return-Path: <julian.reschke@gmx.de>
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 E08181201C3 for <xml2rfc-dev@ietfa.amsl.com>; Fri, 10 May 2019 01:47:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net
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 3LF778tmJeMQ for <xml2rfc-dev@ietfa.amsl.com>; Fri, 10 May 2019 01:47:00 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9FA7C1201B7 for <xml2rfc-dev@ietf.org>; Fri, 10 May 2019 01:46:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1557478016; bh=swfQOWpAUqI9qVi42K7vrOzxnaMAY1i0eqbhIbdqhjg=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=i4M0T0JQFGoVlYYiMO7LIKYkGK5RdZ0YDfjYV0HXPYNOuV3OaIDJuz2k1e8+yb60U TfZCtwVd7XcwjyOvz5DiztJeuEyG7GPyF7Qcw1G8eL4bygPT9nimBQ7Xn9Waet+EPd zOlz6qIuHoTMoGUVl0wEJGX8vZqUfNV97+8aQCJc=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.124] ([84.171.148.236]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LvV1X-1ghSz51VpL-010fLp; Fri, 10 May 2019 10:46:56 +0200
To: Julian Reschke <julian.reschke@greenbytes.de>, XML Developer List <xml2rfc-dev@ietf.org>
References: <eb78385f-9ac0-01e8-8b4a-572d8890c1a1@greenbytes.de>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <19522381-3529-e66e-adb4-3a1c7d5ee9ea@gmx.de>
Date: Fri, 10 May 2019 10:46:56 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <eb78385f-9ac0-01e8-8b4a-572d8890c1a1@greenbytes.de>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:JN1zjMDCMe0aaLPPIjEI5z97N03/Ya28kVhNt8l0khfcHI9CcyC vE4uV/nWPOFPYhaIYOdcl+1iRTJbpM5vkmjhV/Rvqlzb2QBwH/IXiN8vnMquA2HUQtGI+49 dKF8iGBIPTrWr3i7X2Z69uMOsw6voODqOmmp5wC3/XrmwLdlfCn2gKWiI5Iph3Sm6HJdwlI 5jgz4KsQ5xSf2oDeEpDSg==
X-UI-Out-Filterresults: notjunk:1;V03:K0:KhvH/pKnJK0=:+ulzHtK518BCa7SCMtwJ0v zC4SN598EXALJKnTGfDl5f7rYi+SXE/8aLqw+W3aPsQenpTMp2b4sgWN2nx0+QbEN5vuFrFOt 5NSLsn8FLmd7seA34eTY1MOySCtrzfuvNA7NCC+sYE/wLBkR462pl7kJBinkFDQeNMW5gYo6o nF1owN+Hy2dWCbOnvsmdPlPEPT/YKh/18cBf8UPdGEb7nlS35jEVEhlhnfHl0TgnhuDQaLHCx UqKfpn9KGjDIbsDLlTqmwts0mYt0NXlplY87CTOqscPp3xQGnrQA8mmInyxdg4uVEAJZotklp 10SDZr+aojwknz1URhmhkLNdI/B+LyFzj2s/H4adTohQTqKjiYy99LSL/kgtbIIuXPG0tecGP fKjz/KZQN2/YxI+wUB/IXCD0qJIXgjcObvwhx3p3O/jDY6icxFRA1Ve03c/3co9qYvFcVOaJz gMqzsy+7+kLlEdBk8nzZv8mjULtDvYZZdF15tnb3aoT+z9dy+s7h2lqycAjJtKX4QVe45r2u9 Ql8Gwrc0vDIXA1B8l09q8RCs6ufsimsUz/wgos7F8lqKxeatiYEUUzme689aum29TbtpevSL+ wb3QxvPsBkFv4QxZY8iksF8kbt1gMHMVyrHnT3MdJvjBlgNfCDxxKrv+OQtY+qdB36kYv4VYp OHbcCLKeJZ0CMXSAV2dN1nBbHqp7we1jT72FGnw8xB6xNsTDP5qlMuwDlFJcRhAsGxbCOass1 nLVNWO43bAJEOBrLtggSVgHDFj+OqQiw+mKyl0pWgv8qBVsgtYYJGNCxwdt3n9FJBVnpq+GXq nZ5tV58Ovv3Nckj5N3yxScGtWlwxv5AZeb4yO61+Y43x3MhiA7t3JKVbApjedX6i5b4DWRnA9 iqS+oDFUbarW8geeBlkibjYuKiUL9SvGZn87P3oZbBUh613kWk8A66Tz8tJ4NTXeepfjwhR0o KT94alPJ61g==
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc-dev/T4UzHjICcoNHua76britH3uWERE>
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 08:47:02 -0000

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?

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

Best regards, Julian