[rfc-i] XInclude example

Julian Reschke julian.reschke at gmx.de
Thu Apr 3 00:35:23 PDT 2014


See 
<http://trac.tools.ietf.org/tools/xml2rfc/trac/browser/vocabulary/research/xinclude.xml:

-- snip --
<?xml version="1.0" encoding="UTF-8"?>
<rfc category="std" docName="sample" ipr="trust200902" 
xmlns:xi="http://www.w3.org/2001/XInclude">

     <front>
         <title>XInclude Example</title>
         <author initials='A.Y.' surname="Mous" fullname='Anon Y. Mous'>
             <organization/>
         </author>
         <date/>
         <abstract><t>XInclude Example.</t></abstract>
     </front>

<middle>
<section title="Foo">
</section>
</middle>
<back>
   <references>
     <xi:include 
href="http://xml.resource.org/public/rfc/bibxml/reference.RFC.0001.xml"/>
   </references>
</back>

</rfc>
-- snip --

To test with an XInclude-enabled processor:

$ cd .../xml2rfc/vocabulary/research
$ xsltproc xsltproc -xinclude ../tools/rfc2629.xslt xinclude.xml > 
xinclude.html

...done.

Best regards, Julian


More information about the rfc-interest mailing list