<?xml version="1.0" encoding="UTF-8"?><?rfc linefile="1:xml/complete/rfc2629.xml"?>
<!-- automatically generated by xml2rfc v1.32 on 2008-01-28T17:24:10Z -->
<!--
    This XML document is the output of clean-for-DTD.xslt; a tool that strips
    extensions to RFC2629(bis) from documents for processing with xml2rfc.
--><!-- 
(c) 1999 Marshall T. Rose
    All rights reserved.

This file is licenced under the same terms as xml2rfc, even though
running it through xml2rfc adds the more restrictive Internet Society
copyright notices.
-->
<?rfc toc="yes"?>
<!DOCTYPE rfc
  PUBLIC "" "rfc2629.dtd">
<rfc number="2629" obsoletes="" submissionType="IETF" updates="" category="info">
<front>
<title>Writing I-Ds and RFCs using XML</title>
<author initials="M.T." surname="Rose" fullname="Marshall T. Rose">
<organization>Invisible Worlds, Inc.</organization>
<address>
<postal>
<street>660 York Street</street>
<city>San Francisco</city> <region>CA</region> <code>94110</code>
<country>US</country>
</postal>
<phone>+1 415 695 3975</phone>
<email>mrose@not.invisible.net</email>
<uri>http://invisible.net/</uri>
</address>
</author>
<date month="June" year="1999"/>
<area>General</area>
<keyword>RFC</keyword>
<keyword>Request for Comments</keyword>
<keyword>I-D</keyword>
<keyword>Internet-Draft</keyword>
<keyword>XML</keyword>
<keyword>Extensible Markup Language</keyword>
<abstract><t>This memo presents a technique for using XML
(Extensible Markup Language)
as a source format for documents in the Internet-Drafts (I-Ds) and
Request for Comments (RFC) series.</t></abstract>
</front>
<middle>
<section title="Introduction" toc="default">
<t>This memo describes how to write a document for the I-D and RFC series
using <xref target="XML" format="default" pageno="false">the Extensible Markup Language</xref> (XML).
This memo has three goals:
<list style="numbers">
<t>To describe a simple XML Document Type Definition (DTD) that is
powerful enough to handle the simple formatting requirements of RFC-like
documents whilst allowing for meaningful markup of descriptive
qualities.</t>
<t>To describe software that processes XML source files,
including a tool that produces documents
conforming to <xref target="refs.RFC2223" format="default" pageno="false">RFC 2223</xref>,
HTML format, and so on.</t>
<t>To provide the proof-of-concept for the first two goals
(this memo was written using this DTD and produced using that
software).</t>
</list>
</t>
<t>It is beyond the scope of this memo to discuss the political
ramifications of using XML as a source format for RFC-like documents.
Rather,
it is simply noted that adding minimal markup to plain text:
<list style="symbols">
<t>allows the traditional production of textual RFC-like documents using
familiar editors;</t>
<t>requires some, albeit minimal, additions to existing software
environments; and,</t>
<t>permits information to be organized, searched, and retrieved
using both unstructured and structured mechanisms.</t>
</list>
</t>
</section>
<section title="Using the DTD to Write I-Ds and RFCs" toc="default">
<t>We do not provide a formal or comprehensive description of XML.
Rather,
this section discusses just enough XML to use a Document Type
Declaration (DTD) to write RFC-like documents.</t>
<t>If you're already familiar with XML,
skip to <xref target="rfc.dtd" format="default" pageno="false"/> to look at the DTD.</t>
<section anchor="xml_basics" title="XML basics" toc="default">
<t>There are very few rules when writing in XML,
as the syntax is simple.
There are five terms you'll need to know:
<list style="numbers">
<t>An "element" usually refers to a start tag, an end tag, and all the
characters in between,
e.g.,
"&lt;example&gt;text and/or nested elements&lt;/example&gt;"</t>
<t>An "empty element" combines the start tag and the end tag,
e.g.,
"&lt;empty/&gt;".
You don't find these in HTML.</t>
<t>An "attribute" is part of an element.
If present, they occur in the start tag, e.g.,
"&lt;example name='value'&gt;".
Of course,
they can also appear in empty elements, e.g.,
"&lt;empty name='value'/&gt;".</t>
<t>An "entity" is a textual macro that starts with "&amp;".
Don't worry about these,
you'll only use them whenever you want to put a "&amp;" or a "&lt;" in
your text.</t>
<t>A "token" is a string of characters.
The first character is either a letter or an underscore ("_").
Any characters that follow are either letters, numbers, an
underscore, or a period (".").</t>
</list>
</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>First,
start your source file with an XML declaration,
a reference to the DTD,
and the "rfc" element:</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;?xml version="1.0"?&gt;
    &lt;!DOCTYPE rfc SYSTEM "rfcXXXX.dtd"&gt;
    &lt;rfc&gt;
        ...
    &lt;/rfc&gt;
</artwork>
<postamble>Ignore the first two lines
-- the declaration and the reference --
and simply treat them as opaque strings.
Nothing else should be present after the "&lt;/rfc&gt;" tag.</postamble>
</figure>
<t>Second,
make sure that all elements are properly matched and nested.
A properly matched element that starts with
"&lt;example&gt;" is eventually followed with "&lt;/example&gt;".
(Empty elements are always matched.)
Elements are properly nested when they don't overlap.</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>For example,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;outer&gt;
        ...
        &lt;inner&gt;
            ...
        &lt;/inner&gt;
        ...
    &lt;/outer&gt;
</artwork>
<postamble>is properly nested.</postamble>
</figure>
<figure height="" width="" alt="" title="" align="left">
<preamble>However,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;outer&gt;
        ...
        &lt;inner&gt;
            ...
        &lt;/outer&gt;
        ...
    &lt;/inner&gt;
