[rfc-i] draft-iab-xml2rfc-02 - alignment of sourcecode

julian.reschke at gmx.de (Julian Reschke) Tue, 02 February 2016 18:58 UTC

From: julian.reschke at gmx.de (Julian Reschke)
Date: Tue, 2 Feb 2016 19:58:31 +0100
Subject: [rfc-i] draft-iab-xml2rfc-02 - alignment of sourcecode
In-Reply-To: <0E9EA27C-4C37-4E78-9D1F-00F015DFAFE7@att.com>
References: <56ABB36D.6030500@alum.mit.edu> <6A914091-5ADA-4B52-B622-BF76BCC9E6FA@vpnc.org> <56B0F593.1030903@gmx.de> <0E9EA27C-4C37-4E78-9D1F-00F015DFAFE7@att.com>
Message-ID: <56B0FC57.6000908@gmx.de>

On 2016-02-02 19:41, HANSEN, TONY L wrote:
> ...
>> On 2016-02-02 18:18, Paul Hoffman wrote:
>>> ? Paul Kyzivat wrote:
>>>> For instance, consider ABNF source code. I would like the actual
>>>> content of the sourcecode to be valid ABNF. That means that the first
>>>> line of each rule must have no leading whitespace. So any indentation
>>>> needs to come from the "align" attribute. Generally I would probably
>>>> want to have the rules start out aligned with the current indent
>>>> level, or maybe a bit more.
>>>
>>> It sounds like you want "indent", not "align", but even then, I'm not
>>> clear why. The sourcecode for your ABNF can have spaces at the beginning
>>> of the lines, can't it?
>>> ...
>>
>> I'm with Paul. It would be good if the author wouldn't need to indent
>> the artwork contents herself (whether it affects validity or not).
>>
>> In rfc2629.xslt, I have the attribute x:indent-with on <artwork> (see
>> <http://greenbytes.de/tech/webdav/rfc2629xslt/rfc2629xslt.html#ext-rfc2629.artwork>,
>> although the explanation isn't that good).
>
> Which Paul? Paul Hoffman or Paul Kyzivat? Sounds like the latter, given that you saw a similar need in your processor.

Good catch :-). Yes, Paul K.

> I agree with the need, and think ?indent? has the right semantics. It?s a purely visual hint for the processor.

Best regards, Julian