Re: [xml2rfc-dev] Issues during SVG conversion

Henrik Levkowetz <henrik@levkowetz.com> Wed, 09 October 2019 06:10 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 EBE8D120019 for <xml2rfc-dev@ietfa.amsl.com>; Tue, 8 Oct 2019 23:10:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.604
X-Spam-Level: *
X-Spam-Status: No, score=1.604 tagged_above=-999 required=5 tests=[BAYES_50=0.8, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01] autolearn=no 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 Cp_znfEfMGuD for <xml2rfc-dev@ietfa.amsl.com>; Tue, 8 Oct 2019 23:10:25 -0700 (PDT)
Received: from zinfandel.tools.ietf.org (unknown [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 833DB120088 for <xml2rfc-dev@ietf.org>; Tue, 8 Oct 2019 23:10:25 -0700 (PDT)
Received: from h-202-242.a357.priv.bahnhof.se ([158.174.202.242]:56565 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 1iI5B2-0001UT-Va; Tue, 08 Oct 2019 23:10:25 -0700
To: Brian E Carpenter <brian.e.carpenter@gmail.com>, xml2rfc-dev@ietf.org
References: <8be895f4-392f-d055-32d3-a12a445f0897@gmail.com>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <5fe84461-f0c5-8f5d-1106-74c31e723520@levkowetz.com>
Date: Wed, 09 Oct 2019 08:10:17 +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: <8be895f4-392f-d055-32d3-a12a445f0897@gmail.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="kGQhEa6QELn4A2vs1F50kGlJS11adJCS7"
X-SA-Exim-Connect-IP: 158.174.202.242
X-SA-Exim-Rcpt-To: xml2rfc-dev@ietf.org, brian.e.carpenter@gmail.com
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/jEuFdyQIHTCGAYjSRq4oI6D3BAk>
Subject: Re: [xml2rfc-dev] Issues during SVG conversion
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: Wed, 09 Oct 2019 06:10:27 -0000

Hi Brian,

On 2019-10-09 03:18, Brian E Carpenter wrote:
> Hi,
> 
> Using the convertor at https://xml2rfc.tools.ietf.org/experimental.html, I get errors on two SVG elements that I believe are valid and conformant with RFC 7996. The SVG file passes the conformance check at https://xml2rfc.tools.ietf.org/experimental.html.
> 
> INPUT(366): Error: Invalid attribute stroke for element rect, at /rfc/middle/section[1]/figure[3]/artwork/*/*[7]/*/*/*/*/*[1]/*/*[1]
> 
> The SVG element is:
> 
> <rect class="BoundingBox" stroke="none" fill="none" x="7223" y="4047" width="15749" height="4446"/>
> 
> If I delete 'stroke="none"' the error message disappears, but I don't believe there is an error in the original SVG. That one I can work around, but:
> 
> INPUT(468): Error: Element text has extra content: tspan, at /rfc/middle/section[1]/figure[3]/artwork/*/*[7]/*/*/*/*/*[2]/*/*[97]/*
> 
> The SVG element is:
> 
> <text class="TextShape"><tspan class="TextParagraph" font-family="sans-serif" font-size="635px" font-weight="400"><tspan class="TextPosition" x="7600" y="15163"><tspan fill="black" stroke="none">CBOR</tspan></tspan></tspan></text>
> 
> Nested tspans appear to be completely legal, and since my drawing tool generated them, there is no workaround.
> 
> I can supply the full files on request.

Yes, please send files.  I suspect this could be a result of the restricted
SVG schema used.


Best regards,

	Henrik