<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc toc="yes"?>
<?rfc symrefs="yes"?>
<?rfc comments="yes"?>
<?rfc inline="no"?>
<?rfc-ext parse-xml-in-artwork="yes" ?>
<?rfc-ext allow-markup-in-artwork="yes" ?>
<?rfc-ext para-anchors="yes" ?>
<?rfc private="RFC2629 test cases"?>
<!DOCTYPE rfc
  SYSTEM "rfc2629.dtd">
<rfc>
	<front>
  	<title>Test cases for RFC2629 formatting</title>

  	<author initials="J. F." surname="Reschke" fullname="Julian F. Reschke">
  		<organization abbrev="greenbytes">greenbytes GmbH</organization>
        <address>
        	<postal>
          	<street>Salzmannstrasse 152</street>
            <city>Muenster</city><region>NW</region><code>48159</code>
           	<country>Germany</country>
         	</postal>
    		  <phone>+49 251 2807760</phone>	
      	<facsimile>+49 251 2807761</facsimile>	
  		  <email>julian.reschke@greenbytes.de</email>	
  		  <uri>http://greenbytes.de/tech/webdav/</uri>	
  		</address>
  	</author>
      
    <date month="January" year="2005"/>
    <keyword>RFC2629</keyword>
    <keyword>test case</keyword>
    <keyword>xml2rfc</keyword>
	</front>

	<middle>

<section title="Lists" anchor="lists">
<section title="hanging list">
<t><list style="hanging">
  <t hangText="Name:">timeout</t>
  <t hangText="Namespace:">DAV:</t>
  <t hangText="Purpose:">The timeout associated with a lock</t>
  <t hangText="Value:">TimeType ;Defined in section 9.8</t>
</list></t></section>

<section title="numbered list">
<t>
A numbered list:
<list style="numbers">
  <t>one</t>
  <t>two</t>
  <t>three</t>
</list>
</t>
</section>

<section title="ordered list (letters)">
<t>
An ordered list using letters:
<list style="letters">
  <t>one</t>
  <t>two</t>
  <t>three</t>
  <t>one</t>
  <t>two</t>
  <t>three</t>
  <t>one</t>
  <t>two</t>
  <t>three</t>
  <t>one</t>
  <t>two</t>
  <t>three</t>
  <t>one</t>
  <t>two</t>
  <t>three</t>
  <t>one</t>
  <t>two</t>
  <t>three</t>
  <t>one</t>
  <t>two</t>
  <t>three</t>
  <t>one</t>
  <t>two</t>
  <t>three</t>
  <t>one</t>
  <t>two</t>
  <t>three</t>
  <t>one</t>
  <t>two</t>
  <t>three</t>
</list>
</t>
</section>

<section title="no explicit counters">
<t>
  Example for numbered list with user-defined-format:
  <list style="format R%d:">
    <t>R1</t>
    <t>R2</t>
  </list>
</t>
<t>
  Another list:
  <list style="format S%d:">
    <t>S1</t>
    <t>S2</t>
  </list>
</t>
<t>
  Next list should continue counting R's:
  <list style="format R%d:">
    <t>R3</t>
    <t>R4</t>
  </list>
</t>
<t>
  Same with character-based numbering:
  <list style="format c-%c:">
    <t>c-a</t>
    <t>c-b</t>
  </list>
</t>
</section>

<section title="with explicit counters">
<t>
  A few requirements:
  <list style="format R%d:" counter="requirements">
    <t>req R1</t>
    <t>req R2</t>
  </list>
</t>
<t>
  More requirements:
  <list style="format R%d:" counter="requirements">
    <t>req R3</t>
    <t>req R4</t>
  </list>
</t>
<t>
  A few rules:
  <list style="format R%d:" counter="rules">
    <t>rule R1</t>
    <t>rule R2</t>
    <t>rule R3</t>
  </list> 
</t>
<t>
  Explicit counter with name matching it's format string:
  <list style="format c-%c:" counter="c-%c:">
    <t>c-c</t>
    <t>c-d</t>
  </list>
</t>
<t>
  Same, without counter:
  <list style="format c-%c:">
    <t>c-e</t>
    <t>c-f</t>
  </list>
 </t>
</section>

<section title="Nested list">
  <t>
    <list style="numbers">
      <t>One</t>
      <t>Two
        <list style="letters">
          <t>17</t>
          <t>42</t>
        </list>
      </t>
      <t>Three</t>
    </list>
  </t>
