[rfc-i] v3imp #8 Fragment tagging on sourcecode

julian.reschke at gmx.de (Julian Reschke) Sat, 24 January 2015 08:26 UTC

From: "julian.reschke at gmx.de"
Date: Sat, 24 Jan 2015 09:26:05 +0100
Subject: [rfc-i] v3imp #8 Fragment tagging on sourcecode
In-Reply-To: <54C32F11.6000505@seantek.com>
References: <20150123175511.GI2350@localhost> <54C28E3F.4040901@alum.mit.edu> <20150123181608.GJ2350@localhost> <54C294FC.5000204@alum.mit.edu> <20150123190759.GK2350@localhost> <54C2A4AF.6040108@seantek.com> <D8E02C3B-8C62-47D7-8947-B6B679DADD03@fugue.com> <54C2C021.3060909@alum.mit.edu> <20150123224935.GN2350@localhost> <54C2D525.8000609@alum.mit.edu> <20150123231735.GP2350@localhost> <54C32F11.6000505@seantek.com>
Message-ID: <54C3571D.3050507@gmx.de>

On 2015-01-24 06:35, Sean Leonard wrote:
> ...
> As a technical matter, I believe that the vocabulary should support all
> three.

Yes.

> As an editorial matter, avoiding duplication is superior: duplicated
> content raises the risk of inconsistency.

Unless the duplicated ABNF is built automatically; such as in RFC723*.

> Rather than wishing for interspersed rules in figures /plus/ a collected
> appendix, consider that a tool that processes the xml v3 format should
> be able to show various views of the content, including a view where all
> of the ABNF is concatenated together. Thus consider a RFC viewer
> (probably some web app) with three tabs: Specification, ABNF, and
> Attachments. The Specification tab just shows some regular text view(s).
> The ABNF tab collects all of the (inline) ABNF and displays them in a
> nice way--possibly with hyperlinks that show all cross-references to the
> main text. (Being ABNF-aware, the ABNF tab could also fold/eliminate
> duplicate rules, so if you really want to intersperse rules in the text
> AND have your appendix, the tool should be smart about that.) Similarly,
> the Attachments tab collects all of the attachments so they can all be
> saved to disk in one fell swoop.

I wouldn't want to require basic tool processors to understand ABNF (and 
other notations).

> Thus if you have an ABNF rule:
>
> <sourcecode type="abnf">
> abnfFooRule = 5*ALPHA
> </sourcecode>
>
> Then in some spec-text, you might say:
>
> <t>The <named type="abnf">abnfFooRule</named> is an identifier for foo
> things. It MUST be at least 5 letters.</t>
>
> ...in which case, the tools can automatically generate anchors and links
> between the <named> element and the abnfFooRule in the figure
> (<sourcecode> element)...no need to create unnecessary anchors. This is
> a specific motivator for Improvement #3.

In rfc2629.xslt I have a generic extensions for this type of linking, 
and we have used it to produce the HTML versions of the HTTP specs.

 > ...

Best regards, Julian