Re: [xml2rfc] Tables in XML V3 - A downgrade

Anders Rundgren <anders.rundgren.net@gmail.com> Sat, 14 September 2019 06:03 UTC

Return-Path: <anders.rundgren.net@gmail.com>
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 88F001200A1 for <xml2rfc@ietfa.amsl.com>; Fri, 13 Sep 2019 23:03:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 DYqylug5I8Ed for <xml2rfc@ietfa.amsl.com>; Fri, 13 Sep 2019 23:03:35 -0700 (PDT)
Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (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 F143512000F for <xml2rfc@ietf.org>; Fri, 13 Sep 2019 23:03:34 -0700 (PDT)
Received: by mail-wr1-x443.google.com with SMTP id i1so33385692wro.4 for <xml2rfc@ietf.org>; Fri, 13 Sep 2019 23:03:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=+HRy4gwrrsAVMvl5YTLGvs/Fss2Sj1/yI1fZltz1u7Y=; b=bpfmkH8MW4CroFDi6wM0XSwqeB24ma7MiBSdz1PD39whibHE7I4Lc/KV0IzpsozeeV ZglfFeMfvi3LitWVAngB/8LsMs2qHH4u6MvllLxU/gwpFw862l6o8ACkyBRMtDUDS/oj b3TeA7FQmgC3tvHRoMuT8wir/klRwzmiaXo0l6f08APwDq3RCrJjUsdJFl+8huFOLczp odFstcC2iLGstCa5Af+YrYjnJbB0xquA8z+ThBI8il8roBg5tJL7N2gQ6uiz0HVG/+WP dKSA6tabq3WB0g4+ac02MrSBys/wnElLC/wRECFkar21r3mJmAXNdJJmVhl8Vbf3iRXT gDag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+HRy4gwrrsAVMvl5YTLGvs/Fss2Sj1/yI1fZltz1u7Y=; b=QdoHP+evkb+P0+CJqGYHlwyTe7rWSOeZ1ZLJ+J8uM6i+QpKiuJp38SlJ8GRkDQ+X9c iTXcxSzD1yalZ0mAF48OfaVTK9TUY7T5Mf8p4+tPc/DJsACqPV7bQRlW4Hx8KZvYguah Z/pRwQ8j1IAeKW5CQptGOoU/xU0lmr4T5+1a+za7TVJ0yLApKYYV2zhgZhsV6R7+MPe9 C7qxb/d2W8VzBYFVgykWLt9SeM+vusVE6fZ0rt6aWTss6W6tTw3GeL4jX0CrIWDlJYU+ uMrTEVcMnI7izqG8O+TcJgCb8Ed766aBkn9nTxV19w7fvLiSBGJJFsLuCzBGDoQG29ZE nHsA==
X-Gm-Message-State: APjAAAXytRP1rKKt0RoCgr9SjR6b+3GPPaNRq59zUwyHFVGwGM74EYMf ZthAH5Po+C83/MJEsHtRCHjnQNu1
X-Google-Smtp-Source: APXvYqzd9QvTaM7viF9tkJZ6dJChKPfqjf/NpxPtugjV1LG9pgOcuOaApgS7gATvMYatOdqXo3qJ3A==
X-Received: by 2002:adf:dc91:: with SMTP id r17mr853898wrj.22.1568441013080; Fri, 13 Sep 2019 23:03:33 -0700 (PDT)
Received: from [192.168.1.79] (25.131.146.77.rev.sfr.net. [77.146.131.25]) by smtp.googlemail.com with ESMTPSA id d4sm3727440wrq.22.2019.09.13.23.03.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Sep 2019 23:03:32 -0700 (PDT)
To: Julian Reschke <julian.reschke@gmx.de>, Henrik Levkowetz <henrik@levkowetz.com>, xml2rfc@ietf.org
References: <94358f7d-3465-4161-1597-f1dbfba73b3f@gmail.com> <d44ac5f1-e4c2-1239-4bea-714a721115b8@levkowetz.com> <9ceb0697-c3ae-4f14-606c-4e089f04e2f2@gmail.com> <a4874a50-ffc3-80f5-cb42-09f82072644c@gmx.de> <04713f10-5c19-2ad5-2fa6-2db5f1ed5599@gmail.com> <f5554cd0-9c74-3a8c-5af9-25b947d499d8@gmx.de>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Message-ID: <7bb2a5fb-262d-39b5-3bb0-72e068923ea7@gmail.com>
Date: Sat, 14 Sep 2019 08:03:29 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <f5554cd0-9c74-3a8c-5af9-25b947d499d8@gmx.de>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/57LHahQKtCtbwY76J0sWSTvIzm4>
Subject: Re: [xml2rfc] Tables in XML V3 - A downgrade
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: Sat, 14 Sep 2019 06:03:38 -0000

Hi Julian,

On 2019-09-14 07:25, Julian Reschke wrote:
> On 14.09.2019 07:08, Anders Rundgren wrote:
>> On 2019-09-13 18:45, Julian Reschke wrote:
>>> On 13.09.2019 17:25, Anders Rundgren wrote:
>>>> ...
>>>> Well, RFC 7997 only talks about Unicode in author-provided data which is
>>>> not the case here.
>>>> The same goes for bullets lists.
>>>> ...
>>>
>>> I think we need to look at the role of the plain text output in the
>>> future. The original plan was to make it as bare as possible, not even
>>> paginated. Not sure why we deviated from that.
>>
>> Paginated RfcMarkup is rather reducing readability and browsers can
>> print fairly well these days.
> 
> Print plain text?

I just thought that pagination was intended for that purpose.
If not pagination has no purpose.

> 
>> RfcMarkup seems to be the current standard for communicating RFC.
>>
>> Making HTML the standard probably requires more work and PIs.  XHTML is
>> deprecated.
> 
> The "standard" is XML, in that the XML document is normative. HTML will
> be generated from it.

Sure, XML is the standard for creating RFC, I was rather referring
to links to published RFCs used everywhere.

HTML is currently NOT generated for V3 submissions.

> I don't get your point about PIs, nor the one about XHTML.


Since you as an author would like your precious text to be rendered
as good as possible, I guess that SVG would not be a part of RfcMarkup
making "line-art" variants a necessity.

PIs could be used to keep the XML intact.

XHTML is a deprecated W3C standard currently used by RFCs.  It is not
a problem but switching to HTML5 is preferable.

> 
>> New problems:
>> ------------
>> BTW, my recent XML V3 submission did not generate an HTML version at all!
>> My previous XML V2 submissions did this automatically.
>>
>> The HTML output for Web tool doesn't produce any output. It says it
>> doesn't find the file :-(
>> The URL input began to fail:
>> https://raw.githubusercontent.com/cyberphone/ietf-json-canon/gh-pages/xmlv3/draft-rundgren-json-canonicalization-scheme.xml
> 
> My local install of xml2rfc dies with a stack trace, one issue is the
> use of
> <https://greenbytes.de/tech/webdav/rfc7991.html#element.dl.attribute.spacing>
> which has been removed/changed but not yet documented in rfc7991bis.
> 
> Even after removing those, xml2rfc dies with:
> 
>> Traceback (most recent call last):
>>    File "/bin/xml2rfc", line 10, in <module>
>>      sys.exit(main())
>>    File "/usr/lib/python2.7/site-packages/xml2rfc/run.py", line 595, in main
>>      writer.write(filename)
>>    File "/usr/lib/python2.7/site-packages/xml2rfc/writers/html.py", line 253, in write
>>      html_tree = self.html_tree()
>>    File "/usr/lib/python2.7/site-packages/xml2rfc/writers/html.py", line 231, in html_tree
>>      html_tree = self.render(None, self.root)
>>    File "/usr/lib/python2.7/site-packages/xml2rfc/writers/html.py", line 309, in render
>>      res = func(h, x)
>>    File "/usr/lib/python2.7/site-packages/xml2rfc/writers/html.py", line 625, in render_rfc
>>      self.render(body, c)
>>    File "/usr/lib/python2.7/site-packages/xml2rfc/writers/html.py", line 309, in render
>>      res = func(h, x)
>>    File "/usr/lib/python2.7/site-packages/xml2rfc/writers/html.py", line 1546, in render_front
>>      entry(dl, 'Workgroup', wg.text)
>>    File "/usr/lib/python2.7/site-packages/xml2rfc/writers/html.py", line 1511, in entry
>>      dl.append( build.dd(*values, classes=cls))
>>    File "/usr/lib/python2.7/site-packages/xml2rfc/writers/html.py", line 93, in __call__
>>      elem = super(ClassElementMaker, self).__call__(tag, *children, **attrib)
>>    File "src/lxml/builder.py", line 226, in lxml.builder.ElementMaker.__call__
>> TypeError: bad argument type: NoneType(None)
> 
> You should submit a bug report.
> 
> Best regards, Julian
> 
> 
> 
>