</artwork>
<postamble>overlaps, so the elements aren't properly nested.</postamble>
</figure>
<t>Third,
never use "&lt;" or "&amp;" in your text.
Instead, use either "&amp;lt;" or "&amp;amp;", respectively.</t>
<t>Fourth,
there are two quoting characters in XML, 'apostrophe' and "quotation".
Make sure that all attributes values are quoted,
e.g., "&lt;example name='value'&gt;",
If the value contains one of the quoting characters,
then use the other to quote the value,
e.g., "&lt;example name='"'&gt;",
If the value contains both quoting characters,
then use one of them to quote the value,
and replace occurrances of that character in the attribute value with
either '&amp;apos;' (apostrophe) or "&amp;quot;" (quotation),
e.g., "&lt;example name='"&amp;apos;"'&gt;".</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>If you want to put a comment in your source file,
here's the syntax:</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

        &lt;!-- comments can be multiline,
         if you wish --&gt;
</artwork>
</figure>
<t>Finally,
XML is case sensitive.</t>
</section>
<section anchor="front_matter" title="Front matter" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>Immediately following the "&lt;rfc&gt;" tag is the "front"
element:</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;?xml version="1.0"?&gt;
    &lt;!DOCTYPE rfc SYSTEM "rfcXXXX.dtd"&gt;
    &lt;rfc&gt;
        &lt;front&gt;
            &lt;title ...&gt;
            &lt;author ...&gt;
            &lt;author ...&gt;
            &lt;date ...&gt;
            &lt;area ...&gt;
            &lt;workgroup ...&gt;
            &lt;keyword ...&gt;
            &lt;keyword ...&gt;
            &lt;abstract ...&gt;
            &lt;note ...&gt;
        &lt;/front&gt;
        ...
    &lt;/rfc&gt;
</artwork>
<postamble>(Note that in all examples,
indentation is used only for expository purposes.)</postamble>
</figure>
<t>The "front" element consists of a "title" element,
one or more "author" elements,
a "date" element,
one or more optional "area" elements,
one or more optional "workgroup" elements,
one or more optional "keyword" elements,
an optional "abstract" element.
and,
one or more optional "note" elements.</t>
<section title="The title Element" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>The "title" element identifies the title of the document.
Because the title will be used in the headers of the document when formatted
according to <xref target="refs.RFC2223" format="default" pageno="false"/>,
if the title is more than 42 characters,
then an abbreviation should also be provided,
e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;title abbrev="Much Ado about Nothing"&gt;
    The IETF's Discussion on "Source Format of RFC Documents"
    &lt;/title&gt;
</artwork>
</figure>
</section>
<section anchor="author" title="The author Element" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>Each "author" element identifies a document author.
Since a document may have more than one author,
more than one "author" element may be present.
If the author is a person,
then three attributes must be present in the "&lt;author&gt;" tag,
"initials", "surname", and "fullname",
e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;author initials="M.T." surname="Rose"
            fullname="Marshall T. Rose"&gt;
</artwork>
</figure>
<t>The "author" element itself consists of an "organization" element,
and,
an optional "address" element.</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>The "organization" element is similar to the "title"
element,
in that an abbreviation may be paired with a long organization name
using the "abbrev" attribute, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;organization abbrev="ISI"&gt;
        USC/Information Sciences Institute
    &lt;/organization&gt;
</artwork>
</figure>
<t>The "address" element consists of an optional "postal" element,
an optional "phone" element,
an optional "facsimile" element,
an optional "email" element,
and,
an optional "uri" element.</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>The "postal" element contains one or more "street" elements,
followed by any combination of "city", "region" (state or province),
"code" (zipcode or postal code), and "country" elements, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;postal&gt;
        &lt;street&gt;660 York Street&lt;/street&gt;
        &lt;street&gt;M/S 40&lt;/street&gt;
        &lt;city&gt;San Francisco&lt;/city&gt; &lt;region&gt;CA&lt;/region&gt;
        &lt;code&gt;94110&lt;/code&gt;
        &lt;country&gt;US&lt;/country&gt;
    &lt;/postal&gt;
</artwork>
<postamble>This flexibility is provided to allow for different national
formats for postal addresses.
Note however,
that although the order of the "city", "region", "code", and "country"
elements isn't specified,
at most one of each may be present.
Regardless,
these elements must not be re-ordered during processing by an XML
application
(e.g., display applications must preserve the ordering of the
information contained in these elements).
Finally,
the value of the "country" element should be a two-letter
code from ISO 3166.</postamble>
</figure>
<figure height="" width="" alt="" title="" align="left">
<preamble>The "phone", "facsimile", "email", and "uri" elements are
simple, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;phone&gt;+1 415 695 3975&lt;/phone&gt;
    &lt;email&gt;mrose@not.invisible.net&lt;/email&gt;
    &lt;uri&gt;http://invisible.net/&lt;/uri&gt;
</artwork>
</figure>
</section>
<section anchor="date" title="The date Element" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>The "date" element identifies the publication date of the
document.
It consists of a month and a year, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;date month="February" year="1999" /&gt;
</artwork>
<postamble>The "date" element also has an optional day attribute.</postamble>
</figure>
</section>
<section title="Meta Data Elements" toc="default">
<t>The "front" element may contain meta data --
the content of these elements does not appear in printed versions of
the document.</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>A document has one or more optional "area",
"workgroup" and "keyword" elements, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;area&gt;General&lt;/area&gt;
    &lt;workgroup&gt;RFC Beautification Working Group&lt;/workgroup&gt;
    &lt;keyword&gt;RFC&lt;/keyword&gt;
    &lt;keyword&gt;Request for Comments&lt;/keyword&gt;
    &lt;keyword&gt;I-D&lt;/keyword&gt;
    &lt;keyword&gt;Internet-Draft&lt;/keyword&gt;
    &lt;keyword&gt;XML&lt;/keyword&gt;
    &lt;keyword&gt;Extensible Markup Language&lt;/keyword&gt;
</artwork>
<postamble>The "area" elements identify a general category for the
document
(e.g., one of "Applications", "General", "Internet", "Management",
"Operations", "Routing", "Security", "Transport", or "User"),
while the "workgroup" elements identify the IETF working groups that
produced the document,
and the "keyword" elements identify useful search terms.</postamble>
</figure>
</section>
<section title="The abstract Element" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>A document may have an "abstract" element,
which contains one or more <xref target="t" format="default" pageno="false">"t" elements</xref>.
In general,
only a single "t" element is present,
e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;abstract&gt;
        &lt;t&gt;This memo presents a technique for using XML
        (Extensible Markup Language) as a source format
        for documents in the Internet-Drafts (I-Ds) and
        Request for Comments (RFC) series.&lt;/t&gt;
    &lt;/abstract&gt;
