[rfc-i] xi:includes in references
julian.reschke at gmx.de
Tue Jan 20 04:27:03 PST 2015
On 2015-01-20 13:20, Miek Gieben wrote:
> [ Quoting <julian.reschke at gmx.de> in "Re: [rfc-i] xi:includes in
> referenc..." ]
>> On 2015-01-20 12:31, Miek Gieben wrote:
>>> I output the following XML (show a snippet here):
>>> <references anchor="xxx-references-normative">
>>> <name>Normative References</name>
>>> <xi:include href="reference.RFC.7328.xml"/>
>>> <xi:include href="reference.RFC.2926.xml"/>
>>> <xi:include href="reference.I-D.draft-hoffman-xml2rfc-15.xml"/>
>>> mmark2rfc3.xml:368:73: error: element "xi:include" not allowed
>>> anywhere; expected the element end-tag or text
>>> mmark2rfc3.xml:506:44: error: element "xi:include" not allowed
>>> anywhere; expected the element end-tag or element "reference" or
>>> According to section B.1 this should be valid?
>> No, the grammar expresses validity *after* XInclude expansion.
>>> Also the snippet shown in B.1. for the references isn't valid in itself,
>>> as an
>>> "anchor" attribute and a <name> element should be included.
>> Should be included where?
> In the example in B.1. where the references are shown in conjunction
> with the xi:include's
Neither <name> nor @anchor are required on <references>. This is a bug
in the grammar (@anchor probably was confused with @pn).
Best regards, Julian
More information about the rfc-interest