RFC 
 TOC 
RFC2629 test cases  J. F. Reschke 
  greenbytes 
  June 2003 

Test cases for RFC2629 formatting


 RFC 
 TOC 

Table of Contents

Lists
 1.1  hanging list
 1.2  numbered list
 1.3  no explicit counters
 1.4  with explicit counters
spanx
Tables
Figures
References
 5.1  xref with no content
 5.2  xref with no content
 5.3  xref with no auto-formatting
 5.4  eref with no content
 5.5  eref with content
Paragraph formatting
§  References
§  Author's Address

   Figure 1: another figure


 TOC 

1  Lists

1.1  hanging list

Name:
timeout
Namespace:
DAV:
Purpose:
The timeout associated with a lock
Value:
TimeType ;Defined in section 9.8

1.2  numbered list

A numbered list:

  1. one
  2. two
  3. three

1.3  no explicit counters

Example for numbered list with user-defined-format:

R1:
R1
R2:
R2

Another list:

S1:
S1
S2:
S2

Next list should continue counting R's:

R3:
R3
R4:
R4

Same with character-based numbering:

c-a:
c-a
c-b:
c-b

1.4  with explicit counters

A few requirements:

R1:
req R1
R2:
req R2

More requirements:

R3:
req R3
R4:
req R4

A few rules:

R1:
rule R1
R2:
rule R2
R3:
rule R3

Explicit counter with name matching it's format string:

c-c:
c-c
c-d:
c-d

Same, without counter:

c-e:
c-e
c-f:
c-f


 TOC 

2  spanx

This is default.

This is emph(asized).

This is strong.

This is verb(atim).

Here is a carriage return inside a spanx element.


 TOC 

3  Tables

The list of valid keywords are:

keyword default meaning not aligned
strict   no   try to enforce the ID-nits conventions and DTD validity   a  
iprnotified   no   include boilerplate from Section 10.4(d) of [RFC2026]   bb bb  
compact   no   when producing a txt/nroff file, try to conserve vertical whitespace   ccc ccc ccc  
subcompact   compact   if compact is "yes", then setting this to "no" will make things a little less compact   dddd dddd dddd dddd  
needLines   n/a   an integer hint indicating how many contiguous lines are needed at this point in the output   eeeee eeeee eeeee eeeee eeeee  

Remember, that as with everything else in XML, keywords and values are case-sensitive.


 TOC 

4  Figures

with preamble, no title...

  +--+
  |  |
  +--+
  +--+
  |  |
  +--+

with postamble and title...

Figure 1: another figure

The figure above has the title "another figure".


 TOC 

5  References

5.1  xref with no content

We are in Section 5.

5.2  xref with no content

Section 5 is the parent section.

5.3  xref with no auto-formatting

So far we have sections 1 ("Lists") through 5 ("References").

5.4  eref with no content

See also <http://greenbytes.de/tech/webdav>.

5.5  eref with content

See also greenbytes WebDAV resources.


 TOC 

6  Paragraph formatting

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.

This is the second paragraph.


 TOC 

References

[RFC2026] Bradner, S., "The Internet Standards Process -- Revision 3", BCP 9, RFC 2026, October 1996.
[RFC2396] Berners-Lee, T.Fielding, R.T. and L. Masinter, "Uniform Resource Identifiers (URI): Generic Syntax", RFC 2396, August 1998.
This RFC will soon be updated, check <http://cvs.apache.org/viewcvs.cgi/*checkout*/ietf-uri/rev-2002/rfc2396bis.html> for the latest draft.
The issues list is at <http://cvs.apache.org/viewcvs.cgi/*checkout*/ietf-uri/rev-2002/issues.html>.

 TOC 

Author's Address

  Julian F. Reschke
  greenbytes GmbH
  Salzmannstrasse 152
  Muenster, NW 48159
  Germany
Phone:  +49 251 2807760
Fax:  +49 251 2807761
EMail:  julian.reschke@greenbytes.de
URI:  http://greenbytes.de/tech/webdav/