Network Working Group | J. Levine, Editor |
Internet-Draft | Temporary RFC Series Project Manager |
Obsoletes: 7991 (if approved) | March 5, 2020 |
Intended status: Informational | |
Expires: September 6, 2020 |
This document defines the "xml2rfc" version 3 vocabulary: an XML-based language used for writing RFCs and Internet-Drafts. It is heavily derived from the version 2 vocabulary that is also under discussion. This document obsoletes the earlier v3 grammar described in RFC 7991, which in turn obsoleted the v2 grammar in RFC 7749.¶
Discussion of this draft takes place on the xml2rfc-dev@ietf.org mailing list, which has its home page at <https://www.ietf.org/mailman/listinfo/xml2rfc-dev>.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work in progress”.¶
This Internet-Draft will expire on September 6, 2020.¶
Copyright (c) 2020 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.¶
This document describes version 3 ("v3") of the "xml2rfc" vocabulary: an XML-based language ("Extensible Markup Language" [XML]) used for writing RFCs [RFC7322] and Internet-Drafts [IDGUIDE].¶
This document obsoletes [RFC7991], [RFC7991] obsoleted the version 2 vocabulary ("v2") [RFC7749], which contains the extended language definition. [RFC7749] obsolted the original version ("v1") [RFC2629]. This document directly copies the material from [RFC7749] where possible.¶
The v3 format will be used as part of the new RFC Series format described in [RFC6949]. The new format will be handled by one or more new tools for preparing the XML and converting it to other representations. Features of the expected tools are described in Appendix B. That section defines some terms used throughout this document, such as "prep tool" and "formatter".¶
Note that the vocabulary contains certain constructs that might not be used when generating the final text; however, they can provide useful data for other uses (such as index generation, populating a keyword database, or syntax checks).¶
In this document, the term "format" is used when describing types of documents, primarily XML and HTML. The term "representation" is used when talking about a specific instantiation of a format, such as an XML document or an HTML document that was created by an XML document.¶
Non-interoperable changes in later versions of this specification are likely based on experience gained in implementing the new publication toolsets. Revised documents will be published capturing those changes as the toolsets are completed. Other implementers must not expect those changes to remain backwards-compatible with the details described in this document.¶
The design criteria of the changes from v2 to v3 are as follows:¶
There is a desire to keep as much of the v2 grammar as makes sense within the above design criteria and not to make gratuitous changes to the v2 grammar. Another way to say this is "we would rather encourage backwards compatibility but not be constrained by it." Still, the goal of starting and editing a v3 document being easier than for a v2 document is more important than backwards compatibility with v2, given the latter two design criteria.¶
v3 is upwards compatible with v2, meaning that a v2 document is meant to be a valid v3 document as well. However, some features of v2 are deprecated in v3 in favor of new elements. Deprecated features are listed in Section 1.4.3 and are described in [RFC7749].¶
This is a (hopefully) complete list of all the technical changes between [RFC7991] and this document.¶
This is a (hopefully) complete list of all the technical changes between [RFC7749] and this document.¶
Deprecated elements and attributes are legacy vocabulary from v2 that are supported for input to v3 tools. They are likely to be removed from those tools in the future. Deprecated attributes are still listed in Section 2, and deprecated elements are listed in Section 3. See Appendix B for more information on tools and how they will handle deprecated features.¶
The XML vocabulary here is defined in prose, based on the RELAX NG schema [RNC] contained in Appendix C (specified in RELAX NG Compact Notation (RNC)).¶
Note that the schema can be used for automated validity checks, but certain constraints are only described in prose (example: the conditionally required presence of the "abbrev" attribute).¶
The sections below describe all elements and their attributes.¶
Note that attributes not labeled "mandatory" are optional.¶
Many elements have an optional "anchor" attribute. In all cases, the value of the "anchor" attribute needs to be a valid XML "Name" (Section 2.3 of [XML]), additionally constrained to US-ASCII characters [USASCII]. Thus, the character repertoire consists of "A-Z", "a-z", "0-9", "_", "-", ".", and ":", where "0-9", ".", and "-" are disallowed as start characters. Anchors are described in more detail in Appendix B.2.¶
Tools interpreting the XML described here will collapse horizontal whitespace and line breaks to a single whitespace (except inside <artwork> and <sourcecode>) and will trim leading and trailing whitespace. Tab characters (U+0009) inside <artwork> and <sourcecode> are prohibited.¶
Some of the elements have attributes that are not described in this section because those attributes are specific to the prep tool. People writing tools to process this format should read all of the appendices for a complete description of these attributes.¶
Every element in the v3 vocabulary can have an "xml:lang" attribute, an "xml:base" attribute, or both. The xml:lang attribute specifies the language used in the element. This is sometimes useful for renderers that display different fonts for ideographic characters used in China and Japan. The xml:base attribute is sometimes added to an XML file when doing XML-to-XML conversion where the base file has XInclude attributes (see Appendix B.1).¶
Contains the Abstract of the document. See [RFC7322] for more information on restrictions for the Abstract.¶
This element appears as a child element of <front> (Section 2.28).¶
In any order, but at least one of:¶
Document-wide unique identifier for the Abstract.¶
Provides address information for the author.¶
This element appears as a child element of <author> (Section 2.8).¶
In this order:¶
Provides additional prose augmenting a bibliographic reference. This text is intended to be shown after the rest of the generated reference text.¶
This element appears as a child element of <reference> (Section 2.43).¶
In any order:¶
Provides information about the IETF area to which this document relates (currently not used when generating documents).¶
The value ought to be either the full name or the abbreviation of one of the IETF areas as listed on <http://www.ietf.org/iesg/area.html>. A list of full names and abbreviations will be kept by the RFC Series Editor.¶
This element appears as a child element of <front> (Section 2.28).¶
Content model: only text content.¶
This element allows for the support of alternative artwork formats. This will allow the renderer to pick the most appropriate <artwork> instance for its format from the alternatives present within an <artset> element.¶
If more than one <artwork> element is found within an <artset> element, with the same "type" attribute, the rendere could select the first one, or possibly choose between the alternative instances based on the output format and some quality of the alternative instances that made one more suitable than the other for that particular format, such as size, aspect ration, etc.¶
This element appears as a child element of <aside> (Section 2.7), <blockquote> (Section 2.11), <dd> (Section 2.19), <figure> (Section 2.27), <li> (Section 2.31), <section> (Section 2.49), <td> (Section 2.60), and <th> (Section 2.62).¶
One or more <artwork> elements (Section 2.6)¶
Same as for the <artwork> element (Section 2.6).¶
This element allows the inclusion of "artwork" in the document. <artwork> provides full control of horizontal whitespace and line breaks; thus, it is used for a variety of things, such as diagrams ("line art") and protocol unit diagrams. Tab characters (U+0009) inside of this element are prohibited.¶
Alternatively, the "src" attribute allows referencing an external graphics file, such as a vector drawing in SVG or a bitmap graphic file, using a URI. In this case, the textual content acts as a fallback for output representations that do not support graphics; thus, it ought to contain either (1) a "line art" variant of the graphics or (2) prose that describes the included image in sufficient detail.¶
In [RFC7749], the <artwork> element was also used for source code and formal languages; in v3, this is now done with <sourcecode>.¶
There are at least five ways to include SVG in artwork in Internet-Drafts:¶
The above methods for inclusion of SVG art can also be used for including text artwork, but using a data: URI is probably confusing for text artwork.¶
Formatters that do pagination should attempt to keep artwork on a single page. This is to prevent artwork that is split across pages from looking like two separate pieces of artwork.¶
See Section 5 for a description of how to deal with issues of using "&" and "<" characters in artwork.¶
This element appears as a child element of <artset> (Section 2.5), <aside> (Section 2.7), <blockquote> (Section 2.11), <dd> (Section 2.19), <figure> (Section 2.27), <li> (Section 2.31), <section> (Section 2.49), <td> (Section 2.60), and <th> (Section 2.62).¶
Either:¶
Or:¶
Controls whether the artwork appears left justified (default), centered, or right justified. Artwork is aligned relative to the left margin of the document.¶
Allowed values:¶
Alternative text description of the artwork (which is more than just a summary or caption). When the art comes from the "src" attribute and the format of that artwork supports alternate text, the alternative text comes from the text of the artwork itself, not from this attribute. The contents of this attribute are important to readers who are visually impaired, as well as those reading on devices that cannot show the artwork well, or at all.¶
Document-wide unique identifier for this artwork.¶
Deprecated.¶
A filename suitable for the contents (such as for extraction to a local file). This attribute can be helpful for other kinds of tools (such as automated syntax checkers, which work by extracting the artwork). Note that the "name" attribute does not need to be unique for <artwork> elements in a document. If multiple <artwork> elements have the same "name" attribute, a processing tool might assume that the elements are all fragments of a single file, and the tool can collect those fragments for later processing. See Section 7 for a discussion of possible problems with the value of this attribute.¶
The URI reference of a graphics file [RFC3986], or the name of a file on the local disk. This can be a "data" URI [RFC2397] that contains the contents of the graphics file. Note that the inclusion of art with the "src" attribute depends on the capabilities of the processing tool reading the XML document. Tools need to be able to handle the file: URI, and they should be able to handle http: and https: URIs as well. The prep tool will be able to handle reading the "src" attribute.¶
If no URI scheme is given in the attribute, the attribute is considered to be a local filename relative to the current directory. Processing tools must be careful to not accept dangerous values for the filename, particularly those that contain absolute references outside the current directory. Document creators should think hard before using relative URIs due to possible later problems if files move around on the disk. Also, documents should most likely use explicit URI schemes wherever possible.¶
Specifies the type of the artwork. The value of this attribute is free text with certain values designated as preferred.¶
The preferred values for <artwork> types are:¶
The RFC Series Editor will maintain a complete list of the preferred values on the RFC Editor web site, and that list is expected to be updated over time. Thus, a consumer of v3 XML should not cause a failure when it encounters an unexpected type or no type is specified. The table will also indicate which type of art can appear in plain-text output (for example, type="svg" cannot).¶
Deprecated.¶
Deprecated.¶
This element is a container for content that is semantically less important or tangential to the content that surrounds it.¶
This element appears as a child element of <section> (Section 2.49).¶
In any order:¶
Document-wide unique identifier for this aside.¶
Contains the "back" part of the document: the references and appendices. In <back>, <section> elements indicate appendices.¶
This element appears as a child element of <rfc> (Section 2.48).¶
In this order:¶
Marks text that are phrases defined in [BCP14] such as "MUST", "SHOULD NOT", and so on. When shown in some of the output representations, the text in this element might be highlighted. The use of this element is optional.¶
This element is only to be used around the actual phrase from BCP 14, not the full definition of a requirement. For example, it is correct to say "The packet <bcp14>MUST</bcp14> be dropped.", but it is not correct to say "<bcp14>The packet MUST be dropped.</bcp14>".¶
This element appears as a child element of <annotation> (Section 2.3), <blockquote> (Section 2.11), <dd> (Section 2.19), <dt> (Section 2.22), <em> (Section 2.23), <li> (Section 2.31), <name> (Section 2.34), <preamble> (Section 3.6), <refcontent> (Section 2.42), <strong> (Section 2.54), <sub> (Section 2.55), <sup> (Section 2.56), <t> (Section 2.57), <td> (Section 2.60), <th> (Section 2.62), and <tt> (Section 2.66).¶
Content model: only text content.¶
Specifies that a block of text is a quotation.¶
This element appears as a child element of <li> (Section 2.31) and <section> (Section 2.49).¶
Either:¶
In any order, but at least one of:
Or:¶
In any order, but at least one of:
Document-wide unique identifier for this quotation.¶
The source of the citation. This must be a URI. If the "quotedFrom" attribute is given, this URI will be used by processing tools as the link for the text of that attribute.¶
Name of person or document the text in this element is quoted from. A formatter should render this as visible text at the end of the quotation.¶
Holds the boilerplate text for the document. This element is filled in by the prep tool.¶
This element contains <section> elements. Every <section> element in this element must have the "numbered" attribute set to "false".¶
This element appears as a child element of <front> (Section 2.28).¶
One or more <section> elements (Section 2.49)¶
Gives the city name in a postal address.¶
This element appears as a child element of <postal> (Section 2.40).¶
Content model: only text content.¶
The ASCII equivalent of the city name.¶
TBD¶
This element appears as a child element of <postal> (Section 2.40).¶
Content model: only text content.¶
The ASCII equivalent of the city area name.¶
Gives the postal region code.¶
This element appears as a child element of <postal> (Section 2.40).¶
Content model: only text content.¶
The ASCII equivalent of the postal code.¶
Gives the country name or code in a postal address.¶
This element appears as a child element of <postal> (Section 2.40).¶
Content model: only text content.¶
The ASCII equivalent of the country name.¶
Represents a comment.¶
Comments can be used in a document while it is work in progress. They might appear either inline and visually highlighted, at the end of the document, or not at all, depending on the formatting tool.¶
This element appears as a child element of <annotation> (Section 2.3), <blockquote> (Section 2.11), <c> (Section 3.1), <dd> (Section 2.19), <dt> (Section 2.22), <em> (Section 2.23), <li> (Section 2.31), <name> (Section 2.34), <postamble> (Section 3.5), <preamble> (Section 3.6), <strong> (Section 2.54), <sub> (Section 2.55), <sup> (Section 2.56), <t> (Section 2.57), <td> (Section 2.60), <th> (Section 2.62), <tt> (Section 2.66), and <ttcol> (Section 3.9).¶
In any order:¶
Document-wide unique identifier for this comment.¶
Suggests whether or not the comment should be displayed by formatting tools. This might be set to "false" if you want to keep a comment in a document after the contents of the comment have already been dealt with.¶
Allowed values:¶
Holds the "source" of a comment, such as the name or the initials of the person who made the comment.¶
Provides information about the publication date. This element is used for two cases: the boilerplate of the document being produced, and inside bibliographic references that use the <front> element.¶
This element appears as a child element of <front> (Section 2.28).¶
Content model: this element does not have any contents.¶
The day of publication.¶
The month or months of publication.¶
The year or years of publication.¶
The definition part of an entry in a definition list.¶
This element appears as a child element of <dl> (Section 2.21).¶
Either:¶
In any order, but at least one of:
Or:¶
In any order, but at least one of:
Document-wide unique identifier for this definition.¶
This element gives a mapping between the anchor of a reference and a name that will be displayed instead. This allows authors to display more mnemonic anchor names for automatically included references. The mapping in this element only applies to <xref> elements whose format is "default". For example, if the reference uses the anchor "RFC6949", the following would cause that anchor in the body of displayed documents to be "RFC-dev":¶
<displayreference target="RFC6949" to="RFC-dev"/>
If a reference section is sorted, this element changes the sort order.¶
It is expected that this element will only be valid in input documents. It will likely be removed by prep tools when preparing a final version after those tools have replaced all of the associated anchors, targets, and "derivedContent" attributes.¶
This element appears as a child element of <back> (Section 2.9).¶
Content model: this element does not have any contents.¶
This attribute must be the name of an anchor in a <reference> or <referencegroup> element.¶
A definition list. Each entry has a pair of elements: a term (<dt>) and a definition (<dd>). (This is slightly different and simpler than the model used in HTML, which allows for multiple terms for a single definition.)¶
This element appears as a child element of <abstract> (Section 2.1), <aside> (Section 2.7), <blockquote> (Section 2.11), <dd> (Section 2.19), <li> (Section 2.31), <note> (Section 2.35), <section> (Section 2.49), <td> (Section 2.60), and <th> (Section 2.62).¶
One or more sequences of:¶
Document-wide unique identifier for the list.¶
Indicates the indentation to be used for the rendering of the second and following lines of the item (the first line starts with the term, and is not indented). The indentation amount is interpreted as characters when rendering plain-text documents, and en-space units when rendering in formats that have richer typographic support such as HTML or PDF. One en-space is assumed to be the length of 0.5 em-space in CSS units.¶
The "newline" attribute defines whether or not the term appears on the same line as the definition. newline="true" indicates that the term is to the left of the definition, while newline="false" indicates that the term will be on a separate line.¶
Allowed values:¶
Defines whether or not there is a blank line between entries. spacing="normal" indicates a single blank line, while spacing="compact" indicates no space between.¶
Allowed values:¶
The term being defined in a definition list.¶
This element appears as a child element of <dl> (Section 2.21).¶
In any order:¶
Document-wide unique identifier for this term.¶
Indicates text that is semantically emphasized. Text enclosed within this element will be displayed as italic after processing. This element can be combined with other character formatting elements, and the formatting will be additive.¶
This element appears as a child element of <annotation> (Section 2.3), <blockquote> (Section 2.11), <cref> (Section 2.17), <dd> (Section 2.19), <dt> (Section 2.22), <li> (Section 2.31), <name> (Section 2.34), <preamble> (Section 3.6), <refcontent> (Section 2.42), <strong> (Section 2.54), <sub> (Section 2.55), <sup> (Section 2.56), <t> (Section 2.57), <td> (Section 2.60), <th> (Section 2.62), and <tt> (Section 2.66).¶
In any order:¶
Provides an email address.¶
This element appears as a child element of <address> (Section 2.2).¶
Content model: only text content.¶
The ASCII equivalent of the author's email address. This is only used if the email address has any internationalized components.¶
Represents an "external" link (as specified in the "target" attribute). This is useful for embedding URIs in the body of a document.¶
If the <eref> element has non-empty text content, formatters should use the content as the displayed text that is linked. Otherwise, the formatter should use the value of the "target" attribute as the displayed text. Formatters will link the displayed text to the value of the "target" attribute in a manner appropriate for the output format.¶
For example, with an input of:¶
This is described at <eref target="http://www.example.com/reports/r12.html"/>.
An HTML formatter might generate:¶
This is described at <a href="http://www.example.com/reports/r12.html"> http://www.example.com/reports/r12.html</a>.
With an input of:¶
This is described <eref target="http://www.example.com/reports/r12.html"> in this interesting report</eref>.
An HTML formatter might generate:¶
This is described <a href="http://www.example.com/reports/r12.html"> in this interesting report</a>.
This element appears as a child element of <annotation> (Section 2.3), <blockquote> (Section 2.11), <c> (Section 3.1), <cref> (Section 2.17), <dd> (Section 2.19), <dt> (Section 2.22), <em> (Section 2.23), <li> (Section 2.31), <name> (Section 2.34), <postamble> (Section 3.5), <preamble> (Section 3.6), <strong> (Section 2.54), <sub> (Section 2.55), <sup> (Section 2.56), <t> (Section 2.57), <td> (Section 2.60), <th> (Section 2.62), <tt> (Section 2.66), and <ttcol> (Section 3.9).¶
Content model: only text content.¶
TBD¶
This element appears as a child element of <postal> (Section 2.40).¶
Content model: only text content.¶
ASCII equivalent for extaddr.¶
Contains a figure with a caption with the figure number. If the element contains a <name> element, the caption will also show that name.¶
This element appears as a child element of <aside> (Section 2.7), <blockquote> (Section 2.11), <dd> (Section 2.19), <li> (Section 2.31), <section> (Section 2.49), <td> (Section 2.60), and <th> (Section 2.62).¶
In this order:¶
In any order, but at least one of:
Deprecated.¶
Allowed values:¶
Document-wide unique identifier for this figure.¶
Deprecated.¶
Deprecated.¶
Deprecated.¶
Allowed values:¶
Deprecated.¶
Represents the "front matter": metadata (such as author information), the Abstract, and additional notes.¶
A <front> element may have more than one <seriesInfo> element. A <seriesInfo> element determines the document number (for RFCs) or name (for Internet-Drafts). Another <seriesInfo> element determines the "maturity level" (defined in [RFC2026]), using values of "std" for "Standards Track", "bcp" for "BCP", "info" for "Informational", "exp" for "Experimental", and "historic" for "Historic". The "name" attributes of those multiple <seriesInfo> elements interact as described in Section 2.50.¶
This element appears as a child element of <reference> (Section 2.43) and <rfc> (Section 2.48).¶
In this order:¶
Provides terms for the document's index.¶
Index entries can be either regular entries (when just the "item" attribute is given) or nested entries (by specifying "subitem" as well), grouped under a regular entry.¶
Index entries generally refer to the exact place where the <iref> element occurred. An exception is the occurrence as a child element of <section>, in which case the whole section is considered to be relevant for that index entry. In some formats, index entries of this type might be displayed as ranges.¶
When the prep tool is creating index content, it collects the items in a case-sensitive fashion for both the item and subitem level.¶
This element appears as a child element of <annotation> (Section 2.3), <aside> (Section 2.7), <blockquote> (Section 2.11), <c> (Section 3.1), <dd> (Section 2.19), <dt> (Section 2.22), <em> (Section 2.23), <figure> (Section 2.27), <li> (Section 2.31), <name> (Section 2.34), <postamble> (Section 3.5), <preamble> (Section 3.6), <section> (Section 2.49), <strong> (Section 2.54), <sub> (Section 2.55), <sup> (Section 2.56), <t> (Section 2.57), <td> (Section 2.60), <th> (Section 2.62), <tt> (Section 2.66), and <ttcol> (Section 3.9).¶
Content model: this element does not have any contents.¶
The item to include.¶
Setting this to "true" declares the occurrence as "primary", which might cause it to be highlighted in the index. There is no restriction on the number of occurrences that can be "primary".¶
Allowed values:¶
The subitem to include.¶
Specifies a keyword applicable to the document.¶
Note that each element should only contain a single keyword; for multiple keywords, the element can simply be repeated.¶
Keywords are used both in the RFC Index and in the metadata of generated document representations.¶
This element appears as a child element of <front> (Section 2.28).¶
Content model: only text content.¶
This element appears as a child element of <ol> (Section 2.36) and <ul> (Section 2.67).¶
Either:¶
In any order, but at least one of:
Or:¶
In any order, but at least one of:
Document-wide unique identifier for this list item.¶
A link to an external document that is related to the RFC.¶
The following are the supported types of external documents that can be pointed to in a <link> element:¶
In RFC production mode, the prep tool needs to check the values for <link> before an RFC is published. In draft production mode, the prep tool might remove some <link> elements during the draft submission process.¶
This element appears as a child element of <rfc> (Section 2.48).¶
Content model: this element does not have any contents.¶
The URI of the external document.¶
The relationship of the external document to this one. The relationships are taken from the "Link Relations" registry maintained by IANA [LINKRELATIONS].¶
Represents the main content of the document.¶
This element appears as a child element of <rfc> (Section 2.48).¶
One or more <section> elements (Section 2.49)¶
The name of the section, note, figure, or texttable. This name can indicate markup of flowing text (for example, including references or making some characters use a fixed-width font).¶
This element appears as a child element of <figure> (Section 2.27), <note> (Section 2.35), <references> (Section 2.45), <section> (Section 2.49), <table> (Section 2.58), and <texttable> (Section 3.8).¶
In any order:¶
Creates an unnumbered, titled block of text that appears after the Abstract.¶
It is usually used for additional information to reviewers (Working Group information, mailing list, ...) or for additional publication information such as "IESG Notes".¶
This element appears as a child element of <front> (Section 2.28).¶
In this order:¶
In any order, but at least one of:
If set to "true", this note is marked in the prep tool with text indicating that it should be removed before the document is published as an RFC. That text will be "This note is to be removed before publishing as an RFC."¶
Allowed values:¶
An ordered list. The labels on the items will be either a number or a letter, depending on the value of the style attribute.¶
This element appears as a child element of <abstract> (Section 2.1), <aside> (Section 2.7), <blockquote> (Section 2.11), <dd> (Section 2.19), <li> (Section 2.31), <note> (Section 2.35), <section> (Section 2.49), <td> (Section 2.60), and <th> (Section 2.62).¶
One or more <li> elements (Section 2.31)¶
Document-wide unique identifier for the list.¶
When the prep tool sees an <ol> element with a "group" attribute that has already been seen, it continues the numbering of the list from where the previous list with the same group name left off. If an <ol> element has both a "group" attribute and a "start" attribute, the group's numbering is reset to the given start value.¶
Defines whether or not there is a blank line between entries. spacing="normal" indicates a single blank line, while spacing="compact" indicates no space between.¶
Allowed values:¶
The ordinal value at which to start the list. This defaults to "1" and must be an integer of 0 or greater.¶
The type of the labels on list items. If the length of the type value is 1, the meaning is the same as it is for HTML:¶
For types "a" and "A", after the 26th entry, the numbering starts at "aa"/"AA", then "ab"/"AB", and so on.¶
If the length of the type value is greater than 1, the value must contain a percent-encoded indicator and other text. The value is a free-form text that allows counter values to be inserted using a "percent-letter" format. For instance, "[REQ%d]" generates labels of the form "[REQ1]", where "%d" inserts the item number as a decimal number.¶
The following formats are supported:¶
Other formats are reserved for future use. Only one percent encoding other than "%%" is allowed in a type string.¶
It is an error for the type string to be empty. For bulleted lists, use the <ul> element. For lists that have neither bullets nor numbers, use the <ul> element with the 'empty="true"' attribute.¶
If no type attribute is given, the default type is the same as "type='%d.'".¶
This information appears both in the "Author's Address" section and on the front page (see [RFC7322] for more information). If the value is long, an abbreviated variant can be specified in the "abbrev" attribute.¶
This element appears as a child element of <author> (Section 2.8).¶
Content model: only text content.¶
Abbreviated variant.¶
The ASCII equivalent of the organization's name.¶
To support abbreviated organization names in both ASCII and non-ASCII contexts.¶
To support turning off listing organization with author name.¶
Allowed values:¶
Represents a phone number.¶
The value is expected to be the scheme-specific part of a "tel" URI (and so does not include the prefix "tel:"), using the "global-number-digits" syntax. See Section 3 of [RFC3966] for details.¶
This element appears as a child element of <address> (Section 2.2).¶
Content model: only text content.¶
TBD¶
This element appears as a child element of <postal> (Section 2.40).¶
Content model: only text content.¶
ASCII equivalent for pobox.¶
Contains optional child elements providing postal information. These elements will be displayed in an order that is specific to formatters. A postal address can contain only a set of <street>, <city>, <region>, <code>, and <country> elements, or only an ordered set of <postalLine> elements, but not both.¶
This element appears as a child element of <address> (Section 2.2).¶
Either:¶
In any order:
Or:¶
Represents one line of a postal address. When more than one <postalLine> is given, the prep tool emits them in the order given.¶
This element appears as a child element of <postal> (Section 2.40).¶
Content model: only text content.¶
The ASCII equivalent of the text in the address line.¶
Text that should appear between the title and the date of a reference. The purpose of this element is to prevent the need to abuse <seriesInfo> to get such text in a reference.¶
For example:¶
<reference anchor="April1"> <front> <title>On Being A Fool</title> <author initials="K." surname="Phunny" fullname="Knot Phunny"/> <date year="2000" month="April"/> </front> <refcontent>Self-published pamphlet</refcontent> </reference>
would render as:¶
[April1] Phunny, K., "On Being A Fool", Self-published pamphlet, April 2000.
This element appears as a child element of <reference> (Section 2.43).¶
In any order:¶
Represents a bibliographic reference.¶
This element appears as a child element of <referencegroup> (Section 2.44) and <references> (Section 2.45).¶
In this order:¶
In any order:
Document-wide unique identifier for this reference. Usually, this will be used both to "label" the reference in the "References" section and as an identifier in links to this reference entry.¶
Specifies whether or not the title in the reference should be quoted. This can be used to prevent quoting, such as on errata.¶
Allowed values:¶
Holds the URI for the reference.¶
Represents a list of bibliographic references that will be represented as a single reference. This is most often used to reference STDs and BCPs, where a single reference (such as "BCP 9") may encompass more than one RFC.¶
This element appears as a child element of <references> (Section 2.45).¶
One or more <reference> elements (Section 2.43)¶
Document-wide unique identifier for this reference group. Usually, this will be used both to "label" the reference group in the "References" section and as an identifier in links to this reference entry.¶
Holds the URI for the reference.¶
Holds the URI for the reference.¶
Contains a set of bibliographic references.¶
In the early days of the RFC Series, there was only one "References" section per RFC. This convention was later changed to group references into two sets, "Normative" and "Informative", as described in [RFC7322]. This vocabulary supports the split with the <name> child element. In general, the title should be either "Normative References" or "Informative References".¶
This element appears as a child element of <back> (Section 2.9) and <references> (Section 2.45).¶
In this order:¶
Either:
Or:
In any order:
An optional user-supplied identifier for this set of references.¶
Provides the region name in a postal address.¶
This element appears as a child element of <postal> (Section 2.40).¶
Content model: only text content.¶
The ASCII equivalent of the region name.¶
Represents a link to a specific part of a document that appears in a <reference> element. Formatters that have links (such as HTML and PDF) render <relref> elements as external hyperlinks to the specified part of the reference, creating the link target by combining the base URI from the <reference> element with the "relative" attribute from this element. The "target" attribute is required, and it must be the anchor of a <reference> element.¶
The "section" attribute is required, and the "relative" attribute is optional. If the reference is not an RFC or Internet-Draft that is in the v3 format, the element needs to have a "relative" attribute; in this case, the value of the "section" attribute is ignored.¶
An example of the <relref> element with text content might be:¶
See <relref section="2.3" target="RFC9999" displayFormat="bare"> the protocol overview</relref> for more information.
An HTML formatter might generate:¶
See <a href="http://www.rfc-editor.org/rfc/rfc9999.html#s-2.3"> the protocol overview</a> for more information.
Note that the URL in the above example might be different when the RFC Editor deploys the v3 format.¶
This element appears as a child element of <annotation> (Section 2.3), <blockquote> (Section 2.11), <cref> (Section 2.17), <dd> (Section 2.19), <dt> (Section 2.22), <em> (Section 2.23), <li> (Section 2.31), <name> (Section 2.34), <preamble> (Section 3.6), <strong> (Section 2.54), <sub> (Section 2.55), <sup> (Section 2.56), <t> (Section 2.57), <td> (Section 2.60), <th> (Section 2.62), and <tt> (Section 2.66).¶
Content model: only text content.¶
This attribute is used to signal formatters what the desired format of the relative reference should be. Formatters for document types that have linking capability should wrap each part of the displayed text in hyperlinks. If there is content in the <relref> element, formatters will ignore the value of this attribute.¶
See <relref section="2.3" target="RFC9999" displayFormat="of"/> for an overview.
See <a href="http://www.rfc-editor.org/info/rfc9999#s-2.3"> Section 2.3</a> of [<a href="#RFC9999">RFC9999</a>] for an overview.
See <relref section="2.3" target="RFC9999" displayFormat="comma"/>, for an overview.
See [<a href="#RFC9999">RFC9999</a>], <a href="http://www.rfc-editor.org/info/rfc9999#s-2.3"> Section 2.3</a>, for an overview.
See <relref section="2.3" target="RFC9999" displayFormat="parens"/> for an overview.
See [<a href="#RFC9999">RFC9999</a>] (<a href="http://www.rfc-editor.org/info/rfc9999#s-2.3"> Section 2.3</a>) for an overview.
See Sections <relref section="2.3" target="RFC9999" displayFormat="bare"/> and <relref section="2.4" target="RFC9999" displayFormat="of"/> for an overview.
See Sections <a href="http://www.rfc-editor.org/info/rfc9999#s-2.3"> 2.3</a> and <a href="http://www.rfc-editor.org/info/rfc9999#s-2.4"> Section 2.4</a> of [<a href="#RFC9999">RFC9999</a>] for an overview.
Allowed values:¶
Specifies a relative reference from the URI in the target reference. This value must include whatever leading character is needed to create the relative reference; typically, this is "#" for HTML documents.¶
Specifies a section of the target reference. If the reference is not an RFC or Internet-Draft in the v3 format, it is an error.¶
The anchor of the reference for this element. If this value is not an anchor to a <reference> or <referencegroup> element, it is an error. If the reference at the target has no URI, it is an error.¶
This is the root element of the xml2rfc vocabulary.¶
In this order:¶
Deprecated; instead, use the "name" attribute in <seriesInfo>.¶
Affects the generated boilerplate. Note that the values of "no" and "yes" are deprecated and are replaced by "false" (the default) and "true".¶
Allowed values:¶
Deprecated; instead, use the "value" attribute in <seriesInfo>.¶
Specifies whether or not a formatter is requested to include an index in generated files. If the source file has no <iref> elements, an index is never generated. This option is useful for generating documents where the source document has <iref> elements but the author no longer wants an index.¶
Allowed values:¶
Represents the Intellectual Property status of the document. See Appendix A.1 for details.¶
Identifies a single section within the document for which extraction "as is" is explicitly allowed (only relevant for historic values of the "ipr" attribute).¶
Used to determine wheher to produce an RFC or an Internet-Draft.¶
A comma-separated list of RFC numbers or Internet-Draft names.¶
The prep tool will parse the attribute value so that incorrect references can be detected.¶
The date that the XML was processed by a prep tool. This is included in the XML file just before it is saved to disk. The value is formatted using the "date-time" format defined in Section 5.6 of [RFC3339]. The "time-offset" should be "Z".¶
Deprecated; instead, use the "value" attribute in <seriesInfo>.¶
Specifies whether or not the prep tool will sort the references in each reference section.¶
Allowed values:¶
The document stream, as described in [RFC7841]. (The RFC Series Editor may change the list of allowed values in the future.)¶
Allowed values:¶
Specifies whether or not a formatter is requested to use symbolic references (such as "[RFC2119]"). If the value for this is "false", the references come out as numbers (such as "[3]").¶
Allowed values:¶
Specifies the number of levels of headings that a formatter is requested to include in the table of contents; the default is "3".¶
Specifies whether or not a formatter is requested to include a table of contents in generated files.¶
Allowed values:¶
A comma-separated list of RFC numbers or Internet-Draft names.¶
The prep tool will parse the attribute value so that incorrect references can be detected.¶
Specifies the version of xml2rfc syntax used in this document. The only expected value (for now) is "3".¶
Represents a section (when inside a <middle> element) or an appendix (when inside a <back> element).¶
Subsections are created by nesting <section> elements inside <section> elements. Sections are allowed to be empty.¶
This element appears as a child element of <back> (Section 2.9), <boilerplate> (Section 2.12), <middle> (Section 2.33), and <section> (Section 2.49).¶
In this order:¶
In any order:
Document-wide unique identifier for this section.¶
If set to "false", the formatter is requested to not display a section number. The prep tool will verify that such a section is not followed by a numbered section in this part of the document and will verify that the section is a top-level section. Descendant sections of unnumbered sections are unnumbered by definition.¶
Allowed values:¶
If set to "true", this note is marked in the prep tool with text indicating that it should be removed before the document is published as an RFC. That text will be "This note is to be removed before publishing as an RFC."¶
Allowed values:¶
Indicates to a formatter whether or not the section is to be included in a table of contents, if such a table of contents is produced. This only takes effect if the level of the section would have appeared in the table of contents based on the "tocDepth" attribute of the <rfc> element, and of course only if the table of contents is being created based on the "tocInclude" attribute of the <rfc> element. If this is set to "exclude", any section below this one will be excluded as well. The "default" value indicates inclusion of the section if it would be included by the tocDepth attribute of the <rfc> element.¶
Allowed values:¶
Specifies the document series in which this document appears, and also specifies an identifier within that series.¶
A processing tool determines whether it is working on an RFC or an Internet-Draft by inspecting the "name" attribute of a <seriesInfo> element inside the <front> element inside the <rfc> element, looking for "RFC" or "Internet-Draft". (Specifying neither value in any of the <seriesInfo> elements can be useful for producing other types of documents but is out of scope for this specification.)¶
It is invalid to have multiple <seriesInfo> elements inside the same <front> element containing the same "name" value. Some combinations of <seriesInfo> "name" attribute values make no sense, such as having both <seriesInfo name="rfc"/> and <seriesInfo name="Internet-Draft"/> in the same <front> element.¶
This element appears as a child element of <front> (Section 2.28) and <reference> (Section 2.43).¶
Content model: this element does not have any contents.¶
The ASCII equivalent of the name field.¶
The ASCII equivalent of the value field.¶
Some series names might trigger specific processing (such as for autogenerating links, inserting descriptions such as "work in progress", or additional functionality like reference diagnostics). Examples for IETF-related series names are "BCP", "FYI", "Internet-Draft", "RFC", and "STD".¶
Some of the values for "name" interact as follows:¶
The status of this document. The currently known values are "standard", "informational", "experimental", "bcp", "fyi", and "full-standard". The RFC Series Editor may change this list in the future.¶
The stream (as described in [RFC7841]) that originated the document. (The RFC Series Editor may change this list in the future.)¶
Allowed values:¶
The identifier within the series specified by the "name" attribute.¶
For BCPs, FYIs, RFCs, and STDs, this is the number within the series. For Internet-Drafts, it is the full draft name (ending with the two-digit version number). For DOIs, the value is given, such as "10.17487/rfc1149", as described in [RFC7669].¶
The name in the value should be the document name without any file extension. For Internet-Drafts, the value for this attribute should be "draft-ietf-somewg-someprotocol-07", not "draft-ietf-somewg-someprotocol-07.txt".¶
A sorting code is related to postal codes in that it is used in addresses to allow sorting, for example to route mail to a certain postal centre or to distinguish streets with the same name in two different areas of the same settlement.¶
This element appears as a child element of <postal> (Section 2.40).¶
Content model: only text content.¶
ASCII equivalent for sortingcode.¶
This element allows the inclusion of source code into the document.¶
When rendered, source code is always shown in a monospace font. When <sourcecode> is a child of <figure> or <section>, it provides full control of horizontal whitespace and line breaks. When formatted, it is indented relative to the left margin of the enclosing element. It is thus useful for source code and formal languages (such as ABNF [RFC5234] or the RNC notation used in this document). (When <sourcecode> is a child of other elements, it flows with the text that surrounds it.) Tab characters (U+0009) inside of this element are prohibited.¶
For artwork such as character-based art, diagrams of message layouts, and so on, use the <artwork> element instead.¶
Output formatters that do pagination should attempt to keep source code on a single page. This is to prevent source code that is split across pages from looking like two separate pieces of code.¶
See Section 5 for a description of how to deal with issues of using "&" and "<" characters in source code.¶
This element appears as a child element of <blockquote> (Section 2.11), <dd> (Section 2.19), <figure> (Section 2.27), <li> (Section 2.31), <section> (Section 2.49), <td> (Section 2.60), and <th> (Section 2.62).¶
Content model: only text content.¶
Document-wide unique identifier for this source code.¶
A filename suitable for the contents (such as for extraction to a local file). This attribute can be helpful for other kinds of tools (such as automated syntax checkers, which work by extracting the source code). Note that the "name" attribute does not need to be unique for <artwork> elements in a document. If multiple <sourcecode> elements have the same "name" attribute, a formatter might assume that the elements are all fragments of a single file, and such a formatter can collect those fragments for later processing.¶
It is an error to have both a "src" attribute and content in the <sourcecode> element.¶
Specifies the type of the source code. The value of this attribute is free text with certain values designated as preferred.¶
The preferred values for <sourcecode> types are:¶
The RFC Series Editor will maintain a complete list of the preferred values on the RFC Editor web site, and that list is expected to be updated over time. Thus, a consumer of v3 XML should not cause a failure when it encounters an unexpected type or no type is specified.¶
Provides a street address.¶
This element appears as a child element of <postal> (Section 2.40).¶
Content model: only text content.¶
The ASCII equivalent of the street address.¶
Indicates text that is semantically strong. Text enclosed within this element will be displayed as bold after processing. This element can be combined with other character formatting elements, and the formatting will be additive.¶
This element appears as a child element of <annotation> (Section 2.3), <blockquote> (Section 2.11), <cref> (Section 2.17), <dd> (Section 2.19), <dt> (Section 2.22), <em> (Section 2.23), <li> (Section 2.31), <name> (Section 2.34), <preamble> (Section 3.6), <refcontent> (Section 2.42), <sub> (Section 2.55), <sup> (Section 2.56), <t> (Section 2.57), <td> (Section 2.60), <th> (Section 2.62), and <tt> (Section 2.66).¶
In any order:¶
Causes the text to be displayed as subscript, approximately half a letter-height lower than normal text. This element can be combined with other character formatting elements, and the formatting will be additive.¶
This element appears as a child element of <annotation> (Section 2.3), <blockquote> (Section 2.11), <cref> (Section 2.17), <dd> (Section 2.19), <dt> (Section 2.22), <em> (Section 2.23), <li> (Section 2.31), <name> (Section 2.34), <preamble> (Section 3.6), <refcontent> (Section 2.42), <strong> (Section 2.54), <t> (Section 2.57), <td> (Section 2.60), <th> (Section 2.62), and <tt> (Section 2.66).¶
In any order:¶
Causes the text to be displayed as superscript, approximately half a letter-height higher than normal text. This element can be combined with other character formatting elements, and the formatting will be additive.¶
This element appears as a child element of <annotation> (Section 2.3), <blockquote> (Section 2.11), <cref> (Section 2.17), <dd> (Section 2.19), <dt> (Section 2.22), <em> (Section 2.23), <li> (Section 2.31), <name> (Section 2.34), <preamble> (Section 3.6), <refcontent> (Section 2.42), <strong> (Section 2.54), <t> (Section 2.57), <td> (Section 2.60), <th> (Section 2.62), and <tt> (Section 2.66).¶
In any order:¶
Contains a paragraph of text.¶
This element appears as a child element of <abstract> (Section 2.1), <aside> (Section 2.7), <blockquote> (Section 2.11), <dd> (Section 2.19), <li> (Section 2.31), <list> (Section 3.4), <note> (Section 2.35), <section> (Section 2.49), <td> (Section 2.60), and <th> (Section 2.62).¶
In any order:¶
Document-wide unique identifier for this paragraph.¶
Acts as a hint to the output formatters that do pagination to do a best-effort attempt to keep the paragraph with the next element, whatever that happens to be. For example, the HTML output @media print CSS ("CSS" refers to Cascading Style Sheets) might translate this to page-break-after: avoid. For PDF, the paginator could attempt to keep the paragraph with the next element. Note: this attribute is strictly a hint and not always actionable.¶
Allowed values:¶
Acts as a hint to the output formatters that do pagination to do a best-effort attempt to keep the paragraph with the previous element, whatever that happens to be. For example, the HTML output @media print CSS might translate this to page-break-before: avoid. For PDF, the paginator could attempt to keep the paragraph with the previous element. Note: this attribute is strictly a hint and not always actionable.¶
Allowed values:¶
Contains a table with a caption with the table number. If the element contains a <name> element, the caption will also show that name.¶
Inside the <table> element is, optionally, a <thead> element to contain the rows that will be the table's heading and, optionally, a <tfoot> element to contain the rows of the table's footer. If the XML is converted to a representation that has page breaks (such as PDFs or printed HTML), the header and footer are meant to appear on each page.¶
This element appears as a child element of <aside> (Section 2.7), <blockquote> (Section 2.11), and <section> (Section 2.49).¶
In this order:¶
Controls whether the table appears left justified, centered (default), or right justified. The caption will be centered under the table, and the combined table and caption will be aligned according to the "align" attribute.¶
Allowed values:¶
Document-wide unique identifier for this table.¶
A container for a set of body rows for a table.¶
This element appears as a child element of <table> (Section 2.58).¶
One or more <tr> elements (Section 2.65)¶
Document-wide unique identifier for the tbody.¶
A cell in a table row.¶
This element appears as a child element of <tr> (Section 2.65).¶
Either:¶
In any order, but at least one of:
Or:¶
In any order:
Controls whether the content of the cell appears left justified (default), centered, or right justified. Note that "center" or "right" will probably only work well in cells with plain text; any other elements might make the contents render badly.¶
Allowed values:¶
Document-wide unique identifier for the cell.¶
The number of columns that the cell is to span. For example, setting "colspan='3'" indicates that the cell occupies the same horizontal space as three cells of a row without any "colspan" attributes.¶
The number of rows that the cell is to span. For example, setting "rowspan='3'" indicates that the cell occupies the same vertical space as three rows.¶
A container for a set of footer rows for a table.¶
This element appears as a child element of <table> (Section 2.58).¶
One or more <tr> elements (Section 2.65)¶
Document-wide unique identifier for the tfoot.¶
A cell in a table row. When rendered, this will normally come out in boldface; other than that, there is no difference between this and the <td> element.¶
This element appears as a child element of <tr> (Section 2.65).¶
Either:¶
In any order, but at least one of:
Or:¶
In any order:
Controls whether the content of the cell appears left justified (default), centered, or right justified. Note that "center" or "right" will probably only work well in cells with plain text; any other elements might make the contents render badly.¶
Allowed values:¶
Document-wide unique identifier for the row.¶
The number of columns that the cell is to span. For example, setting "colspan='3'" indicates that the cell occupies the same horizontal space as three cells of a row without any "colspan" attributes.¶
The number of rows that the cell is to span. For example, setting "rowspan='3'" indicates that the cell occupies the same vertical space as three rows.¶
A container for a set of header rows for a table.¶
This element appears as a child element of <table> (Section 2.58).¶
One or more <tr> elements (Section 2.65)¶
Document-wide unique identifier for the thead.¶
Represents the document title.¶
When this element appears in the <front> element of the current document, the title might also appear in page headers or footers. If it is long (~40 characters), the "abbrev" attribute can be used to specify an abbreviated variant.¶
This element appears as a child element of <front> (Section 2.28).¶
Content model: only text content.¶
Specifies an abbreviated variant of the document title.¶
The ASCII equivalent of the title.¶
A row of a table.¶
This element appears as a child element of <tbody> (Section 2.59), <tfoot> (Section 2.61), and <thead> (Section 2.63).¶
In any order, but at least one of:¶
Document-wide unique identifier for the row.¶
Causes the text to be displayed in a constant-width font. This element can be combined with other character formatting elements, and the formatting will be additive.¶
This element appears as a child element of <annotation> (Section 2.3), <blockquote> (Section 2.11), <cref> (Section 2.17), <dd> (Section 2.19), <dt> (Section 2.22), <em> (Section 2.23), <li> (Section 2.31), <name> (Section 2.34), <preamble> (Section 3.6), <refcontent> (Section 2.42), <strong> (Section 2.54), <sub> (Section 2.55), <sup> (Section 2.56), <t> (Section 2.57), <td> (Section 2.60), and <th> (Section 2.62).¶
In any order:¶
An unordered list. The labels on the items will be symbols picked by the formatter.¶
This element appears as a child element of <abstract> (Section 2.1), <aside> (Section 2.7), <blockquote> (Section 2.11), <dd> (Section 2.19), <li> (Section 2.31), <note> (Section 2.35), <section> (Section 2.49), <td> (Section 2.60), and <th> (Section 2.62).¶
One or more <li> elements (Section 2.31)¶
Document-wide unique identifier for the list.¶
Defines whether or not the label is empty. empty="true" indicates that no label will be shown.¶
Allowed values:¶
Defines whether or not there is a blank line between entries. spacing="normal" indicates a single blank line, while spacing="compact" indicates no space between.¶
Allowed values:¶
Contains a web address associated with the author.¶
The contents should be a valid URI; this most likely will be an "http:" or "https:" URI.¶
This element appears as a child element of <address> (Section 2.2).¶
Content model: only text content.¶
This element is used to specify the Working Group (IETF) or Research Group (IRTF) from which the document originates, if any. The recommended format is the official name of the Working Group (with some capitalization).¶
In Internet-Drafts, this is used in the upper left corner of the boilerplate, replacing the "Network Working Group" string. Formatting software can append the words "Working Group" or "Research Group", depending on the "submissionType" property of the <rfc> element (Section 2.48.12).¶
This element appears as a child element of <front> (Section 2.28).¶
Content model: only text content.¶
A reference to an anchor in this document. Formatters that have links (such as HTML and PDF) are likely to render <xref> elements as internal hyperlinks. This element is useful for referring to references in the "References" section, to specific sections of this document, to specific figures, and so on. The "target" attribute is required.¶
This element appears as a child element of <annotation> (Section 2.3), <blockquote> (Section 2.11), <c> (Section 3.1), <cref> (Section 2.17), <dd> (Section 2.19), <dt> (Section 2.22), <em> (Section 2.23), <li> (Section 2.31), <name> (Section 2.34), <postamble> (Section 3.5), <preamble> (Section 3.6), <strong> (Section 2.54), <sub> (Section 2.55), <sup> (Section 2.56), <t> (Section 2.57), <td> (Section 2.60), <th> (Section 2.62), <tt> (Section 2.66), and <ttcol> (Section 3.9).¶
Content model: only text content.¶
This attribute signals to formatters what the desired format of the reference should be. Formatters for document types that have linking capability should wrap the displayed text in hyperlinks.¶
<section anchor="overview">Protocol Overview</section> . . . See Section <xref target="overview" format="counter"/> for an overview.
<section anchor="overview">Protocol Overview</section> . . . See <xref target="overview"/> for an overview.
Allowed values:¶
Deprecated.¶
Allowed values:¶
Identifies the document component being referenced. The value needs to match the value of the "anchor" attribute of an element in the document; otherwise, it is an error.¶
This section lists the elements from v2 that have been deprecated. Note that some elements in v3 have attributes from v2 that are deprecated; those are not listed here.¶
This element appears as a child element of <texttable> (Section 3.8).¶
In any order:¶
This element appears as a child element of <address> (Section 2.2).¶
Content model: only text content.¶
Deprecated. If the goal is to provide a single URI for a reference, use the "target" attribute in <reference> instead.¶
This element appears as a child element of <reference> (Section 2.43).¶
Content model: this element does not have any contents.¶
Deprecated.¶
Deprecated.¶
Deprecated.¶
Deprecated. Instead, use <dl> for list/@style "hanging"; <ul> for list/@style "empty" or "symbols"; and <ol> for list/@style "letters", "numbers", "counter", or "format".¶
This element appears as a child element of <t> (Section 2.57).¶
One or more <t> elements (Section 2.57)¶
Deprecated.¶
Deprecated. Instead, use a regular paragraph after the figure or table.¶
This element appears as a child element of <figure> (Section 2.27) and <texttable> (Section 3.8).¶
In any order:¶
Deprecated. Instead, use a regular paragraph before the figure or table.¶
This element appears as a child element of <figure> (Section 2.27) and <texttable> (Section 3.8).¶
In any order:¶
Deprecated.¶
This element appears as a child element of <annotation> (Section 2.3), <c> (Section 3.1), <postamble> (Section 3.5), <preamble> (Section 3.6), and <t> (Section 2.57).¶
Content model: only text content.¶
Deprecated.¶
Allowed values:¶
This element appears as a child element of <section> (Section 2.49).¶
In this order:¶
Deprecated.¶
Allowed values:¶
Deprecated.¶
Deprecated.¶
Allowed values:¶
Deprecated.¶
Allowed values:¶
Deprecated.¶
This element appears as a child element of <texttable> (Section 3.8).¶
In any order:¶
Deprecated.¶
Allowed values:¶
Deprecated.¶
Deprecated. In earlier versions of this format, <vspace> was often used to get an extra blank line in a list element; in the v3 vocabulary, that can be done instead by using multiple <t> elements inside the <li> element. Other uses have no direct replacement.¶
This element appears as a child element of <t> (Section 2.57).¶
Content model: this element does not have any contents.¶
Deprecated.¶
A common problem authors have with <artwork> and <sourcecode> elements is that the XML processor returns errors if the text in the artwork contains either the "&" or "<" character, or the string "]]>". To avoid these problems, the "&" and "<" characters may be escaped using the strings "&" and "<", respectively; the "]]>" string can be represented as "]]>". Alternatively, they may be surrounded in a CDATA structure: "<![CDATA[]]>". For example:¶
Desired output: allowed-chars = "." | "," | "&" | "<" | ">" | "|" Using escaping: <sourcecode> allowed-chars = "." | "," | "&" | "<" | ">" | "|" </sourcecode> Using CDATA: <sourcecode> <![CDATA[ allowed-chars = "." | "," | "&" | "<" | ">" | "|"]]> </sourcecode>
Using CDATA is not a panacea, but it does help prevent having to use escapes in places where using escapes can cause other problems, such as difficulty of inclusion from other documents.¶
The "name" attribute of the <artwork> element (Section 2.6.5) can be used to derive a filename for saving to a local file system. Trusting this kind of information without pre-processing is a known security risk; see Section 4.3 of [RFC6266] for more information.¶
The "src" attribute of the <artwork> element can be used to read files from the local system. Processing tools must be careful to not accept dangerous values for the filename, particularly those that contain absolute references outside the current directory.¶
The "type" attribute of the <artwork> and <sourcecode> elements is meant to encourage formatters to automatically extract known types of content from an RFC or Internet-Draft. While extraction is probably safe, those tools might also think that they could further process the extracted content, such as by rendering artwork or executing code. Doing so without first sanity-checking the extracted content is clearly a terrible idea from a security perspective. More generally, a tool that is reading XML input needs to be suspicious of any content that it intends to post-process.¶
When there is an external reference to a URL, a processor or renderer should fetch the content into a sandbox and should have only a localized impact on the document processing and rendering.¶
IANA maintains the registry of Internet Media Types [RFC6838] at <https://www.iana.org/assignments/media-types>.¶
This document updates the specification for the Internet Media Type "application/rfc+xml" from the one in [RFC7749]. The following has been registered with IANA.¶
IANA has registered "convertedFrom" in the "Link Relation Types" registry [LINKRELATIONS].¶
Relation Name: convertedFrom¶
Description: The document linked to was later converted to the document that contains this link relation. For example, an RFC can have a link to the Internet-Draft that became the RFC; in that case, the link relation would be "convertedFrom".¶
Reference: This document.¶
Notes: This relation is different than "predecessor-version" in that "predecessor-version" is for items in a version control system. It is also different than "previous" in that this relation is used for converted resources, not those that are part of a sequence of resources.¶
Application Data: None¶
The values listed here will be defined by the RFC Series Editor. Those listed here are believed to be the current values in use.¶
This attribute value can take a long list of values, each of which describes an IPR policy for the document (Section 2.48.5). The values are not the result of a grand design, but they remain simply for historic reasons. Of these values, only a few are currently in use; all others are supported by various tools for backwards compatibility with old source files.¶
Disclaimer: THIS ONLY PROVIDES IMPLEMENTATION INFORMATION. IF YOU NEED LEGAL ADVICE, PLEASE CONTACT A LAWYER. For further information, refer to <http://trustee.ietf.org/docs/IETF-Copyright-FAQ.pdf>.¶
For the current "Copyright Notice" text, the submissionType attribute of the <rfc> element (Section 2.48.12) determines whether a statement about "Code Components" is inserted (which is the case for the value "IETF", which is the default). Other values, such as "independent", suppress this part of the text.¶
The name for these values refers to version 2.0 of the IETF Trust's "Legal Provisions Relating to IETF Documents", sometimes simply called the "TLP", which went into effect on February 15, 2009 [TLP2.0]. Updates to the document were published on September 12, 2009 [TLP3.0] and on December 28, 2009 [TLP4.0], modifying the license for code components (see <http://trustee.ietf.org/license-info/> for further information). The actual text is located in Section 6 ("Text to Be Included in IETF Documents") of these documents.¶
The prep tool automatically produces the "correct" text, depending on the document's date information (see above):¶
This value should be used unless one of the more specific "*trust200902" values is a better fit. It produces the text in Sections 6.a and 6.b of the TLP.¶
This produces the additional text from Section 6.c.i of the TLP:¶
This document may not be modified, and derivative works of it may not be created, except to format it for publication as an RFC or to translate it into languages other than English.¶
This produces the additional text from Section 6.c.ii of the TLP:¶
This document may not be modified, and derivative works of it may not be created, and it may not be published except as an Internet-Draft.¶
This produces the additional text from Section 6.c.iii of the TLP, frequently called the "pre-5378 escape clause" referring to changes introduced in [RFC5378]:¶
This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate it into languages other than English.¶
See Section 4 of <http://trustee.ietf.org/docs/IETF-Copyright-FAQ.pdf> for further information about when to use this value.¶
The attribute values "full2026" and "noDerivativeWorks2026" are similar to their counterparts above, except that they use text specified in Section 10 of [RFC2026].¶
The special value "none" was also used back then; it denied the IETF any rights beyond publication as an Internet-Draft.¶
The RFC Editor publishes documents from different "document streams", of which the "IETF stream" is the most prominent. Other streams are the "Independent Submissions stream" (used for things such as discussion of Internet-related technologies that are not part of the IETF agenda), the "IAB stream" (Internet Architecture Board), and the "IRTF stream" (Internet Research Task Force).¶
The values for the attribute are "IETF" (the default value), "independent", "IAB", and "IRTF".¶
Historically, this attribute did not affect the final appearance of RFCs, except for subtle differences in copyright notices. Nowadays (as of [RFC7841]), the stream name appears in the first line of the front page, and it also affects the text in the "Status of This Memo" section.¶
For current documents, setting the "submissionType" attribute will have the following effect:¶
For some of the publication streams (see Appendix A.2), the "Status of This Memo" section depends on whether there was a consensus to publish (again, see Section 3.4 of [RFC7841]).¶
The consensus attribute can be used to supply this information. The acceptable values are "true" (the default) and "false"; "yes" and "no" from v2 are deprecated.¶
The effect of this value for the various streams is:¶
This section describes topics that are specific to v3 processing tools. Note that there is some discussion of tools in the main body of the document as well. For example, some elements have descriptions of how a processing tool might create output from the element.¶
The expected design of the tools that will be used with v3 documents includes:¶
A "prep tool" that takes a v3 document, makes many checks, adds and changes many attribute values, and creates a file that is a "prepared document". The prepared document is a valid v3 document. The prep tool is described in [RFC7998].
The prep tool is expected to have many modes:
There may also be processing tools that are meant to run on the computers of authors. These tools may be used to produce interim versions of the non-canonical representations so that authors can see how their XML might later be rendered, to create documents in representations different than those supported by the RFC Editor, to possibly create documents that are not meant to be Internet-Drafts or RFCs, and to convert XML that has external information into XML that has that external information included.¶
The prep tool is expected to have clear error reporting, giving more context than just a line number. For example, the error messages should differentiate between errors in XML and those from the v3 format.¶
In v2, the grammar was specified as a DTD. In v3, the grammar is specified only as RELAX Next Generation (RNG). This means that tools need to work from the RNG, not from a DTD. Some of the features of the v3 grammar cannot be specified as a DTD.¶
All tools for the v3 format are expected to support XInclude [XInclude]. XInclude specifies a processing model and syntax for general-purpose inclusion of information that is either on the Internet or local to the user's computer.¶
In the v3 syntax, XInclude is expressed as the <xi:include> element. To use this element, you need to include the "xi" namespace in the <rfc> element; that is, you need to specify¶
xmlns:xi="http://www.w3.org/2001/XInclude"
The most common way to use <xi:include> is to pull in references that are already formed as XML. Currently, this can be done from xml2rfc.tools.ietf.org, but later this is expected to be from the RFC Editor. For example, if a document has three normative references, all RFCs, the document might contain:¶
<references> <xi:include href="http://xml2rfc.tools.ietf.org/public/rfc/ bibxml/reference.RFC.2119.xml"/> <xi:include href="http://xml2rfc.tools.ietf.org/public/rfc/ bibxml/reference.RFC.4869.xml"/> <xi:include href="http://xml2rfc.tools.ietf.org/public/rfc/ bibxml/reference.RFC.7169.xml"/> </references>
<xi:include> can be used anywhere an XML element could be used (but not where free text is used). For example, if three Internet-Drafts are all including a particular paragraph or section verbatim, that text can be kept either in a file or somewhere on the web and can be included with <xi:include>. An example of pulling something from the local disk would be:¶
<x:include href="file://home/chris/ietf/drafts/commontext.xml"/>
In general, XInclude should be used instead of ENTITY references and XML Processing Instructions (PIs) that allow external inclusions.¶
People writing and reading Internet-Drafts and RFCs often want to make reference to specific locations in those documents. In the case of RFC authors, it is common to want to reference another part of their document, such as "see Section 3.2 of this document." Readers, on the other hand, want to reference parts of documents that they didn't write, such as "see Section 3.2 of RFC 6949." The XML vocabulary in this document attempts to support both sets of people.¶
Authors can leave anchors in a document that can later be used for references with the "anchor" attribute. Anchors can be included in the numerous elements. The author can then refer to that anchor in the "target" attribute of the <xref> element.¶
Readers can refer to any element that has an "anchor" attribute by that attribute. Note, however, that most of the time, elements won't have anchors. In the common case, the reader wants to refer to an element that does not have an "anchor" attribute, but that element has a "pn" attribute.¶
Processing tools add the "pn" attribute to many elements during processing. This attribute and its value are automatically generated by the tool if the attribute is not there; if the attribute is already there, the tool may replace the value.¶
In the HTML representation of this XML vocabulary, both anchors and "pn" attributes will be used in the "id" attributes of elements. Thus, there can be no overlap between the names entered in "anchor" attributes, in "slugifiedName" attributes, and those that are generated for the "pn" attributes. Also, there are some values for the "anchor" values that are reserved for sections, and those sections can only have those anchor values.¶
The following rules prevent this overlap:¶
Many elements in the v3 vocabulary have new attributes whose role is to hold values generated by the prep tool. These attributes can exist in documents that are input to the prep tool; however, any of these attributes might be added, removed, or changed by the prep tool. Thus, it is explicitly unsafe for a document author to include these attributes and expect that their values will survive processing by the prep tool.¶
The attributes that are controlled by the prep tool are:¶
In addition, note that the contents of the <boilerplate> element are controlled by the prep tool.¶
The following is the RELAX NG schema for the v3 format.¶
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0" # xml2rfc Version 3 grammar rfc = element rfc { attribute xml:base { text }?, attribute xml:lang { text }?, attribute number { text }?, [ a:defaultValue = "" ] attribute obsoletes { text }?, [ a:defaultValue = "" ] attribute updates { text }?, attribute category { text }?, attribute mode { text }?, [ a:defaultValue = "false" ] attribute consensus { "no" | "yes" | "false" | "true" }?, attribute seriesNo { text }?, attribute ipr { text }?, attribute iprExtract { xsd:IDREF }?, [ a:defaultValue = "IETF" ] attribute submissionType { "IETF" | "IAB" | "IRTF" | "independent" }?, attribute docName { text }?, [ a:defaultValue = "false" ] attribute sortRefs { "true" | "false" }?, [ a:defaultValue = "true" ] attribute symRefs { "true" | "false" }?, [ a:defaultValue = "true" ] attribute tocInclude { "true" | "false" }?, [ a:defaultValue = "3" ] attribute tocDepth { text }?, attribute prepTime { text }?, [ a:defaultValue = "true" ] attribute indexInclude { "true" | "false" }?, attribute version { text }?, [ a:defaultValue = "Common,Latin" ] attribute scripts { text }?, attribute expiresDate { text }?, link*, front, middle, back? } link = element link { attribute xml:base { text }?, attribute xml:lang { text }?, attribute href { text }, attribute rel { text }? } front = element front { attribute xml:base { text }?, attribute xml:lang { text }?, title, seriesInfo*, author+, date?, area*, workgroup*, keyword*, abstract?, note*, boilerplate? } title = element title { attribute xml:base { text }?, attribute xml:lang { text }?, attribute abbrev { text }?, attribute ascii { text }?, text } author = element author { attribute xml:base { text }?, attribute xml:lang { text }?, attribute initials { text }?, attribute asciiInitials { text }?, attribute surname { text }?, attribute asciiSurname { text }?, attribute fullname { text }?, attribute role { "editor" }?, attribute asciiFullname { text }?, organization?, address? } organization = element organization { attribute xml:base { text }?, attribute xml:lang { text }?, attribute abbrev { text }?, attribute ascii { text }?, attribute asciiAbbrev { text }?, [ a:defaultValue = "true" ] attribute showOnFrontPage { "true" | "false" }?, text } address = element address { attribute xml:base { text }?, attribute xml:lang { text }?, postal?, phone?, facsimile?, email?, uri? } postal = element postal { attribute xml:base { text }?, attribute xml:lang { text }?, ((city | cityarea | code | country | extaddr | pobox | region | sortingcode | street)* | postalLine+) } cityarea = element cityarea { attribute xml:base { text }?, attribute xml:lang { text }?, attribute ascii { text }?, text } extaddr = element extaddr { attribute xml:base { text }?, attribute xml:lang { text }?, attribute ascii { text }?, text } pobox = element pobox { attribute xml:base { text }?, attribute xml:lang { text }?, attribute ascii { text }?, text } sortingcode = element sortingcode { attribute xml:base { text }?, attribute xml:lang { text }?, attribute ascii { text }?, text } street = element street { attribute xml:base { text }?, attribute xml:lang { text }?, attribute ascii { text }?, text } city = element city { attribute xml:base { text }?, attribute xml:lang { text }?, attribute ascii { text }?, text } region = element region { attribute xml:base { text }?, attribute xml:lang { text }?, attribute ascii { text }?, text } code = element code { attribute xml:base { text }?, attribute xml:lang { text }?, attribute ascii { text }?, text } country = element country { attribute xml:base { text }?, attribute xml:lang { text }?, attribute ascii { text }?, text } postalLine = element postalLine { attribute xml:base { text }?, attribute xml:lang { text }?, attribute ascii { text }?, text } phone = element phone { attribute xml:base { text }?, attribute xml:lang { text }?, text } facsimile = element facsimile { attribute xml:base { text }?, attribute xml:lang { text }?, text } email = element email { attribute xml:base { text }?, attribute xml:lang { text }?, attribute ascii { text }?, text } uri = element uri { attribute xml:base { text }?, attribute xml:lang { text }?, text } date = element date { attribute xml:base { text }?, attribute xml:lang { text }?, attribute day { text }?, attribute month { text }?, attribute year { text }?, empty } area = element area { attribute xml:base { text }?, attribute xml:lang { text }?, text } workgroup = element workgroup { attribute xml:base { text }?, attribute xml:lang { text }?, text } keyword = element keyword { attribute xml:base { text }?, attribute xml:lang { text }?, text } abstract = element abstract { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute pn { text }?, (dl | ol | t | ul)+ } note = element note { attribute xml:base { text }?, attribute xml:lang { text }?, attribute title { text }?, attribute pn { text }?, [ a:defaultValue = "false" ] attribute removeInRFC { "true" | "false" }?, name?, (dl | ol | t | ul)+ } boilerplate = element boilerplate { attribute xml:base { text }?, attribute xml:lang { text }?, section+ } middle = element middle { attribute xml:base { text }?, attribute xml:lang { text }?, section+ } section = element section { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute pn { text }?, attribute title { text }?, [ a:defaultValue = "true" ] attribute numbered { "true" | "false" }?, [ a:defaultValue = "default" ] attribute toc { "include" | "exclude" | "default" }?, [ a:defaultValue = "false" ] attribute removeInRFC { "true" | "false" }?, name?, (artset | artwork | aside | blockquote | dl | figure | iref | ol | sourcecode | t | table | texttable | ul)*, section* } name = element name { attribute xml:base { text }?, attribute xml:lang { text }?, attribute slugifiedName { text }?, (text | bcp14 | cref | em | eref | iref | relref | strong | sub | sup | tt | xref)* } t = element t { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute pn { text }?, attribute hangText { text }?, [ a:defaultValue = "false" ] attribute keepWithNext { "false" | "true" }?, [ a:defaultValue = "false" ] attribute keepWithPrevious { "false" | "true" }?, (text | bcp14 | cref | em | eref | iref | \list | relref | spanx | strong | sub | sup | tt | vspace | xref)* } aside = element aside { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute pn { text }?, (artset | artwork | dl | figure | iref | ol | t | table | ul)* } blockquote = element blockquote { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute pn { text }?, attribute cite { text }?, attribute quotedFrom { text }?, ((artset | artwork | dl | figure | ol | sourcecode | t | table | ul)+ | (text | bcp14 | cref | em | eref | iref | relref | strong | sub | sup | tt | xref)+) } \list = element list { attribute xml:base { text }?, attribute xml:lang { text }?, [ a:defaultValue = "empty" ] attribute style { text }?, attribute hangIndent { text }?, attribute counter { text }?, attribute pn { text }?, t+ } ol = element ol { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, [ a:defaultValue = "1" ] attribute type { text }?, [ a:defaultValue = "1" ] attribute start { text }?, attribute group { text }?, [ a:defaultValue = "normal" ] attribute spacing { "normal" | "compact" }?, attribute pn { text }?, li+ } ul = element ul { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, [ a:defaultValue = "normal" ] attribute spacing { "normal" | "compact" }?, ([ a:defaultValue = "false" ] attribute empty { "false" | "true" }, attribute pn { text }?)?, li+ } li = element li { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute pn { text }?, ((artset | artwork | blockquote | dl | figure | ol | sourcecode | t | ul)+ | (text | bcp14 | cref | em | eref | iref | relref | strong | sub | sup | tt | xref)+) } dl = element dl { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, [ a:defaultValue = "normal" ] attribute spacing { "normal" | "compact" }?, [ a:defaultValue = "true" ] attribute newline { "false" | "true" }?, [ a:defaultValue = "0" ] attribute indent { text }?, attribute pn { text }?, (dt, dd)+ } dt = element dt { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute pn { text }?, (text | bcp14 | cref | em | eref | iref | relref | strong | sub | sup | tt | xref)* } dd = element dd { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute pn { text }?, ((artset | artwork | dl | figure | ol | sourcecode | t | ul)+ | (text | bcp14 | cref | em | eref | iref | relref | strong | sub | sup | tt | xref)+) } xref = element xref { attribute xml:base { text }?, attribute xml:lang { text }?, attribute target { xsd:IDREF }, [ a:defaultValue = "false" ] attribute pageno { "true" | "false" }?, [ a:defaultValue = "default" ] attribute format { "default" | "title" | "counter" | "none" }?, attribute derivedContent { text }?, text } relref = element relref { attribute xml:base { text }?, attribute xml:lang { text }?, attribute target { xsd:IDREF }, [ a:defaultValue = "of" ] attribute displayFormat { "of" | "comma" | "parens" | "bare" }?, attribute section { text }, attribute relative { text }?, attribute derivedLink { text }?, text } eref = element eref { attribute xml:base { text }?, attribute xml:lang { text }?, attribute target { text }, text } iref = element iref { attribute xml:base { text }?, attribute xml:lang { text }?, attribute item { text }, [ a:defaultValue = "" ] attribute subitem { text }?, [ a:defaultValue = "false" ] attribute primary { "true" | "false" }?, attribute pn { text }?, empty } cref = element cref { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute source { text }?, [ a:defaultValue = "true" ] attribute display { "true" | "false" }?, (text | em | eref | relref | strong | sub | sup | tt | xref)* } tt = element tt { attribute xml:base { text }?, attribute xml:lang { text }?, (text | bcp14 | cref | em | eref | iref | relref | strong | sub | sup | xref)* } strong = element strong { attribute xml:base { text }?, attribute xml:lang { text }?, (text | bcp14 | cref | em | eref | iref | relref | sub | sup | tt | xref)* } em = element em { attribute xml:base { text }?, attribute xml:lang { text }?, (text | bcp14 | cref | eref | iref | relref | strong | sub | sup | tt | xref)* } sub = element sub { attribute xml:base { text }?, attribute xml:lang { text }?, (text | bcp14 | cref | em | eref | iref | relref | strong | tt | xref)* } sup = element sup { attribute xml:base { text }?, attribute xml:lang { text }?, (text | bcp14 | cref | em | eref | iref | relref | strong | tt | xref)* } spanx = element spanx { attribute xml:base { text }?, attribute xml:lang { text }?, [ a:defaultValue = "preserve" ] attribute xml:space { "default" | "preserve" }?, [ a:defaultValue = "emph" ] attribute style { text }?, text } vspace = element vspace { attribute xml:base { text }?, attribute xml:lang { text }?, [ a:defaultValue = "0" ] attribute blankLines { text }?, empty } figure = element figure { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute pn { text }?, [ a:defaultValue = "" ] attribute title { text }?, [ a:defaultValue = "false" ] attribute suppress-title { "true" | "false" }?, attribute src { text }?, attribute originalSrc { text }?, [ a:defaultValue = "left" ] attribute align { "left" | "center" | "right" }?, [ a:defaultValue = "" ] attribute alt { text }?, [ a:defaultValue = "" ] attribute width { text }?, [ a:defaultValue = "" ] attribute height { text }?, name?, iref*, preamble?, (artset | artwork | sourcecode)+, postamble? } table = element table { attribute xml:base { text }?, attribute xml:lang { text }?, [ a:defaultValue = "center" ] attribute align { "left" | "center" | "right" }?, attribute anchor { xsd:ID }?, attribute pn { text }?, name?, thead?, tbody+, tfoot? } preamble = element preamble { attribute xml:base { text }?, attribute xml:lang { text }?, (text | bcp14 | cref | em | eref | iref | relref | spanx | strong | sub | sup | tt | xref)* } artset = element artset { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute pn { text }?, artwork+ } artwork = element artwork { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute pn { text }?, attribute xml:space { text }?, [ a:defaultValue = "" ] attribute name { text }?, [ a:defaultValue = "" ] attribute type { text }?, attribute src { text }?, [ a:defaultValue = "left" ] attribute align { "left" | "center" | "right" }?, [ a:defaultValue = "" ] attribute alt { text }?, [ a:defaultValue = "" ] attribute width { text }?, [ a:defaultValue = "" ] attribute height { text }?, attribute originalSrc { text }?, (text* | svg) } # TODO: replace with link to RSE site, or provide an inline version include "svg.rnc" sourcecode = element sourcecode { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute pn { text }?, [ a:defaultValue = "" ] attribute name { text }?, [ a:defaultValue = "" ] attribute type { text }?, attribute src { text }?, attribute originalSrc { text }?, text } thead = element thead { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, tr+ } tbody = element tbody { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, tr+ } tfoot = element tfoot { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, tr+ } tr = element tr { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, (td | th)+ } td = element td { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, [ a:defaultValue = "0" ] attribute colspan { text }?, [ a:defaultValue = "0" ] attribute rowspan { text }?, [ a:defaultValue = "left" ] attribute align { "left" | "center" | "right" }?, ((artset | artwork | dl | figure | ol | sourcecode | t | ul)+ | (text | bcp14 | cref | em | eref | iref | relref | strong | sub | sup | tt | xref)*) } th = element th { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, [ a:defaultValue = "0" ] attribute colspan { text }?, [ a:defaultValue = "0" ] attribute rowspan { text }?, [ a:defaultValue = "left" ] attribute align { "left" | "center" | "right" }?, ((artset | artwork | dl | figure | ol | sourcecode | t | ul)+ | (text | bcp14 | cref | em | eref | iref | relref | strong | sub | sup | tt | xref)*) } postamble = element postamble { attribute xml:base { text }?, attribute xml:lang { text }?, (text | cref | eref | iref | spanx | xref)* } texttable = element texttable { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }?, [ a:defaultValue = "" ] attribute title { text }?, [ a:defaultValue = "false" ] attribute suppress-title { "true" | "false" }?, [ a:defaultValue = "center" ] attribute align { "left" | "center" | "right" }?, [ a:defaultValue = "full" ] attribute style { "all" | "none" | "headers" | "full" }?, name?, preamble?, ttcol+, c*, postamble? } ttcol = element ttcol { attribute xml:base { text }?, attribute xml:lang { text }?, attribute width { text }?, [ a:defaultValue = "left" ] attribute align { "left" | "center" | "right" }?, (cref | eref | iref | xref | text)* } c = element c { attribute xml:base { text }?, attribute xml:lang { text }?, (text | cref | eref | iref | spanx | xref)* } bcp14 = element bcp14 { attribute xml:base { text }?, attribute xml:lang { text }?, text } back = element back { attribute xml:base { text }?, attribute xml:lang { text }?, displayreference*, references, section* } displayreference = element displayreference { attribute xml:base { text }?, attribute xml:lang { text }?, attribute target { xsd:IDREF }, attribute to { text } } references = element references { attribute xml:base { text }?, attribute xml:lang { text }?, attribute pn { text }?, attribute anchor { xsd:ID }?, attribute title { text }?, name?, (references+ | (reference | referencegroup)*) } reference = element reference { attribute xml:base { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }, attribute target { text }?, [ a:defaultValue = "true" ] attribute quote-title { "true" | "false" }?, front, (annotation | format | refcontent | seriesInfo)* } referencegroup = element referencegroup { attribute xml:base { text }?, attribute target { text }?, attribute xml:lang { text }?, attribute anchor { xsd:ID }, reference+ } seriesInfo = element seriesInfo { attribute xml:base { text }?, attribute xml:lang { text }?, attribute name { text }, attribute value { text }, attribute asciiName { text }?, attribute asciiValue { text }?, attribute status { text }?, [ a:defaultValue = "IETF" ] attribute stream { "IETF" | "IAB" | "IRTF" | "independent" }?, empty } format = element format { attribute xml:base { text }?, attribute xml:lang { text }?, attribute target { text }?, attribute type { text }, attribute octets { text }?, empty } annotation = element annotation { attribute xml:base { text }?, attribute xml:lang { text }?, (text | bcp14 | cref | em | eref | iref | relref | spanx | strong | sub | sup | tt | xref)* } refcontent = element refcontent { attribute xml:base { text }?, attribute xml:lang { text }?, (text | bcp14 | em | strong | sub | sup | tt)* } start |= rfc
The following is a non-normative comparison of the v3 format to the v2 format. A "-" indicates lines removed from the v2 schema, and a "+" indicates lines added to the v3 schema.¶
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0" + # xml2rfc Version 3 grammar rfc = element rfc { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute number { text }?, [ a:defaultValue = "" ] attribute obsoletes { text }?, [ a:defaultValue = "" ] attribute updates { text }?, - attribute category { "std" | "bcp" | "info" | "exp" | - "historic" }?, - attribute consensus { "no" | "yes" }?, + attribute category { text }?, + attribute mode { text }?, + [ a:defaultValue = "false" ] + attribute consensus { "no" | "yes" | "false" | "true" }?, attribute seriesNo { text }?, - attribute ipr { - "full2026" - | "noDerivativeWorks2026" - | "none" - | "full3667" - | "noModification3667" - | "noDerivatives3667" - | "full3978" - | "noModification3978" - | "noDerivatives3978" - | "trust200811" - | "noModificationTrust200811" - | "noDerivativesTrust200811" - | "trust200902" - | "noModificationTrust200902" - | "noDerivativesTrust200902" - | "pre5378Trust200902" - }?, + attribute ipr { text }?, attribute iprExtract { xsd:IDREF }?, [ a:defaultValue = "IETF" ] attribute submissionType { "IETF" | "IAB" | "IRTF" | "independent" }?, attribute docName { text }?, - [ a:defaultValue = "en" ] attribute xml:lang { text }?, + [ a:defaultValue = "false" ] + attribute sortRefs { "true" | "false" }?, + [ a:defaultValue = "true" ] + attribute symRefs { "true" | "false" }?, + [ a:defaultValue = "true" ] + attribute tocInclude { "true" | "false" }?, + [ a:defaultValue = "3" ] attribute tocDepth { text }?, + attribute prepTime { text }?, + [ a:defaultValue = "true" ] + attribute indexInclude { "true" | "false" }?, + attribute version { text }?, + [ a:defaultValue = "Common,Latin" ] attribute scripts { text + }?, + attribute expiresDate { text }?, + link*, front, middle, back? } + link = + element link { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute href { text }, + attribute rel { text }? + } front = element front { - title, author+, date, area*, workgroup*, keyword*, abstract?, - note* + attribute xml:base { text }?, + attribute xml:lang { text }?, + title, + seriesInfo*, + author+, + date?, + area*, + workgroup*, + keyword*, + abstract?, + note*, + boilerplate? } title = element title { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute abbrev { text }?, + attribute ascii { text }?, text } author = element author { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute initials { text }?, + attribute asciiInitials { text }?, attribute surname { text }?, + attribute asciiSurname { text }?, attribute fullname { text }?, attribute role { "editor" }?, + attribute asciiFullname { text }?, organization?, address? } organization = element organization { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute abbrev { text }?, + attribute ascii { text }?, + attribute asciiAbbrev { text }?, + [ a:defaultValue = "true" ] + attribute showOnFrontPage { "true" | "false" }?, + text + } + address = + element address { + attribute xml:base { text }?, + attribute xml:lang { text }?, + postal?, + phone?, + facsimile?, + email?, + uri? + } + postal = + element postal { + attribute xml:base { text }?, + attribute xml:lang { text }?, + ((city + | cityarea + | code + | country + | extaddr + | pobox + | region + | sortingcode + | street)* + | postalLine+) + } + cityarea = + element cityarea { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute ascii { text }?, + text + } + extaddr = + element extaddr { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute ascii { text }?, + text + } + pobox = + element pobox { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute ascii { text }?, + text + } + sortingcode = + element sortingcode { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute ascii { text }?, + text + } + street = + element street { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute ascii { text }?, + text + } + city = + element city { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute ascii { text }?, + text + } + region = + element region { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute ascii { text }?, + text + } + code = + element code { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute ascii { text }?, + text + } + country = + element country { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute ascii { text }?, + text + } + postalLine = + element postalLine { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute ascii { text }?, + text + } + phone = + element phone { + attribute xml:base { text }?, + attribute xml:lang { text }?, + text + } + facsimile = + element facsimile { + attribute xml:base { text }?, + attribute xml:lang { text }?, + text + } + email = + element email { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute ascii { text }?, + text + } + uri = + element uri { + attribute xml:base { text }?, + attribute xml:lang { text }?, text } - address = element address { postal?, phone?, facsimile?, email?, - uri? } - postal = element postal { street+, (city | region | code | - country)* } - street = element street { text } - city = element city { text } - region = element region { text } - code = element code { text } - country = element country { text } - phone = element phone { text } - facsimile = element facsimile { text } - email = element email { text } - uri = element uri { text } date = element date { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute day { text }?, attribute month { text }?, attribute year { text }?, empty } - area = element area { text } - workgroup = element workgroup { text } - keyword = element keyword { text } - abstract = element abstract { t+ } + area = + element area { + attribute xml:base { text }?, + attribute xml:lang { text }?, + text + } + workgroup = + element workgroup { + attribute xml:base { text }?, + attribute xml:lang { text }?, + text + } + keyword = + element keyword { + attribute xml:base { text }?, + attribute xml:lang { text }?, + text + } + abstract = + element abstract { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + attribute pn { text }?, + (dl | ol | t | ul)+ + } note = element note { - attribute title { text }, - t+ + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute title { text }?, + attribute pn { text }?, + [ a:defaultValue = "false" ] + attribute removeInRFC { "true" | "false" }?, + name?, + (dl | ol | t | ul)+ + } + boilerplate = + element boilerplate { + attribute xml:base { text }?, + attribute xml:lang { text }?, + section+ + } + middle = + element middle { + attribute xml:base { text }?, + attribute xml:lang { text }?, + section+ } - middle = element middle { section+ } section = element section { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute anchor { xsd:ID }?, - attribute title { text }, + attribute pn { text }?, + attribute title { text }?, + [ a:defaultValue = "true" ] + attribute numbered { "true" | "false" }?, [ a:defaultValue = "default" ] attribute toc { "include" | "exclude" | "default" }?, - (t | figure | texttable | iref)*, + [ a:defaultValue = "false" ] + attribute removeInRFC { "true" | "false" }?, + name?, + (artset + | artwork + | aside + | blockquote + | dl + | figure + | iref + | ol + | sourcecode + | t + | table + | texttable + | ul)*, section* } + name = + element name { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute slugifiedName { text }?, + (text + | bcp14 + | cref + | em + | eref + | iref + | relref + | strong + | sub + | sup + | tt + | xref)* + } t = element t { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute anchor { xsd:ID }?, + attribute pn { text }?, attribute hangText { text }?, + [ a:defaultValue = "false" ] + attribute keepWithNext { "false" | "true" }?, + [ a:defaultValue = "false" ] + attribute keepWithPrevious { "false" | "true" }?, (text + | bcp14 + | cref + | em + | eref + | iref | \list + | relref + | spanx + | strong + | sub + | sup + | tt + | vspace + | xref)* + } + aside = + element aside { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + attribute pn { text }?, + (artset | artwork | dl | figure | iref | ol | t | table | ul)* + } + blockquote = + element blockquote { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + attribute pn { text }?, + attribute cite { text }?, + attribute quotedFrom { text }?, + ((artset + | artwork + | dl | figure - | xref + | ol + | sourcecode + | t + | table + | ul)+ + | (text + | bcp14 + | cref + | em | eref | iref - | cref - | spanx - | vspace)* + | relref + | strong + | sub + | sup + | tt + | xref)+) } \list = element list { - attribute style { text }?, + attribute xml:base { text }?, + attribute xml:lang { text }?, + [ a:defaultValue = "empty" ] attribute style { text }?, attribute hangIndent { text }?, attribute counter { text }?, + attribute pn { text }?, t+ } + ol = + element ol { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + [ a:defaultValue = "1" ] attribute type { text }?, + [ a:defaultValue = "1" ] attribute start { text }?, + attribute group { text }?, + [ a:defaultValue = "normal" ] + attribute spacing { "normal" | "compact" }?, + attribute pn { text }?, + li+ + } + ul = + element ul { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + [ a:defaultValue = "normal" ] + attribute spacing { "normal" | "compact" }?, + ([ a:defaultValue = "false" ] + attribute empty { "false" | "true" }, + attribute pn { text }?)?, + li+ + } + li = + element li { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + attribute pn { text }?, + ((artset + | artwork + | blockquote + | dl + | figure + | ol + | sourcecode + | t + | ul)+ + | (text + | bcp14 + | cref + | em + | eref + | iref + | relref + | strong + | sub + | sup + | tt + | xref)+) + } + dl = + element dl { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + [ a:defaultValue = "normal" ] + attribute spacing { "normal" | "compact" }?, + [ a:defaultValue = "true" ] + attribute newline { "false" | "true" }?, + [ a:defaultValue = "0" ] attribute indent { text }?, + attribute pn { text }?, + (dt, dd)+ + } + dt = + element dt { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + attribute pn { text }?, + (text + | bcp14 + | cref + | em + | eref + | iref + | relref + | strong + | sub + | sup + | tt + | xref)* + } + dd = + element dd { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + attribute pn { text }?, + ((artset | artwork | dl | figure | ol | sourcecode | t | ul)+ + | (text + | bcp14 + | cref + | em + | eref + | iref + | relref + | strong + | sub + | sup + | tt + | xref)+) + } xref = element xref { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute target { xsd:IDREF }, - [ a:defaultValue = "false" ] attribute pageno { "true" | - "false" }?, + [ a:defaultValue = "false" ] + attribute pageno { "true" | "false" }?, [ a:defaultValue = "default" ] - attribute format { "counter" | "title" | "none" | "default" + attribute format { "default" | "title" | "counter" | "none" }?, + attribute derivedContent { text }?, + text + } + relref = + element relref { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute target { xsd:IDREF }, + [ a:defaultValue = "of" ] + attribute displayFormat { "of" | "comma" | "parens" | "bare" + }?, + attribute section { text }, + attribute relative { text }?, + attribute derivedLink { text }?, text } eref = element eref { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute target { text }, text } iref = element iref { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute item { text }, [ a:defaultValue = "" ] attribute subitem { text }?, [ a:defaultValue = "false" ] attribute primary { "true" | "false" }?, + attribute pn { text }?, empty } cref = element cref { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute anchor { xsd:ID }?, attribute source { text }?, - text + [ a:defaultValue = "true" ] + attribute display { "true" | "false" }?, + (text | em | eref | relref | strong | sub | sup | tt | xref)* + } + tt = + element tt { + attribute xml:base { text }?, + attribute xml:lang { text }?, + (text + | bcp14 + | cref + | em + | eref + | iref + | relref + | strong + | sub + | sup + | xref)* + } + strong = + element strong { + attribute xml:base { text }?, + attribute xml:lang { text }?, + (text + | bcp14 + | cref + | em + | eref + | iref + | relref + | sub + | sup + | tt + | xref)* + } + em = + element em { + attribute xml:base { text }?, + attribute xml:lang { text }?, + (text + | bcp14 + | cref + | eref + | iref + | relref + | strong + | sub + | sup + | tt + | xref)* + } + sub = + element sub { + attribute xml:base { text }?, + attribute xml:lang { text }?, + (text + | bcp14 + | cref + | em + | eref + | iref + | relref + | strong + | tt + | xref)* + } + sup = + element sup { + attribute xml:base { text }?, + attribute xml:lang { text }?, + (text + | bcp14 + | cref + | em + | eref + | iref + | relref + | strong + | tt + | xref)* } spanx = element spanx { + attribute xml:base { text }?, + attribute xml:lang { text }?, [ a:defaultValue = "preserve" ] attribute xml:space { "default" | "preserve" }?, [ a:defaultValue = "emph" ] attribute style { text }?, text } vspace = element vspace { + attribute xml:base { text }?, + attribute xml:lang { text }?, [ a:defaultValue = "0" ] attribute blankLines { text }?, empty } figure = element figure { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute anchor { xsd:ID }?, + attribute pn { text }?, [ a:defaultValue = "" ] attribute title { text }?, [ a:defaultValue = "false" ] attribute suppress-title { "true" | "false" }?, attribute src { text }?, + attribute originalSrc { text }?, [ a:defaultValue = "left" ] attribute align { "left" | "center" | "right" }?, [ a:defaultValue = "" ] attribute alt { text }?, [ a:defaultValue = "" ] attribute width { text }?, [ a:defaultValue = "" ] attribute height { text }?, + name?, iref*, preamble?, - artwork, + (artset | artwork | sourcecode)+, postamble? } + table = + element table { + attribute xml:base { text }?, + attribute xml:lang { text }?, + [ a:defaultValue = "center" ] + attribute align { "left" | "center" | "right" }?, + attribute anchor { xsd:ID }?, + attribute pn { text }?, + name?, + thead?, + tbody+, + tfoot? + } preamble = - element preamble { (text | xref | eref | iref | cref | spanx)* } + element preamble { + attribute xml:base { text }?, + attribute xml:lang { text }?, + (text + | bcp14 + | cref + | em + | eref + | iref + | relref + | spanx + | strong + | sub + | sup + | tt + | xref)* + } + artset = + element artset { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + attribute pn { text }?, + artwork+ + } artwork = element artwork { - [ a:defaultValue = "preserve" ] - attribute xml:space { "default" | "preserve" }?, + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + attribute pn { text }?, + attribute xml:space { text }?, [ a:defaultValue = "" ] attribute name { text }?, [ a:defaultValue = "" ] attribute type { text }?, attribute src { text }?, [ a:defaultValue = "left" ] attribute align { "left" | "center" | "right" }?, [ a:defaultValue = "" ] attribute alt { text }?, [ a:defaultValue = "" ] attribute width { text }?, [ a:defaultValue = "" ] attribute height { text }?, - text* + attribute originalSrc { text }?, + (text* | svg) + } + # TODO: replace with link to RSE site, or provide an inline + version + include "svg.rnc" + sourcecode = + element sourcecode { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + attribute pn { text }?, + [ a:defaultValue = "" ] attribute name { text }?, + [ a:defaultValue = "" ] attribute type { text }?, + attribute src { text }?, + attribute originalSrc { text }?, + text + } + thead = + element thead { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + tr+ + } + tbody = + element tbody { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + tr+ + } + tfoot = + element tfoot { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + tr+ + } + tr = + element tr { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + (td | th)+ + } + td = + element td { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + [ a:defaultValue = "0" ] attribute colspan { text }?, + [ a:defaultValue = "0" ] attribute rowspan { text }?, + [ a:defaultValue = "left" ] + attribute align { "left" | "center" | "right" }?, + ((artset | artwork | dl | figure | ol | sourcecode | t | ul)+ + | (text + | bcp14 + | cref + | em + | eref + | iref + | relref + | strong + | sub + | sup + | tt + | xref)*) + } + th = + element th { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }?, + [ a:defaultValue = "0" ] attribute colspan { text }?, + [ a:defaultValue = "0" ] attribute rowspan { text }?, + [ a:defaultValue = "left" ] + attribute align { "left" | "center" | "right" }?, + ((artset | artwork | dl | figure | ol | sourcecode | t | ul)+ + | (text + | bcp14 + | cref + | em + | eref + | iref + | relref + | strong + | sub + | sup + | tt + | xref)*) } postamble = - element postamble { (text | xref | eref | iref | cref | spanx)* + element postamble { + attribute xml:base { text }?, + attribute xml:lang { text }?, + (text | cref | eref | iref | spanx | xref)* } texttable = element texttable { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute anchor { xsd:ID }?, [ a:defaultValue = "" ] attribute title { text }?, [ a:defaultValue = "false" ] attribute suppress-title { "true" | "false" }?, [ a:defaultValue = "center" ] attribute align { "left" | "center" | "right" }?, [ a:defaultValue = "full" ] attribute style { "all" | "none" | "headers" | "full" }?, + name?, preamble?, ttcol+, c*, postamble? } ttcol = element ttcol { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute width { text }?, [ a:defaultValue = "left" ] attribute align { "left" | "center" | "right" }?, + (cref | eref | iref | xref | text)* + } + c = + element c { + attribute xml:base { text }?, + attribute xml:lang { text }?, + (text | cref | eref | iref | spanx | xref)* + } + bcp14 = + element bcp14 { + attribute xml:base { text }?, + attribute xml:lang { text }?, text } - c = element c { (text | xref | eref | iref | cref | spanx)* } - back = element back { references*, section* } + back = + element back { + attribute xml:base { text }?, + attribute xml:lang { text }?, + displayreference*, + references, + section* + } + displayreference = + element displayreference { + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute target { xsd:IDREF }, + attribute to { text } + } references = element references { - [ a:defaultValue = "References" ] attribute title { text }?, - reference+ + attribute xml:base { text }?, + attribute xml:lang { text }?, + attribute pn { text }?, + attribute anchor { xsd:ID }?, + attribute title { text }?, + name?, + (references+ | (reference | referencegroup)*) } reference = element reference { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute anchor { xsd:ID }, attribute target { text }?, + [ a:defaultValue = "true" ] + attribute quote-title { "true" | "false" }?, front, - seriesInfo*, - format*, - annotation* + (annotation | format | refcontent | seriesInfo)* + } + referencegroup = + element referencegroup { + attribute xml:base { text }?, + attribute target { text }?, + attribute xml:lang { text }?, + attribute anchor { xsd:ID }, + reference+ } seriesInfo = element seriesInfo { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute name { text }, attribute value { text }, + attribute asciiName { text }?, + attribute asciiValue { text }?, + attribute status { text }?, + [ a:defaultValue = "IETF" ] + attribute stream { "IETF" | "IAB" | "IRTF" | "independent" }?, empty } format = element format { + attribute xml:base { text }?, + attribute xml:lang { text }?, attribute target { text }?, attribute type { text }, attribute octets { text }?, empty } annotation = - element annotation { (text | xref | eref | iref | cref | - spanx)* } - start = rfc + element annotation { + attribute xml:base { text }?, + attribute xml:lang { text }?, + (text + | bcp14 + | cref + | em + | eref + | iref + | relref + | spanx + | strong + | sub + | sup + | tt + | xref)* + } + refcontent = + element refcontent { + attribute xml:base { text }?, + attribute xml:lang { text }?, + (text | bcp14 | em | strong | sub | sup | tt)* + } + start |= rfc
The IAB members at the time this memo was approved were (in alphabetical order):¶
[[ A list will go here just before publication as an RFC ]]¶
Thanks to everybody who reviewed this document and provided feedback and/or specification text. Thanks especially go to Julian Reschke for editing [RFC7749] and those who provided feedback on that document.¶
Most of the changes between this document and RFC 7991 came from the diligent work of Henrik Levkowetz.¶
We also thank Marshall T. Rose for both the original design and the reference implementation of the "xml2rfc" processor.¶