</section>

<section title="list without style">
<t><list>
  <t>One</t>
  <t>Two</t>
  <t>Three</t>
</list></t></section>

</section>

<section title="spanx">
<t>
This is <spanx>default</spanx>.
</t>
<t>
This is <spanx style="emph">emph(asized)</spanx>.
</t>
<t>
This is <spanx style="strong">strong</spanx>.
</t>
<t>
This is <spanx style="verb">verb(atim)</spanx>.
</t>
<t>
Here is <spanx style="verb">a carriage return
inside</spanx> a spanx element.
</t>
</section>

<section title="Tables">
<texttable>
<preamble>The list of valid keywords are:</preamble>
<ttcol width="20%" align="right">keyword</ttcol>
<ttcol width="20%" align="center">default</ttcol>
<ttcol align="left">meaning</ttcol>
<ttcol>not aligned</ttcol>

<c>strict</c>
<c>no</c>
<c>try to enforce the ID-nits conventions and DTD validity</c>
<c>a</c>

<c>iprnotified</c>
<c>no</c>
<c>include boilerplate from Section 10.4(d) of <xref target="RFC2026"/></c>
<c>bb bb</c>

<c>compact</c>
<c>no</c>
<c>when producing a txt/nroff file, try to conserve vertical whitespace</c>
<c>ccc ccc ccc</c>
    
<c>subcompact</c>
<c>compact</c>
<c>if compact is "yes", then setting this to "no" will make things a little less
compact</c>
<c>dddd dddd dddd dddd</c>
    
<!--
    ...                                                          ...
    
  -->
    
<c>needLines</c>
<c>n/a</c>
<c>an integer hint indicating how many contiguous lines are needed at this point
in the output</c>
<c>eeeee eeeee eeeee eeeee eeeee </c>
<postamble>Remember,
that as with everything else in XML,
keywords and values are case-sensitive.</postamble>
</texttable>
</section>

<section title="Figures">
<figure>
  <preamble>with preamble, no title...</preamble>
  <artwork>
  +--+
  |  |
  +--+
</artwork>
</figure>

<figure title="another figure" anchor="testfig">
  <artwork>
  +--+
  |  |
  +--+
</artwork>
<postamble>with postamble and title...</postamble>
</figure>
<t>
  The figure above has the title "<xref target="testfig" format="title" />".
</t>

</section>

<section title="References" anchor="refs">

<section title="xref with no content">
<t>
We are in <xref target="refs" />.
</t>
</section>

<section title="xref with no content">
<t>
<xref target="refs" /> is the parent section.
</t>
</section>

<section title="xref with no auto-formatting">
<t>
So far we have sections <xref target="lists" format="counter" /> ("<xref target="lists" format="title" />") through <xref target="refs" format="counter"/>
("<xref target="refs" format="title"/>").
</t>
</section>

<section title="eref with no content">
<t>
See also <eref target="http://greenbytes.de/tech/webdav" />. Here's another
one that is quite long: <eref target="http://greenbytes.de/tech/webdav/draft-reschke-rfc3744bis-issues.html#5.7_inherited-acl-set-protected"/>. Does it break properly?
</t>
</section>

<section title="eref with content">
<t>
See also <eref target="http://greenbytes.de/tech/webdav">greenbytes WebDAV resources</eref>.
</t>
</section>

</section>

<section title="Paragraph formatting">
<t>
  This is the first sentence of the paragraph.  This is the second sentence of
  the paragraph (with two leading blanks).
  Here's another sentence that was started on a separate line in the input
  file.
</t>
<t>
  This is the second paragraph.
</t>
</section>

<section title="Sections">

<section title="Subsection with TOC entry">
</section>

<section title="Subsection without TOC entry" toc="exclude">

<section title="Sub-subsection with TOC entry">
</section>

</section>

</section>

<section title="Comments">
<t>
  This line contains a few comments.
  <cref source="JRE">No anchor, source given.</cref>
  This line contains a few comments.
  <cref anchor="comment1">Anchor given, no source.</cref>
  This line contains a few comments.
  <cref anchor="comment2" source="JRE">Both specified.</cref>
  This line contains a few comments.
  <cref>No anchor, no source.</cref>
  This line contains a few comments.
</t>
</section>