</artwork>
</figure>
</section>
<section title="The note Element" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>A document may have one or more "note" elements,
each of which contains one or more <xref target="t" format="default" pageno="false">"t" elements</xref>.
There is a mandatory "title" attribute.
In general,
the "note" element contains text from the IESG, 
e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;note title="IESG Note"&gt;
        &lt;t&gt;The IESG has something to say.&lt;/t&gt;
    &lt;/note&gt;
</artwork>
</figure>
</section>
<section title="Status, Copyright Notice, Table of Contents" toc="default">
<t>Note that text relating to the memo's status, copyright notice, or
table of contents is not included in the document's markup -- this is
automatically inserted by an XML application when it produces either
a text or HTML version of the document.</t>
<section anchor="ipr" title="Conformance with RFC 2026" toc="default">
<t>If an Internet-Draft is being produced,
then the "ipr" attribute should be present in the "&lt;rfc&gt;"
tag at the beginning of the file.
The value of the attribute should be one of:
<list style="hanging">
<t hangText="full2026:">indicating that the document is in full conformance with all
the provisions of Section 10 of RFC 2026;</t>
<t hangText="noDerivativeWorks2026:">indicating that the document is in full
conformance with all the provisions of Section 10 of RFC 2026 except that the
right to produce derivative works is not granted; or,</t>
<t hangText="none:">indicating that the document is NOT offered in accordance with
Section 10 of RFC 2026, and the author does not provide the IETF with any rights
other than to publish as an Internet-Draft.</t>
</list>
In the latter case,
a copyright notice will not be automatically inserted during
processing by an XML application.</t>
<t>Consult <xref target="refs.RFC2026" format="default" pageno="false"/> for further details.</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>Finally,
if the Internet-Draft is being submitted to an automated process,
then the "docName" attribute should be present in the "&lt;rfc&gt;"
tag at the beginning of the file.
The value of this attribute contains the document (not file) name
associated with this Internet-Draft, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;rfc ipr="full" docName="draft-mrose-writing-rfcs-01"&gt;
        ...
    &lt;/rfc&gt;
</artwork>
<postamble/>
</figure>
</section>
</section>
<section title="Everything in the Front" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>So,
putting it all together, we have, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;front&gt;
        &lt;title&gt;Writing I-Ds and RFCs using XML&lt;/title&gt;
    
        &lt;author initials="M.T." surname="Rose"
                fullname="Marshall T. Rose"&gt;
            &lt;organization&gt;Invisible Worlds, Inc.&lt;/organization&gt;
    
            &lt;address&gt;
                &lt;postal&gt;
                    &lt;street&gt;660 York Street&lt;/street&gt;
                    &lt;street&gt;M/S 40&lt;/street&gt;
                    &lt;city&gt;San Francisco&lt;/city&gt; &lt;region&gt;CA&lt;/region&gt;
                    &lt;code&gt;94110&lt;/code&gt;
                    &lt;country&gt;US&lt;/country&gt;
                &lt;/postal&gt;
    
                &lt;phone&gt;+1 415 695 3975&lt;/phone&gt;
                &lt;email&gt;mrose@not.invisible.net&lt;/email&gt;
                &lt;uri&gt;http://invisible.net/&lt;/uri&gt;
            &lt;/address&gt;
        &lt;/author&gt;
    
        &lt;date month="February" year="1999" /&gt;
    
        &lt;area&gt;General&lt;/area&gt;
        &lt;workgroup&gt;RFC Beautification Working Group&lt;/workgroup&gt;
        &lt;keyword&gt;RFC&lt;/keyword&gt;
        &lt;keyword&gt;Request for Comments&lt;/keyword&gt;
        &lt;keyword&gt;I-D&lt;/keyword&gt;
        &lt;keyword&gt;Internet-Draft&lt;/keyword&gt;
        &lt;keyword&gt;XML&lt;/keyword&gt;
        &lt;keyword&gt;Extensible Markup Language&lt;/keyword&gt;
        &lt;abstract&gt;
            &lt;t&gt;This memo presents a technique for using XML
            (Extensible Markup Language) as a source format
            for documents in the Internet-Drafts (I-Ds) and
            Request for Comments (RFC) series.&lt;/t&gt;
        &lt;/abstract&gt;
    &lt;/front&gt;
</artwork>
</figure>
</section>
</section>
<section title="The Middle" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>The "middle" element contains all the sections of the document
except for the bibliography and appendices:</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    ...
    &lt;/front&gt;
    &lt;middle&gt;
        &lt;section ...&gt;
        &lt;section ...&gt;
        &lt;section ...&gt;
    &lt;/middle&gt;
    &lt;back&gt;
    ...
</artwork>
<postamble>The "middle" element consists of one or more "section"
elements.</postamble>
</figure>
<section anchor="section" title="The section Element" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>Each "section" element contains a section of the document.
There is a mandatory attribute,
"title",
that identifies the title of the section.
There is also an optional attribute,
"anchor",
that is used for cross-referencing with
<xref target="xref" format="default" pageno="false">the "xref" element</xref>,
e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;section anchor="intro" title="Introduction"&gt;
        ...
    &lt;/section&gt;
</artwork>
</figure>
<figure height="" width="" alt="" title="" align="left">
<preamble>The "section" element is recursive --
each contains any number and combination of "t", "figure", and "section"
elements, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;section title="The Middle"&gt;
        ...
        &lt;section title="The section Element"&gt;
            ...
            &lt;section title="The t Element"&gt;...&lt;/section&gt;
            &lt;section title="The list Element"&gt;...&lt;/section&gt;
            &lt;section title="The figure Element"&gt;...&lt;/section&gt;
            &lt;section title="The xref Element"&gt;...&lt;/section&gt;
            &lt;section title="The eref Element"&gt;...&lt;/section&gt;
            &lt;section title="The iref Element"&gt;...&lt;/section&gt;
        &lt;/section&gt;
    &lt;/section&gt;
