Randy Presuhn wrote:
Hi -
From: "Julian Reschke" <julian.reschke@xxxxxx>
To: "Randy Presuhn" <randy_presuhn@xxxxxxxxxxxxxx>
Cc: "IETF Discussion Mailing List" <ietf@xxxxxxxx>
Sent: Wednesday, July 15, 2009 10:13 AM
Subject: Re: Automatically updated Table of Contents with Nroff
...
And of course you can do that with xml2rfc as well; just automate the
process of converting the source file to something that can be included
into the XML source using the standard XML include mechanisms.
....
I couldn't find such mechanisms described anywhere the first time I used xml2rfc.
I just looked at the W3C website XML pages, and still am unable to find them.
How does one do a simple ".so" or a "#include" in XML?
<http://xml.resource.org>, see under "Helpful Hints / Including Files".
That page also links to <http://tools.ietf.org/tools/templates/> with
templates. Look, for instance, at
<http://tools.ietf.org/tools/templates/template-edu-xml2rfc.xml>.
In the XML spec, look for "external entities"
(<http://www.w3.org/TR/REC-xml/#sec-external-ent>).
There are other inclusion mechanisms; xml2rfc supports a processing
instruction:
<http://xml.resource.org/authoring/README.html#include.file.facility> (I
don't like this one as it is specific to the xml2rfc processor).
And then, because it's XML, preprocessing is easy; such as with XInclude
mentioned by Marc Petit-Huguenin.
Hope this helps, Julian
_______________________________________________
Ietf@xxxxxxxx
https://www.ietf.org/mailman/listinfo/ietf