[rfc-i] xi:includes in references

Julian Reschke julian.reschke at gmx.de
Tue Jan 20 04:10:22 PST 2015


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.

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

Best regards, Julian


More information about the rfc-interest mailing list