</artwork>
</figure>
<section anchor="t" title="The t Element" toc="default">
<t>The "t" element contains any number and combination of
paragraphs, lists, and figures.
If a cross-reference is needed to a section, figure, or reference,
<xref target="xref" format="default" pageno="false">the "xref" element</xref> is used;
similarly,
if an external-reference is needed,
<xref target="eref" format="default" pageno="false">the "eref" element</xref> is used.
Indexing of text is provided by the
<xref target="iref" format="default" pageno="false">the "iref" element</xref>.</t>
</section>
<section title="The list Element" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>The "list" element contains one or more items.
Each item is a "t" element,
allowing for recursion, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;list style="numbers"&gt;
        &lt;t&gt;The first item.&lt;/t&gt;
        &lt;t&gt;The second item, which contains two bulleted sub-items:
            &lt;list style="symbols"&gt;
                &lt;t&gt;The first sub-item.&lt;/t&gt;
                &lt;t&gt;The second sub-item.&lt;/t&gt;
            &lt;/list&gt;
        &lt;/t&gt;
    &lt;/list&gt;
</artwork>
<postamble>The "list" element has an optional attribute,
"style",
having the value "numbers" (for numeric lists),
"symbols" (for bulleted lists),
"hanging" (for hanging lists),
or,
"empty" (for indented text).
If a "list" element is nested,
the default value is taken from its closest parent;
otherwise,
the default value is "empty".
</postamble>
</figure>
<figure height="" width="" alt="" title="" align="left">
<preamble>When nested within a "hanging list" element,
the "t" element has an optional attribute,
"hangText" that specifies the text to be inserted, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;list style="hanging"&gt;
        &lt;t hangText="full2026:"&gt;indicating that the document is in
        full conformance with all the provisions of Section 10 of
        RFC 2026;&lt;/t&gt;

        &lt;t hangText="noDerivativeWorks2026:"&gt;indicating that the
        document is in full conformance with all the provisions of
        Section 10 of RFC 2026 except that the right to produce
        derivative works is not granted; or,&lt;/t&gt;

        &lt;t hangText="none:"&gt;indicating that the document is NOT
        offered in accordance with Section 10 of RFC 2026, and
        the author does not provide the IETF with any rights other
        than to publish as an Internet-Draft.&lt;/t&gt;
    &lt;/list&gt;
</artwork>
</figure>
</section>
<section anchor="figure" title="The figure Element" toc="default">
<t>The "figure" element groups an optional "preamble" element,
an "artwork" element,
and an optional "postamble" element together.
The "figure" element also has an optional "anchor" attribute that is
used for cross-referencing with
<xref target="xref" format="default" pageno="false">the "xref" element</xref>.
There is also an optional "title" attribute that identifies the title
of the figure.
</t>
<t>The "preamble" and "postamble" elements,
if present,
are simply text.
If a cross-reference is needed to a section, figure, or reference,
<xref target="xref" format="default" pageno="false">the "xref" element</xref> is used;
similarly,
if an external-reference is needed,
<xref target="eref" format="default" pageno="false">the "eref" element</xref> is used.
Indexing of text is provided by the
<xref target="iref" format="default" pageno="false">the "iref" element</xref>.</t>
<t>The "artwork" element,
which must be present,
contains "ASCII artwork".
Unlike text contained in the "t", "preamble", or "postamble" elements,
both horizontal and vertical whitespace is significant in the "artwork"
element.</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>So,
putting it all together, we have, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;figure anchor="figure_example"&gt;
        &lt;preamble&gt;So,
        putting it all together, we have, e.g.,&lt;/preamble&gt;
        &lt;artwork&gt;
            ascii artwork goes here...
    
            be sure to use "&amp;lt;" or "&amp;amp;" instead of "&lt;" and "&amp;",
            respectively!
        &lt;/artwork&gt;
        &lt;postamble&gt;which is a very simple example.&lt;/postamble&gt;
    &lt;/figure&gt;
</artwork>
<postamble>which is a very simple example.</postamble>
</figure>
<figure height="" width="" alt="" title="" align="left">
<preamble>If you have artwork with a lot of "&lt;" characters,
then there's an XML trick you can use:</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;figure&gt;
        &lt;preamble&gt;If you have artwork with a lot of "&amp;lt;"
        characters, then there's an XML trick you can
        use:&lt;/preamble&gt;
        &lt;artwork&gt;&lt;![CDATA[
            ascii artwork goes here...
    
            just don't use "]]" in your artwork!
        ]]&gt;&lt;/artwork&gt;
        &lt;postamble&gt;The "&amp;lt;![CDATA[ ... ]]&gt;" construct is called
        a CDATA block -- everything between the innermost brackets
        is left alone by the XML application.&lt;/postamble&gt;
    &lt;/figure&gt;
</artwork>
<postamble>The "&lt;![CDATA[ ... ]]&gt;" construct is called a CDATA
block -- everything between the innermost brackets is left alone by
the XML application.</postamble>
</figure>
<t>Because the "figure" element represents a logical grouping of text
and artwork,
an XML application producing a text version of the document should
attempt to keep these elements on the same page.
Because <xref target="refs.RFC2223" format="default" pageno="false">RFC 2223</xref> allows no more than 69
characters by 49 lines of content on each page,
XML applications should be prepared to prematurely introduce page
breaks to allow for better visual grouping.</t>
<t>Finally,
the "artwork" element has two optional attributes:
"name" and "type".
The former is used to suggest a filename to use when storing the
content of the "artwork" element,
whilst the latter contains a suggestive data-typing for the content.
</t>
</section>
<section anchor="xref" title="The xref Element" toc="default">
<t>The "xref" element is used to cross-reference sections, figures, and
references.
The mandatory "target" attribute is used to link back to the "anchor"
attribute of the "section", "figure", and "reference" elements.
The value of the "anchor" and "target" attributes should be formatted
according to the token syntax in <xref target="xml_basics" format="default" pageno="false"/>.</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>If used as an empty element,
e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    according to the token syntax in &lt;xref target="xml_basics" /&gt;.
</artwork>
<postamble>then the XML application inserts an appropriate phrase
during processing,
such as "Section 2.1" or
"&lt;a href="#xml_basics"&gt;XML Basics&lt;/a&gt;".</postamble>
</figure>
<figure height="" width="" alt="" title="" align="left">
<preamble>If used with content, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    conforming to &lt;xref target="refs.RFC2223"&gt;RFC 2223&lt;/xref&gt;.
</artwork>
<postamble>then the XML application inserts an appropriate
designation during processing,
such as "RFC 2223[2]" or
"&lt;a href="#refs.RFC2223"&gt;RFC 2223&lt;/a&gt;".
Although the XML application decides what "an appropriate designation"
might be,
its choice is consistent throughout the processing of the document.
</postamble>
</figure>
</section>

