[rfc-i] xi:includes in references

Miek Gieben miek at miek.nl
Tue Jan 20 04:20:10 PST 2015


[ Quoting <julian.reschke at gmx.de> in "Re: [rfc-i] xi:includes in referenc..." ]
>
>On 2015-01-20 12:31, Miek Gieben wrote:
>> Hello,
>>
>> 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"/>
>>      ....
>>
>> However:
>>
>>      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
>> "referencegroup"
>>
>> According to section B.1 this should be valid?
>
>No, the grammar expresses validity *after* XInclude expansion.

OK.

>> 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

/Miek

--
Miek Gieben


More information about the rfc-interest mailing list