<section title="Artwork width">
<figure>
<preamble>
This should fit (69 characters plus three spaces of indentation in text output).
</preamble>
<artwork>
012345678901234567890123456789012345678901234567890123456789012345678
</artwork>
</figure>
<figure>
<preamble>
This shouldn't.
</preamble>
<artwork>
0123456789012345678901234567890123456789012345678901234567890123456789
</artwork>
</figure>
</section>

<section title="Extensions">
<t>
  These are tests for extensions done in <spanx style="verb">rfc2629.xslt</spanx>.
  Do not expect them to work out-of-the-box in <spanx style="verb">xml2rfc</spanx>.
</t>
<section title="Markup in figure/artwork">
<figure>
<artwork>
Internal References: a test reference to <xref target="RFC2396"/>

External References: a test reference to <eref target="http://xml.resource.org"/>

<iref item="&lt;iref> in &lt;artwork>"/>a test index entry inside a figure

Styling: <spanx>&lt;spanx></spanx> inside artwork
</artwork>
</figure>
</section>
</section>

<section title="Blank Lines">
<t>
Just a forced <vspace/>
line break.
</t>
<t>
One <vspace blankLines="1"/>
blank line.
</t>
<t>
Seven <vspace blankLines="7"/>
blank lines.
</t>
</section>



    </middle>

	<back>
  <references>
  <reference anchor='RFC2026'>

<front>
<title abbrev='Internet Standards Process'>The Internet Standards Process -- Revision 3</title>
<author initials='S.' surname='Bradner' fullname='Scott O. Bradner'>
<organization>Harvard University</organization>
<address>
<postal>
<street>1350 Mass. Ave.</street>
<city>Cambridge</city>
<region>MA</region>
<code>02138</code>
<country>US</country></postal>
<phone>+1 617 495 3864</phone>
<email>sob@harvard.edu</email></address></author>
<date month='October' year='1996' />
<abstract>
<t>This memo documents the process used by the Internet community for the standardization of protocols and procedures.  It defines the stages in the standardization process, the requirements for moving a document between stages and the types of documents used during this process.  It also addresses the intellectual property rights and copyright issues associated with the standards process.</t></abstract></front>

<seriesInfo name='BCP' value='9' />
<seriesInfo name='RFC' value='2026' />
<format type='TXT' octets='86731' target='ftp://ftp.isi.edu/in-notes/rfc2026.txt' />
</reference>

<reference anchor="RFC2396">

<front>
<title abbrev="URI Generic Syntax">Uniform Resource Identifiers (URI): Generic Syntax</title>
<author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
<organization>World Wide Web Consortium</organization>
<address>
<postal>
<street>MIT Laboratory for Computer Science, NE43-356</street>
<street>545 Technology Square</street>
<city>Cambridge</city>
<region>MA</region>
<code>02139</code></postal>
<facsimile>+1(617)258-8682</facsimile>
<email>timbl@w3.org</email></address></author>
<author initials="R.T." surname="Fielding" fullname="Roy T. Fielding">
<organization>Department of Information and Computer Science</organization>
<address>
<postal>
<street>University of California, Irvine</street>
<city>Irvine</city>
<region>CA</region>
<code>92697-3425</code></postal>
<facsimile>+1(949)824-1715</facsimile>
<email>fielding@ics.uci.edu</email></address></author>
<author initials="L." surname="Masinter" fullname="Larry Masinter">
<organization>Xerox PARC</organization>
<address>
<postal>
<street>3333 Coyote Hill Road</street>
<city>Palo Alto</city>
<region>CA</region>
<code>94034</code></postal>
<facsimile>+1(415)812-4333</facsimile>
<email>masinter@parc.xerox.com</email></address></author>
<date month="August" year="1998"/>
<area>Applications</area>
<keyword>uniform resource</keyword>
<keyword>URI</keyword>
</front>
<seriesInfo name="RFC" value="2396"/>
<annotation>
  This RFC will soon be updated, check
  <eref target="http://cvs.apache.org/viewcvs.cgi/*checkout*/ietf-uri/rev-2002/rfc2396bis.html" /> for the latest draft.
</annotation>
<annotation>
  The issues list is at <eref target="http://cvs.apache.org/viewcvs.cgi/*checkout*/ietf-uri/rev-2002/issues.html" />.
</annotation>

</reference>

  </references>
  </back>
</rfc>