<section anchor="eref" title="The eref Element" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>The "eref" element is used to reference external documents.
The mandatory "target" attribute is a
<xref target="URI" format="default" pageno="false">URI</xref>, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;eref target="http://metalab.unc.edu/xml/"&gt;Cafe con Leche&lt;/eref&gt;
</artwork>
</figure>
<figure height="" width="" alt="" title="" align="left">
<preamble>Note that while the "target" attribute is always present,
the "eref" element may be empty, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;eref target="http://invisible.net/" /&gt;
</artwork>
<postamble>and the XML application inserts an appropriate designation during
processing such as "[9]" or
"&lt;a href="http://invisible.net/"&gt;http://invisible.net/&lt;/a&gt;".</postamble>
</figure>
</section>
<section anchor="iref" title="The iref Element" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble><iref item="indexing" subitem="how to" primary="false"/>The "iref" element
is used to add information to an index.
The mandatory "item" attribute is the primary key the information is stored
under,
whilst the optional "subitem" attribute is the secondary key, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;iref item="indexing" subitem="how to" /&gt;
</artwork>
</figure>
<t>Finally, note that the "iref" element is always empty -- it never
contains any text.</t>
</section>
<section title="The vspace Element" toc="default">
<t>The "vspace" element,
which may occur only inside the "t" element,
is used by the author to provide formatting guidance to the XML
application.
There is an attribute,
"blankLines",
that indicates the number of blank lines that should be inserted.
A physical linebreak is specified by using the default value, "0".</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>In addition,
the "vspace" element can be used to force a new physical paragraph
within a list item, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;list style="numbers"&gt;
        &lt;t&gt;This is list item.
           &lt;vspace blankLines="1" /&gt;
           This is part of the same list item,
           although when displayed, it appears
           as a separate physical paragraph.&lt;/t&gt;
    &lt;/list&gt;
</artwork>
</figure>
<t>An XML application producing a text version of the document should
exercise care when encountering a value for "blankLines" that causes a
pagebreak --
in particular,
if a "vspace" element causes a pagebreak,
then no further blank lines should be inserted.
This allows authors to "force" a pagebreak by using an arbitrarily
large value, e.g., "blankLines='100'".</t>
<t>Finally, note that the "vspace" element is always empty -- it never
contains any text.</t>
</section>
</section>
</section>
<section anchor="back_matter" title="Back matter" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>Finally,
the "back" element is used for references and
appendices:</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

        ...
        &lt;/middle&gt;
        &lt;back&gt;
            &lt;references&gt;
                &lt;reference ...&gt;
                &lt;reference ...&gt;
            &lt;/references&gt;
            &lt;section ...&gt;
            &lt;section ...&gt;
        &lt;/back&gt;
    &lt;/rfc&gt;
</artwork>
<postamble>The "back" element consists of an optional "references" element,
and,
one or more optional "section" elements.
The "back" element itself is optional,
if your document doesn't have any references or appendices,
you don't have to include it.</postamble>
</figure>
<section anchor="references" title="The references Element" toc="default">
<t>The "references" element contains the document's bibliography.
It contains one or more "reference" elements.</t>
<t>Each "reference" element contains a "front" element and one or more
optional "seriesInfo" elements.</t>
<t>We've already discussed the "front" element back in
<xref target="front_matter" format="default" pageno="false"/>.</t>
<t>The "seriesInfo" element has two attributes,
"name" and "value" that identify the document series and series entry,
respectively.</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>The "reference" element has an optional "anchor"
attribute that is used for cross-referencing with
<xref target="xref" format="default" pageno="false">the "xref" element</xref>, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;reference anchor="refs.RFC2200"&gt;
        &lt;front&gt;
            &lt;title&gt;Internet Official Protocol Standards&lt;/title&gt;
            &lt;author initials="J." surname="Postel"
                    fullname="Jon Postel"&gt;
                &lt;organization abbrev="ISI"&gt;
                USC/Information Sciences Institute
                &lt;/organization&gt;
            &lt;/author&gt;
    
            &lt;date month="June" year="1997" /&gt;
        &lt;/front&gt;
        &lt;seriesInfo name="RFC" value="2200" /&gt;
        &lt;seriesInfo name="STD" value="1" /&gt;
    &lt;/reference&gt;
