[rfc-i] xml2rfcv3-23 rnc update

julian.reschke at gmx.de (Julian Reschke) Sat, 05 September 2015 09:20 UTC

From: "julian.reschke at gmx.de"
Date: Sat, 05 Sep 2015 11:20:27 +0200
Subject: [rfc-i] xml2rfcv3-23 rnc update
In-Reply-To: <20150905085204.GA10295@miek.nl>
References: <20150905085204.GA10295@miek.nl>
Message-ID: <55EAB3DB.4000009@gmx.de>

On 2015-09-05 10:52, Miek Gieben wrote:
> Hello,
>
> Just a small update. With mmark[*] I've been encoding some of the older
> April
> 1st RFCs into markdown and I am now able to convert them to both XML2RFC
> v2 and
> XML2RFC v3 (see the rfc/ subdir in the repo).
>
> For V3 output I am of course interested in validating the generated XML.
>
> RFC748:
>      % make rfc748.md.3.xml
>      ../mmark/mmark -xml -page rfc748.md > rfc748.md.3.xml
>      % jing -c ../xml2rfcv3.rnc rfc748.md.3.xml
>
> RFC1149:
>      % make rfc1149.md.3.xml
>      ../mmark/mmark -xml -page rfc1149.md > rfc1149.md.3.xml
>      % jing -c ../xml2rfcv3.rnc rfc1149.md.3.xml
>
> RFC3514: (first one with actuall refences)
>      % make rfc3514.md.3.xml
>      ../mmark/mmark -xml -page rfc3514.md > rfc3514.md.3.xml
>      rfc3514.md.3.xml:243:86: error: element "xi:include" not allowed
> anywhere;
>      expected the element end-tag or element "reference" or
> "referencegroup"
>      ...
>      rfc3514.md.3.xml:186:34: error: IDREF "RFC2460" without matching ID
>      ...
>
> According to -23 Section B.1. this should work.
> ...

The grammar is supposed to represent the vocabulary *after* processing 
xinclude directives.

Best regards, Julian