</artwork>
</figure>
<t>The "reference" element also has an optional "target"
attribute that is used for external references
(c.f., <xref target="eref" format="default" pageno="false"/>).
The XML application,
if producing an HTML version of the document will use the "target"
attribute accordingly;
however, if the "name" attribute of the "seriesInfo" element has the value
"RFC",
then the XML application should automatically provide an appropriate
default for the "target" attribute
(e.g., "http://example.com/rfcs/rfc2200.txt").</t>
</section>
<section title="Appendices" toc="default">
<t>To include appendices after the bibliography,
simply add more "section" elements.
(For an example,
look at the example at the beginning of <xref target="back_matter" format="default" pageno="false"/>.)</t>
</section>
<section title="Copyright Status" toc="default">
<t>The copyright status for the document is not included in the
document's markup -- this is automatically inserted by an XML
application that produces either a text or HTML version of the document.</t>
</section>
</section>
</section>
<section title="Processing the XML Source File" toc="default">
<t>This section concerns itself with applications that operate on
an XML source file.
A lot of XML tools are available,
as are many lists of XML resources,
e.g.,
<eref target="http://metalab.unc.edu/xml/">Cafe con Leche</eref>.</t>
<t>There are two kinds of XML tools: validating and non-validating.
Both check that the source file conforms to the rules given in
<xref target="xml_basics" format="default" pageno="false"/>.
However,
in addition to making sure that the source file is well-formed,
a validating tool also reads the DTD referenced by the source file
to make sure that they match.
There are a number of both validating and non-validating tools available.</t>
<section title="Editing" toc="default">
<t>There are several XML editors available.
Ideally,
you want an editor that validates.
This has two advantages:
<list style="symbols">
<t>the editor provides guidance in fleshing-out the document structure;
and,</t>
<t>the editor validates that the source file matches the rules in the DTD.</t>
</list>
</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>There are two major modes in Emacs that support XML:
<eref target="http://www.mulberrytech.com/tdtd/">tdtd</eref> and
<eref target="http://www.inria.fr/koala/plh/sxml.html">psgml</eref>.
The latter mode allows you to validate the source file
(by calling an external program).
If you visit the source file in Emacs and the major mode isn't
"SGML" or "XML", 
then usually all it takes is adding these lines to your ".emacs"
file:</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    (setq auto-mode-alist
          (cons (cons "\\.xml$" 'sgml-mode) auto-mode-alist))
</artwork>
<postamble>and then restarting Emacs.
If this doesn't work,
try one of the sources above.</postamble>
</figure>
<t>The author uses both sgml-mode in Emacs,
and a commercial validating editor,
<eref target="http://www.t2000-usa.com/">Clip! version 1.5</eref>,
when editing source
files.</t>
<section title="Checking" toc="default">
<t>If your editor doesn't validate,
then you should run a program to validate the source file.</t>
<t>The author uses
<eref target="http://www.alphaworks.ibm.com/formula/xml/">the
AlphaWorks XML parser</eref> for this purpose.
It requires that your system have a Java virtual machine.
In addition to Java,
there are validating parsers written in C, Perl, Python, and Tcl.</t>
</section>
</section>
<section anchor="xml2rfc" title="Converting to Text Format" toc="default">
<t>The author has written
<eref target="http://memory.palace.org/authoring/">the xml2rfc tool</eref>,
which reads the source file and produces both a text and HTML version
of the document.
(This memo was produced using the xml2rfc tool.)
Note that xml2rfc isn't a validating tool,
so it's a good idea to use either a validating editor or run a stand-alone
validating parser prior to using the tool.</t>
</section>
<section title="Converting to HTML Format" toc="default">
<t>The XML Style Language (XSL) is used to describe transformations
from the source file into some other structured file.
So,
ideally you should use an XSL-capable formatter to convert an XML source
file to HTML.</t>
<t>However,
as of this writing XSL is still in considerable flux.
(Hence,
no reference was included in this memo,
as by the time you read this section,
the reference would be outdated.)
So,
in the interim,
the author uses the xml2rfc tool for this purpose,
even though this tool doesn't provide much flexibility in its HTML layout.</t>
</section>
<section title="Viewing" toc="default">
<t>Browsers that support either XSL or Cascading Style Sheets (CSS)
are able to view the source file directly.</t>
<t>At present,
the author doesn't use any of these browsers,
instead converting source files to either text or HTML.</t>
</section>
<section title="Searching" toc="default">
<t>As with text editors,
any text-oriented search tool (e.g., grep) can be used on the source file.
However,
there are search tools available that understand structured source.</t>
<figure height="" width="" alt="" title="" align="left">
<preamble>The author uses 
<eref target="http://www.cs.helsinki.fi/~jjaakkol/sgrep.html">sgrep
version 1.9</eref>
for this purpose,
e.g.</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    sgrep -g xml 'ELEMENTS("title") not in ELEMENTS("back")' \
        writing-rfcs.xml
</artwork>
<postamble>which extracts the title element from the source file.</postamble>
</figure>
</section>
</section>
<section title="Security Considerations" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>This memo raises no security issues;
however,
according to <xref target="refs.RFC2223" format="default" pageno="false"/>,
your document should contain a section near the end that discusses the
security considerations of the protocol or procedures that are the
main topic of your document, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;middle&gt;
        ...
        &lt;section title="Security Considerations"&gt;
            &lt;t&gt;This memo raises no security issues;
            however,
            according to &lt;xref target="refs.RFC2223" /&gt;,
            your document should contain a section near the end
            that discusses the security considerations of the
            protocol or procedures that are the main topic of your
            document.&lt;/t&gt;
        &lt;/section&gt;
    &lt;/middle&gt;
</artwork>
</figure>
</section>
</middle>
<back>
<references title="References">
<reference anchor="XML" target="http://www.w3.org/TR/1998/REC-xml-19980210">
<front>
<title>Extensible Markup Language (XML) 1.0</title>
<author>
<organization abbrev="W3C">World Wide Web Consortium</organization>
<address>
<postal>
<street>MIT Laboratory for Computer Science</street>
<street>545 Technology Square</street>
<city>Cambridge</city> <region>MA</region> <code>02139</code>
<country>US</country>
</postal>
<phone>+ 1 617 253 2613</phone>
<facsimile>+ 1 617 258 5999</facsimile>
<email>timbl@w3.org</email>
<uri>http://www.w3c.org</uri>
</address>
</author>
<date month="February" year="1998"/>
</front>
<seriesInfo name="W3C" value="XML"/>
</reference>
<reference anchor="refs.RFC2223">
<front>
<title>Instructions to RFC Authors</title>
<author initials="J." surname="Postel" fullname="Jon Postel">
<organization abbrev="ISI">USC/Information Sciences Institute</organization>
<address>
<postal>
<street>4676 Admiralty Way</street>
<city>Marina del Rey</city> <region>CA</region> <code>90292</code>
<country>US</country>
</postal>
<phone>+1 310 822 1511</phone>
<facsimile>+1 310 823 6714</facsimile>
<email>Postel@ISI.EDU</email>
</address>
</author>
<author initials="J." surname="Reynolds" fullname="Joyce K. Reynolds">
<organization abbrev="ISI">USC/Information Sciences Institute</organization>
<address>
<postal>
<street>4676 Admiralty Way</street>
<city>Marina del Rey</city> <region>CA</region> <code>90292</code>
<country>US</country>
</postal>
<phone>+1 310 822 1511</phone>
<facsimile>+1 310 823 6714</facsimile>
<email>jkrey@isi.edu</email>
</address>
</author>
<date month="October" year="1997"/>
</front>
<seriesInfo name="RFC" value="2223"/>
</reference>
<reference anchor="refs.RFC2026">
<front>
<title>The Internet Standards Process -- Revision 3</title>
<author initials="S.O." surname="Bradner" fullname="Scott O. Bradner">
<organization>Harvard University</organization>
<address>
<postal>
<street>Holyoke Center, Room 813</street>
<street>1350 Massachusettes Avenue</street>
<city>Cambridge</city> <region>MA</region> <code>02138</code>
<country>US</country>
</postal>
<phone>+1 617 495 3864</phone>
<email>sob@harvard.edu</email>
</address>
</author>
<date month="October" year="1996"/>
</front>
<seriesInfo name="RFC" value="2026"/>
<seriesInfo name="BCP" value="9"/>
</reference>
<reference anchor="URI">
<front>
<title>Uniform Resource Identifiers (URI): Generic Syntax</title>
<author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
<organization abbrev="W3C">World Wide Web Consortium</organization>
<address>
<postal>
<street>MIT Laboratory for Computer Science</street>
<street>545 Technology Square</street>
<city>Cambridge</city> <region>MA</region> <code>02139</code>
<country>US</country>
</postal>
<phone>+1 617 253 5702</phone>
<facsimile>+1 617 258 8682</facsimile>
<email>timbl@w3.org</email>
</address>
</author>
<author initials="R.T." surname="Fielding" fullname="Roy T. Fielding">
<organization abbrev="UCI">University of California, Irvine</organization>
<address>
<postal>
<street>Department of Information and Computer Science</street>
<street>University of California, Irvine</street>
<city>Irvine</city> <region>CA</region> <code>92697-3425</code>
<country>US</country>
</postal>
<phone>+1 949 824 7403</phone>
<facsimile>+1 949 824 1715</facsimile>
<email>fielding@ics.uci.edu</email>
</address>
</author>
<author initials="L." surname="Masinter" fullname="Larry Masinter">
<organization>Xerox PARC</organization>
<address>
<postal>
<street>3333 Coyote Hill Road</street>
<city>Palo Alto</city> <region>CA</region> <code>94304</code>
<country>US</country>
</postal>
<phone>+1 650 812 4365</phone>
<facsimile>+1 650 812 4333</facsimile>
<email>masinter@parc.xerox.com</email>
</address>
</author>
<date month="August" year="1998"/>
</front>
<seriesInfo name="RFC" value="2396"/>
</reference>
</references>
<section anchor="rfc" title="The rfc Element" toc="default">
<figure height="" width="" alt="" title="" align="left">
<preamble>The "&lt;rfc&gt;" tag at the beginning of the file,
with only <xref target="ipr" format="default" pageno="false">an "ipr" attribute</xref>,
produces an Internet-Draft.
However,
when other attributes are added to this tag by the RFC editor,
an RFC is produced, e.g.,</preamble>
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

    &lt;rfc number="2200"
         obsoletes="2000, 1920, 1880, 1800, ..."
         category="std"
         seriesNo="1"&gt;
</artwork>
<postamble>At a minimum,
the "number" attribute should be present.</postamble>
</figure>
<t>The other attributes are:
<list style="symbols">
<t>"obsoletes",
having a comma-separated list of RFC numbers,
that the document obsoletes;</t>
<t>"updates",
having a comma-separated list of RFC numbers,
that the document updates;</t>
<t>"category",
having one of these values:
    <list style="numbers">
    <t>"std", for a Standards-Track document;</t>
    <t>"bcp", "for a Best Current Practices document;</t>
    <t>"exp", for an Experimental Protocol document;</t>
    <t>"historic", for a historic document; or,</t>
    <t>"info", the default, for an Informational document.</t>
    </list>
</t>
<t>"seriesNo",
having the corresponding number in the STD (std), BCP (bcp), or FYI (info)
series.</t>
</list>
</t>
<t>Finally,
a special entity, "&amp;rfc.number;", is available.
Authors preparing an RFC should use this entity whenever they want to 
reference the number of the RFC within the document itself.
In printed versions of the document,
the appropriate substitution (or "XXXX") will occur.</t>
</section>
<section anchor="rfc.dtd" title="The RFC DTD" toc="default">
<figure height="" width="" alt="" title="" align="left">
<artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

&lt;!--
  DTD for the RFC document series, draft of 99-01-30
  --&gt;


&lt;!--
  Contents

    DTD data types

    The top-level

    Front matter

    The Body

    Back matter
  --&gt;


&lt;!--
  DTD data types:

        entity        description
        ======        ===============================================
        NUMBER        [0-9]+
        NUMBERS       a comma-separated list of NUMBER

        DAY           the day of the month, e.g., "1"
        MONTH         the month of the year, e.g., "January"
        YEAR          a four-digit year, e.g., "1999"

        URI           e.g., "http://invisible.net/"

        ATEXT/CTEXT   printable ASCII text (no line-terminators)

        TEXT          character data
  --&gt;


&lt;!ENTITY % NUMBER     "CDATA"&gt;
&lt;!ENTITY % NUMBERS    "CDATA"&gt;

&lt;!ENTITY % DAY        "CDATA"&gt;
&lt;!ENTITY % MONTH      "CDATA"&gt;
&lt;!ENTITY % YEAR       "CDATA"&gt;

&lt;!ENTITY % URI        "CDATA"&gt;

&lt;!ENTITY % ATEXT      "CDATA"&gt;
&lt;!ENTITY % CTEXT      "#PCDATA"&gt;

&lt;!ENTITY % TEXT       "#PCDATA"&gt;

&lt;!ENTITY   rfc.number "XXXX"&gt;


&lt;!--
  The top-level
  --&gt;


&lt;!--
  attributes for the "rfc" element are supplied by the RFC
  editor. when preparing drafts, authors should leave them blank.

  the "seriesNo" attribute is used if the category is, e.g., BCP.
  --&gt;
&lt;!ELEMENT rfc         (front,middle,back?)&gt;
&lt;!ATTLIST rfc
          number      %NUMBER;           #IMPLIED
          obsoletes   %NUMBERS;          ""
          updates     %NUMBERS;          ""
          category    (std|bcp|info|exp|historic)
                                         "info"
          seriesNo    %NUMBER;           #IMPLIED
          ipr         (full2026|noDerivativeWorks2026|none)
                                         #IMPLIED
          docName     %ATEXT;            #IMPLIED&gt; 

&lt;!--
  Front matter
  --&gt;


&lt;!ELEMENT front       (title,author+,date,area*,workgroup*,keyword*,
                       abstract?,note*)&gt;

&lt;!-- the "abbrev" attribute is used for headers, etc. --&gt;
&lt;!ELEMENT title       (%CTEXT;)&gt;
&lt;!ATTLIST title
          abbrev      %ATEXT;            #IMPLIED&gt; 

&lt;!ELEMENT author      (organization,address?)&gt;
&lt;!ATTLIST author
          initials    %ATEXT;            #IMPLIED
          surname     %ATEXT;            #IMPLIED
          fullname    %ATEXT;            #IMPLIED&gt;

&lt;!ELEMENT organization
                      (%CTEXT;)&gt;
&lt;!ATTLIST organization
          abbrev      %ATEXT;            #IMPLIED&gt; 
 
&lt;!ELEMENT address     (postal?,phone?,facsimile?,email?,uri?)&gt;

&lt;!-- at most one of each the city, region, code, and country
     elements may be present --&gt;
&lt;!ELEMENT postal      (street+,(city|region|code|country)*)&gt;
&lt;!ELEMENT street      (%CTEXT;)&gt;
&lt;!ELEMENT city        (%CTEXT;)&gt;
&lt;!ELEMENT region      (%CTEXT;)&gt;
&lt;!ELEMENT code        (%CTEXT;)&gt;
&lt;!ELEMENT country     (%CTEXT;)&gt;
&lt;!ELEMENT phone       (%CTEXT;)&gt;
&lt;!ELEMENT facsimile   (%CTEXT;)&gt;
&lt;!ELEMENT email       (%CTEXT;)&gt;
&lt;!ELEMENT uri         (%CTEXT;)&gt;

&lt;!ELEMENT date        EMPTY&gt;
&lt;!ATTLIST date
          day         %DAY;              #IMPLIED
          month       %MONTH;            #REQUIRED
          year        %YEAR;             #REQUIRED&gt;

&lt;!-- meta-data... --&gt;
&lt;!ELEMENT area        (%CTEXT;)&gt;
&lt;!ELEMENT workgroup   (%CTEXT;)&gt;
&lt;!ELEMENT keyword     (%CTEXT;)&gt;

&lt;!ELEMENT abstract    (t)+&gt;
&lt;!ELEMENT note        (t)+&gt;
&lt;!ATTLIST note
          title       %ATEXT;            #REQUIRED&gt;


&lt;!--
  The body
  --&gt;


&lt;!ELEMENT middle      (section)+&gt;

&lt;!ELEMENT section     (t|figure|section)*&gt;
&lt;!ATTLIST section
          anchor      ID                 #IMPLIED
          title       %ATEXT;            #REQUIRED&gt;

&lt;!ELEMENT t           (%TEXT;|list|figure|xref|eref|iref|vspace)*&gt;
&lt;!ATTLIST t
          hangText    %ATEXT;            #IMPLIED&gt;

&lt;!-- the value of the style attribute is inherited from the closest 
     parent --&gt;
&lt;!ELEMENT list        (t+)&gt;
&lt;!ATTLIST list
          style       (numbers|symbols|hanging|empty)
                                         "empty"&gt;

&lt;!ELEMENT xref        (%CTEXT;)&gt;
&lt;!ATTLIST xref
          target      IDREF              #REQUIRED
          pageno      (true|false)       "false"&gt;

&lt;!ELEMENT eref        (%CTEXT;)&gt;
&lt;!ATTLIST eref
          target      %URI;              #REQUIRED&gt;

&lt;!ELEMENT iref        EMPTY&gt;
&lt;!ATTLIST iref
          item        %ATEXT;            #REQUIRED
          subitem     %ATEXT;            ""&gt;

&lt;!ELEMENT vspace      EMPTY&gt;
&lt;!ATTLIST vspace
          blankLines  %NUMBER;           "0"&gt;

&lt;!ELEMENT figure      (preamble?,artwork,postamble?)&gt;
&lt;!ATTLIST figure
          anchor      ID                 #IMPLIED
          title       %ATEXT;            ""&gt;

&lt;!ELEMENT preamble    (%TEXT;|xref|eref|iref)*&gt;
&lt;!ELEMENT artwork     (%TEXT;)*&gt;
&lt;!ATTLIST artwork
          xml:space   (default|preserve) "preserve"&gt;
&lt;!ELEMENT postamble   (%TEXT;|xref|eref|iref)*&gt;


&lt;!--
  Back matter
  --&gt;


&lt;!-- sections, if present, are appendices --&gt;
&lt;!ELEMENT back        (references?,section*)&gt;

&lt;!ELEMENT references  (reference+)&gt;
&lt;!ELEMENT reference   (front,seriesInfo*)&gt;
&lt;!ATTLIST reference
          anchor      ID                 #IMPLIED
          target      %URI;              #IMPLIED&gt;
&lt;!ELEMENT seriesInfo  EMPTY&gt;
&lt;!ATTLIST seriesInfo
          name        %ATEXT;            #REQUIRED
          value       %ATEXT;            #REQUIRED&gt;
</artwork>
</figure>
</section>
<section title="Acknowledgements" toc="default">
<t>The author gratefully acknowledges the contributions of:
Alan Barrett,
Brad Burdick,
Brian Carpenter,
Steve Deering,
Patrik Faltstrom,
Jim Gettys,
Carl Malamud,
Chris Newman,
Kurt Starsinic,
and,
Frank Strauss.</t>
</section>
</back>
</rfc>
