Sophie

Sophie

distrib > Fedora > 17 > i386 > media > updates > by-pkgid > 675c8c8167236dfcf8d66da674f931e8 > files > 579

erlang-doc-R15B-03.3.fc17.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns:fn="http://www.w3.org/2005/02/xpath-functions">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../doc/otp_doc.css" type="text/css">
<title>Erlang -- Reference Manual DTDs</title>
</head>
<body bgcolor="white" text="#000000" link="#0000ff" vlink="#ff00ff" alink="#ff0000"><div id="container">
<script id="js" type="text/javascript" language="JavaScript" src="../../../../doc/js/flipmenu/flipmenu.js"></script><script id="js2" type="text/javascript" src="../../../../doc/js/erlresolvelinks.js"></script><script language="JavaScript" type="text/javascript">
            <!--
              function getWinHeight() {
                var myHeight = 0;
                if( typeof( window.innerHeight ) == 'number' ) {
                  //Non-IE
                  myHeight = window.innerHeight;
                } else if( document.documentElement && ( document.documentElement.clientWidth ||
                                                         document.documentElement.clientHeight ) ) {
                  //IE 6+ in 'standards compliant mode'
                  myHeight = document.documentElement.clientHeight;
                } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
                  //IE 4 compatible
                  myHeight = document.body.clientHeight;
                }
                return myHeight;
              }

              function setscrollpos() {
                var objf=document.getElementById('loadscrollpos');
                 document.getElementById("leftnav").scrollTop = objf.offsetTop - getWinHeight()/2;
              }

              function addEvent(obj, evType, fn){
                if (obj.addEventListener){
                obj.addEventListener(evType, fn, true);
                return true;
              } else if (obj.attachEvent){
                var r = obj.attachEvent("on"+evType, fn);
                return r;
              } else {
                return false;
              }
             }

             addEvent(window, 'load', setscrollpos);

             //--></script><div id="leftnav"><div class="innertube">
<img alt="Erlang logo" src="../../../../doc/erlang-logo.png"><br><small><a href="users_guide.html">User's Guide</a><br><a href="index.html">Reference Manual</a><br><a href="release_notes.html">Release Notes</a><br><a href="../pdf/erl_docgen-0.3.3.pdf">PDF</a><br><a href="../../../../doc/index.html">Top</a></small><p><strong>Erl_Docgen</strong><br><strong>User's Guide</strong><br><small>Version 0.3.3</small></p>
<br><a href="javascript:openAllFlips()">Expand All</a><br><a href="javascript:closeAllFlips()">Contract All</a><p><small><strong>Chapters</strong></small></p>
<ul class="flipMenu" imagepath="../../../../doc/js/flipmenu">
<li id="no" title="How to Build OTP like documentation" expanded="false">How to Build OTP like documentation<ul>
<li><a href="doc-build.html">
              Top of chapter
            </a></li>
<li title="Utilities to prepare XML files"><a href="doc-build.html#id63368">Utilities to prepare XML files</a></li>
<li title="Use xsltproc to generate different output formats"><a href="doc-build.html#id61175">Use xsltproc to generate different output formats</a></li>
</ul>
</li>
<li id="no" title="Overview OTP DTDs" expanded="false">Overview OTP DTDs<ul>
<li><a href="overview.html">
              Top of chapter
            </a></li>
<li title="DTD Suite"><a href="overview.html#id64762">DTD Suite</a></li>
<li title="Basic Tags"><a href="overview.html#id68138">Basic Tags</a></li>
</ul>
</li>
<li id="no" title="User's Guide DTDs" expanded="false">User's Guide DTDs<ul>
<li><a href="user_guide_dtds.html">
              Top of chapter
            </a></li>
<li title="The part DTD"><a href="user_guide_dtds.html#id60222">The part DTD</a></li>
<li title="&lt;part&gt;"><a href="user_guide_dtds.html#id60510">&lt;part&gt;</a></li>
<li title="&lt;description&gt;"><a href="user_guide_dtds.html#id68097">&lt;description&gt;</a></li>
<li title="&lt;include&gt;"><a href="user_guide_dtds.html#id60627">&lt;include&gt;</a></li>
<li title="The chapter DTD"><a href="user_guide_dtds.html#id68049">The chapter DTD</a></li>
<li title="&lt;chapter&gt;"><a href="user_guide_dtds.html#id63655">&lt;chapter&gt;</a></li>
<li title="&lt;section&gt;"><a href="user_guide_dtds.html#id62101">&lt;section&gt;</a></li>
<li title="&lt;title&gt;"><a href="user_guide_dtds.html#id62142">&lt;title&gt;</a></li>
</ul>
</li>
<li id="loadscrollpos" title="Reference Manual DTDs" expanded="true">Reference Manual DTDs<ul>
<li><a href="refman_dtds.html">
              Top of chapter
            </a></li>
<li title="The application DTD"><a href="refman_dtds.html#id64613">The application DTD</a></li>
<li title="&lt;application&gt;"><a href="refman_dtds.html#id64497">&lt;application&gt;</a></li>
<li title="The appref DTD"><a href="refman_dtds.html#id67949">The appref DTD</a></li>
<li title="The comref DTD"><a href="refman_dtds.html#id63005">The comref DTD</a></li>
<li title="The cref DTD"><a href="refman_dtds.html#id65218">The cref DTD</a></li>
<li title="The erlref DTD"><a href="refman_dtds.html#id65347">The erlref DTD</a></li>
<li title="The fileref DTD"><a href="refman_dtds.html#id65477">The fileref DTD</a></li>
<li title="&lt;description&gt;"><a href="refman_dtds.html#id65618">&lt;description&gt;</a></li>
<li title="&lt;section&gt;"><a href="refman_dtds.html#id65651">&lt;section&gt;</a></li>
<li title="&lt;funcs&gt;"><a href="refman_dtds.html#id65692">&lt;funcs&gt;</a></li>
<li title="&lt;func&gt;"><a href="refman_dtds.html#id65718">&lt;func&gt;</a></li>
<li title="&lt;name&gt;"><a href="refman_dtds.html#id65761">&lt;name&gt;</a></li>
<li title="&lt;fsummary&gt;"><a href="refman_dtds.html#id65831">&lt;fsummary&gt;</a></li>
<li title="&lt;type&gt;"><a href="refman_dtds.html#id65859">&lt;type&gt;</a></li>
<li title="&lt;v&gt;"><a href="refman_dtds.html#id65891">&lt;v&gt;</a></li>
<li title="&lt;d&gt;"><a href="refman_dtds.html#id65907">&lt;d&gt;</a></li>
<li title="&lt;desc&gt;"><a href="refman_dtds.html#id65934">&lt;desc&gt;</a></li>
<li title="&lt;authors&gt;"><a href="refman_dtds.html#id65964">&lt;authors&gt;</a></li>
<li title="&lt;aname&gt;"><a href="refman_dtds.html#id66000">&lt;aname&gt;</a></li>
<li title="&lt;email&gt;"><a href="refman_dtds.html#id66016">&lt;email&gt;</a></li>
</ul>
</li>
<li id="no" title="Header Tags" expanded="false">Header Tags<ul>
<li><a href="header_tags.html">
              Top of chapter
            </a></li>
<li title="&lt;header&gt;"><a href="header_tags.html#id66099">&lt;header&gt;</a></li>
<li title="&lt;copyright&gt;"><a href="header_tags.html#id66115">&lt;copyright&gt;</a></li>
<li title="&lt;legalnotice&gt;"><a href="header_tags.html#id66159">&lt;legalnotice&gt;</a></li>
<li title="&lt;title&gt;"><a href="header_tags.html#id66188">&lt;title&gt;</a></li>
<li title="&lt;shorttitle&gt;"><a href="header_tags.html#id66219">&lt;shorttitle&gt;</a></li>
<li title="&lt;prepared&gt;"><a href="header_tags.html#id66234">&lt;prepared&gt;</a></li>
<li title="&lt;responsible&gt;"><a href="header_tags.html#id66250">&lt;responsible&gt;</a></li>
<li title="&lt;docno&gt;"><a href="header_tags.html#id66266">&lt;docno&gt;</a></li>
<li title="&lt;approved&gt;"><a href="header_tags.html#id66297">&lt;approved&gt;</a></li>
<li title="&lt;checked&gt;"><a href="header_tags.html#id66313">&lt;checked&gt;</a></li>
<li title="&lt;date&gt;"><a href="header_tags.html#id66328">&lt;date&gt;</a></li>
<li title="&lt;rev&gt;"><a href="header_tags.html#id66344">&lt;rev&gt;</a></li>
<li title="&lt;file&gt;"><a href="header_tags.html#id66376">&lt;file&gt;</a></li>
</ul>
</li>
<li id="no" title="Block Tags" expanded="false">Block Tags<ul>
<li><a href="block_tags.html">
              Top of chapter
            </a></li>
<li title="&lt;br&gt; - Line Break"><a href="block_tags.html#id66498">&lt;br&gt; - Line Break</a></li>
<li title="&lt;code&gt; - Code Example"><a href="block_tags.html#id66536">&lt;code&gt; - Code Example</a></li>
<li title="&lt;codeinclude&gt; - Code Inclusion"><a href="block_tags.html#id66589">&lt;codeinclude&gt; - Code Inclusion</a></li>
<li title="&lt;erleval&gt; - Erlang Evaluation"><a href="block_tags.html#id66663">&lt;erleval&gt; - Erlang Evaluation</a></li>
<li title="&lt;list&gt; - List"><a href="block_tags.html#id66698">&lt;list&gt; - List</a></li>
<li title="&lt;marker&gt; - Marker"><a href="block_tags.html#id66782">&lt;marker&gt; - Marker</a></li>
<li title="&lt;p&gt; - Paragraph"><a href="block_tags.html#id66808">&lt;p&gt; - Paragraph</a></li>
<li title="&lt;note&gt; - Note"><a href="block_tags.html#id66849">&lt;note&gt; - Note</a></li>
<li title="&lt;pre&gt; - Pre-formatted Text"><a href="block_tags.html#id66895">&lt;pre&gt; - Pre-formatted Text</a></li>
<li title="&lt;quote&gt; - Quotation"><a href="block_tags.html#id66970">&lt;quote&gt; - Quotation</a></li>
<li title="&lt;taglist&gt; - Definition List"><a href="block_tags.html#id67018">&lt;taglist&gt; - Definition List</a></li>
<li title="&lt;warning&gt; - Warning"><a href="block_tags.html#id67121">&lt;warning&gt; - Warning</a></li>
<li title="&lt;image&gt; - Image"><a href="block_tags.html#id67173">&lt;image&gt; - Image</a></li>
<li title="&lt;table&gt; - Table"><a href="block_tags.html#id67236">&lt;table&gt; - Table</a></li>
</ul>
</li>
<li id="no" title="Inline Tags" expanded="false">Inline Tags<ul>
<li><a href="inline_tags.html">
              Top of chapter
            </a></li>
<li title="&lt;br&gt; - Line Break"><a href="inline_tags.html#id67434">&lt;br&gt; - Line Break</a></li>
<li title="&lt;c&gt; - Code"><a href="inline_tags.html#id67460">&lt;c&gt; - Code</a></li>
<li title="&lt;em&gt; - Emphasis"><a href="inline_tags.html#id67508">&lt;em&gt; - Emphasis</a></li>
<li title="&lt;marker&gt; - Marker"><a href="inline_tags.html#id67549">&lt;marker&gt; - Marker</a></li>
<li title="&lt;seealso&gt; - Local Cross Reference"><a href="inline_tags.html#id67607">&lt;seealso&gt; - Local Cross Reference</a></li>
<li title="&lt;url&gt; - Non-Local Cross Reference"><a href="inline_tags.html#id67687">&lt;url&gt; - Non-Local Cross Reference</a></li>
<li title="&lt;term&gt;, &lt;termdef&gt; - Glossary"><a href="inline_tags.html#id67726">&lt;term&gt;, &lt;termdef&gt; - Glossary</a></li>
<li title="&lt;cite&gt;, &lt;citedef&gt; - Bibliography"><a href="inline_tags.html#id67790">&lt;cite&gt;, &lt;citedef&gt; - Bibliography</a></li>
</ul>
</li>
<li id="no" title="Character Entities" expanded="false">Character Entities<ul>
<li><a href="character_entities.html">
              Top of chapter
            </a></li>
<li title="Added Latin 1"><a href="character_entities.html#id67860">Added Latin 1</a></li>
</ul>
</li>
</ul>
</div></div>
<div id="content">
<div class="innertube">
<h1>4 Reference Manual DTDs</h1>
  

  <p>There are five DTDs for writing manual pages about applications,
    shell commands, C libraries, Erlang modules and files, all with a
    similar structure:</p>

  <ul>
    <li>A header.</li>
    <li>Name of the application/command/library/module/file.</li>
    <li>Short summary (one line).</li>
    <li>A longer description.</li>
    <li>"Formal" definitions of functions or commands.</li>
    <li>Optional sections of free text.</li>
    <li>Optional section with the name(s) and email(s) of the author(s).</li>
  </ul>

  <p>The differences between the DTDs are the tags for the name,
    the short summary and some tags inside the "formal" definitions.</p>

  <h3><a name="id64613">4.1 
        The application DTD</a></h3>
    <a name="applicationDTD"></a>
    

    <p>The <span class="code">application</span> DTD is intended for a Reference Manual and
      groups a set of manual pages into one unit. The structure is
      similar to the part DTD: first an introduction and then the manual
      pages, written in separate files with the
      <span class="bold_code"><a href="#apprefDTD">appref</a></span>,
      <span class="bold_code"><a href="#comrefDTD">comref</a></span>,
      <span class="bold_code"><a href="#crefDTD">cref</a></span>,
      <span class="bold_code"><a href="#erlrefDTD">erlref</a></span>, or
      <span class="bold_code"><a href="#filerefDTD">fileref</a></span> DTD.</p>

    <p>Example:</p>
    <div class="example"><pre>
&lt;?xml version="1.0" encoding="latin1" ?&gt;
&lt;!DOCTYPE application SYSTEM "application.dtd"&gt;
&lt;application&gt;
  &lt;header&gt;
    &lt;title&gt;Application name&lt;/title&gt;
    &lt;prepared/&gt;
    &lt;docno/&gt;
    &lt;date/&gt;
    &lt;rev/&gt;
  &lt;/header&gt;

  &lt;description&gt;
    &lt;p&gt;Application description...&lt;/p&gt;
  &lt;/description&gt;
  
  &lt;include file="module1"&gt;
  &lt;include file="module2"&gt;
&lt;/application&gt;
    </pre></div>
  

  <h3><a name="id64497">4.2 
        &lt;application&gt;</a></h3>
    <a name="applicationTAG"></a>
    

    <p>The top level tag of an <span class="code">application</span> DTD.</p>

    <p>Contains a
      <span class="bold_code"><a href="header_tags.html">&lt;header&gt;</a></span>,
      an optional
      <span class="bold_code"><a href="user_guide_dtds.html#descriptionTAG">&lt;description&gt;</a></span>,
      followed by one or more
      <span class="bold_code"><a href="user_guide_dtds.html#includeTAG">&lt;include&gt;</a></span>.
    </p>
  

  <h3><a name="id67949">4.3 
        The appref DTD</a></h3>
    <a name="apprefDTD"></a>
    

    <p>This is the DTD for writing an application manual page.</p>

    <p>Example:</p>
    <div class="example"><pre>
&lt;?xml version="1.0" encoding="latin1" ?&gt;
&lt;!DOCTYPE appref SYSTEM "appref.dtd"&gt;
&lt;appref&gt;
  &lt;header&gt;
    &lt;title&gt;Application name&lt;/title&gt;
    &lt;prepared/&gt;
    &lt;docno/&gt;
    &lt;date/&gt;
    &lt;rev/&gt;
  &lt;/header&gt;

  &lt;app&gt;Application name&lt;/app&gt;

  &lt;appsummary&gt;A short application summary.&lt;/appsummary&gt;

  &lt;description&gt;
    &lt;p&gt;A longer description of the application.&lt;/p&gt;
  &lt;/description&gt;
  
  &lt;section&gt;
    &lt;title&gt;Configuration&lt;/title&gt;

      &lt;p&gt;...&lt;/p&gt;
  &lt;/section&gt;

  ...
  
  &lt;authors&gt;
    &lt;aname&gt;Name of author&lt;/aname&gt;
    &lt;email&gt;Email of author&lt;/email&gt;
  &lt;/authors&gt;
&lt;/appref&gt;
    </pre></div>

    <h4>&lt;appref&gt;</h4>
      <a name="apprefTAG"></a>
      

      <p>The top level tag of an <span class="code">appref</span> DTD.</p>

      <p>Contains
	<span class="bold_code"><a href="header_tags.html#headerTAG">&lt;header&gt;</a></span>,
	<span class="bold_code"><a href="#appTAG">&lt;app&gt;</a></span>,
	<span class="bold_code"><a href="#appsummaryTAG">&lt;appsummary&gt;</a></span>,
	<span class="bold_code"><a href="#descriptionTAG">&lt;description&gt;</a></span>,
	zero or more
	<span class="bold_code"><a href="#sectionTAG">&lt;section&gt;</a></span> and
	<span class="bold_code"><a href="#funcsTAG">&lt;funcs&gt;</a></span>, 
	followed by zero or more 
	<span class="bold_code"><a href="#authorsTAG">&lt;authors&gt;</a></span>.</p>
    

    <h4>&lt;app&gt;</h4>
      <a name="appTAG"></a>
      

      <p>The application name. Contains plain text.</p>
    

    <h4>&lt;appsummary&gt;</h4>
      <a name="appsummaryTAG"></a>
      

      <p>Short summary. Contains plain text.</p>
    
  

  <h3><a name="id63005">4.4 
        The comref DTD</a></h3>
    <a name="comrefDTD"></a>
    

    <p>This is the DTD for writing a command manual page.</p>

    <p>Example:</p>
    <div class="example"><pre>
&lt;?xml version="1.0" encoding="latin1" ?&gt;
&lt;!DOCTYPE comref SYSTEM "comref.dtd"&gt;
&lt;comref&gt;
  &lt;header&gt;
    &lt;title&gt;Command name&lt;/title&gt;
    &lt;prepared/&gt;
    &lt;docno/&gt;
    &lt;date/&gt;
    &lt;rev/&gt;
  &lt;/header&gt;

  &lt;com&gt;Command name&lt;/com&gt;

  &lt;comsummary&gt;A short command summary.&lt;/comsummary&gt;

  &lt;description&gt;
    &lt;p&gt;A long description of the command.&lt;/p&gt;
  &lt;/description&gt;
  
  &lt;funcs&gt;
    &lt;func&gt;
      &lt;name&gt;command&lt;/name&gt;
      &lt;name&gt;command -flag &lt;arg&gt;&lt;/name&gt;
      &lt;fsummary&gt;A short command summary (max 40 characters).&lt;/fsummary&gt;
      &lt;desc&gt;
        &lt;p&gt;An extended command description.
      &lt;/desc&gt;
    &lt;/func&gt;
  &lt;/funcs&gt;

  &lt;section&gt;
    &lt;title&gt;Options&lt;/title&gt;

    &lt;p&gt;...&lt;/p&gt;
  &lt;/section&gt;
  
  &lt;authors&gt;
    &lt;aname&gt;Name of author&lt;/aname&gt;
    &lt;email&gt;Email of author&lt;/email&gt;
  &lt;/authors&gt;
&lt;/comref&gt;
    </pre></div>

    <h4>&lt;comref&gt;</h4>
      <a name="comrefTAG"></a>
      

      <p>The top level tag for a <span class="code">comref</span> DTD.</p>

      <p>Contains
	<span class="bold_code"><a href="header_tags.html#headerTAG">&lt;header&gt;</a></span>,
	<span class="bold_code"><a href="#comTAG">&lt;com&gt;</a></span>,
	<span class="bold_code"><a href="#comsummaryTAG">&lt;comsummary&gt;</a></span>,
	<span class="bold_code"><a href="#descriptionTAG">&lt;description&gt;</a></span>,
	zero or more
	<span class="bold_code"><a href="#sectionTAG">&lt;section&gt;</a></span> and
	<span class="bold_code"><a href="#funcsTAG">&lt;funcs&gt;</a></span>, 
	followed by zero or more
	<span class="bold_code"><a href="#authorsTAG">&lt;authors&gt;</a></span>.</p>
    

    <h4>&lt;com&gt;</h4>
      <a name="comTAG"></a>
      

      <p>The command name. Contains plain text.</p>
    

    <h4>&lt;comsummary&gt;</h4>
      <a name="comsummaryTAG"></a>

      

      <p>Short summary. Contains plain text.</p>
    
  

  <h3><a name="id65218">4.5 
        The cref DTD</a></h3>
    <a name="crefDTD"></a>
    

    <p>This is the DTD for writing a C library manual page.</p>

    <p>Example:</p>
    <div class="example"><pre>
&lt;?xml version="1.0" encoding="latin1" ?&gt;
&lt;!DOCTYPE cref SYSTEM "cref.dtd"&gt;
&lt;cref&gt;
  &lt;header&gt;
    &lt;title&gt;C library name&lt;/title&gt;
    &lt;prepared/&gt;
    &lt;docno/&gt;
    &lt;date/&gt;
    &lt;rev/&gt;
  &lt;/header&gt;

  &lt;lib&gt;C library name&lt;/lib&gt;

  &lt;libsummary&gt;A short C library summary.&lt;/libsummary&gt;

  &lt;description&gt;
    &lt;p&gt;A longer description of the C library.&lt;/p&gt;
  &lt;/description&gt;
  
  &lt;funcs&gt;
    &lt;func&gt;
      &lt;name&gt;&lt;ret&gt;void&lt;/ret&gt;&lt;nametext&gt;start(bar)&lt;/nametext&gt;&lt;/name&gt;
      &lt;name&gt;&lt;ret&gt;void&lt;/ret&gt;&lt;nametext&gt;start(foo)&lt;/nametext&gt;&lt;/name&gt;
      &lt;fsummary&gt;A short function summary (max 40 characters).&lt;/fsummary&gt;
      &lt;type&gt;
        &lt;v&gt;char bar&lt;/v&gt;
        &lt;v&gt;int foo&lt;/v&gt;
      &lt;/type&gt;
      &lt;desc&gt;
        &lt;p&gt;An extended function description.&lt;/p&gt;
      &lt;/desc&gt;
    &lt;/func&gt;

    ...
  &lt;/funcs&gt;

  &lt;section&gt;
    &lt;title&gt;A title&lt;/title&gt;

    &lt;p&gt;Some text...&lt;/p&gt;
  &lt;/section&gt;
  
  
&lt;/cref&gt;
    </pre></div>

    <h4>&lt;cref&gt;</h4>
      <a name="crefTAG"></a>
      

      <p>The top level tag for a <span class="code">cref</span> DTD.</p>

      <p>Contains
	<span class="bold_code"><a href="header_tags.html#headerTAG">&lt;header&gt;</a></span>,
	<span class="bold_code"><a href="#libTAG">&lt;lib&gt;</a></span>,
	<span class="bold_code"><a href="#libsummaryTAG">&lt;libsummary&gt;</a></span>,
	<span class="bold_code"><a href="#descriptionTAG">&lt;description&gt;</a></span>,
	zero or more
	<span class="bold_code"><a href="#sectionTAG">&lt;section&gt;</a></span> and
	<span class="bold_code"><a href="#funcsTAG">&lt;funcs&gt;</a></span>, followed by
	zero or more
	<span class="bold_code"><a href="#authorsTAG">&lt;authors&gt;</a></span>.</p>
    

    <h4>&lt;lib&gt;</h4>
      <a name="libTAG"></a>
      

      <p>The C library name or acronym. Contains plain text.</p>
    

    <h4>&lt;libsummary&gt;</h4>
      <a name="libsummaryTAG"></a>
      

      <p>Short summary. Contains plain text.</p>
    
  

  <h3><a name="id65347">4.6 
        The erlref DTD</a></h3>
    <a name="erlrefDTD"></a>
    

    <p>This is the DTD for writing Erlang module manual pages.</p>

    <p>Example:</p>
    <div class="example"><pre>
&lt;?xml version="1.0" encoding="latin1" ?&gt;
&lt;!DOCTYPE erlref SYSTEM "erlref.dtd"&gt;
&lt;erlref&gt;
  &lt;header&gt;
    &lt;title&gt;Module name&lt;/title&gt;
    &lt;prepared/&gt;
    &lt;docno/&gt;
    &lt;date/&gt;
    &lt;rev/&gt;
  &lt;/header&gt;

  &lt;module&gt;Module name&lt;/module&gt;

  &lt;modulesummary&gt;A short module summary.&lt;/modulesummary&gt;

  &lt;description&gt;
    &lt;p&gt;A longer description of the module.&lt;/p&gt;
  &lt;/description&gt;
  
  &lt;funcs&gt;
    &lt;func&gt;
      &lt;name&gt;start() -&gt; Result&lt;/name&gt;
      &lt;name&gt;start(N) -&gt; Result&lt;/name&gt;
      &lt;fsummary&gt;A short function summary (max 40 characters).&lt;/fsummary&gt;
      &lt;type&gt;
        &lt;v&gt;Pid = pid()&lt;/v&gt;
        &lt;v&gt;N = int()&lt;/v&gt;
        &lt;v&gt;Result = {ok, Pid} | {error, Reason}&lt;/v&gt;
        &lt;v&gt;Reason = term()&lt;/v&gt;
        &lt;d&gt;A parameter description.&lt;/d&gt;
      &lt;/type&gt;
      &lt;desc&gt;
        &lt;p&gt;An extended function description.&lt;/p&gt;
      &lt;/desc&gt;
    &lt;/func&gt;

    ...
  &lt;/funcs&gt;

  &lt;section&gt;
    &lt;title&gt;Some Title&lt;/title&gt;
    &lt;p&gt;Some text...&lt;/p&gt;
  &lt;/section&gt;
  
  &lt;authors&gt;
    &lt;aname&gt;Name of author&lt;/aname&gt;
    &lt;email&gt;Email of author&lt;/email&gt;
  &lt;/authors&gt;
&lt;/erlref&gt;
    </pre></div>

    <h4>&lt;erlref&gt;</h4>
      <a name="erlrefTAG"></a>
      

      <p>The top level tag for an <span class="code">erlref</span> DTD.</p>

      <p>Contains
	<span class="bold_code"><a href="header_tags.html#headerTAG">&lt;header&gt;</a></span>,
	<span class="bold_code"><a href="#moduleTAG">&lt;module&gt;</a></span>,
	<span class="bold_code"><a href="#modulesummaryTAG">&lt;modulesummary&gt;</a></span>,
	<span class="bold_code"><a href="#descriptionTAG">&lt;description&gt;</a></span>,
	zero or more
	<span class="bold_code"><a href="#sectionTAG">&lt;section&gt;</a></span> and
	<span class="bold_code"><a href="#funcsTAG">&lt;funcs&gt;</a></span>, 
	followed by zero or more
	<span class="bold_code"><a href="#authorsTAG">&lt;authors&gt;</a></span>.</p>
    

    <h4>&lt;module&gt;</h4>
      <a name="moduleTAG"></a>
      

      <p>The module name. Contains plain text.</p>
    

    <h4>&lt;modulesummary&gt;</h4>
      <a name="modulesummaryTAG"></a>
      

      <p>Short summary. Contains plain text.</p>
    
  

  <h3><a name="id65477">4.7 
        The fileref DTD</a></h3>
    <a name="filerefDTD"></a>
    

    <p>This is the DTD for writing file manual pages. In OTP, this DTD
      is used for defining the format of for example <span class="code">.rel</span> and
      <span class="code">.app</span> files.</p>

    <p>Example:</p>
    <div class="example"><pre>
&lt;?xml version="1.0" encoding="latin1" ?&gt;
&lt;!DOCTYPE fileref SYSTEM "fileref.dtd"&gt;
&lt;fileref&gt;
  &lt;header&gt;
    &lt;title&gt;File name&lt;/title&gt;
    &lt;prepared/&gt;
    &lt;docno/&gt;
    &lt;date/&gt;
    &lt;rev/&gt;
  &lt;/header&gt;

  &lt;file&gt;fileref&lt;/file&gt;

  &lt;filesummary&gt;A short file summary.&lt;/filesummary&gt;

  &lt;description&gt;
    &lt;p&gt;A longer description of the file.&lt;/p&gt;
  &lt;/description&gt;
  
  &lt;section&gt;
    &lt;title&gt;File format&lt;/title&gt;

    &lt;p&gt;...&lt;/p&gt;
  &lt;/section&gt;
  
  &lt;authors&gt;
    &lt;aname&gt;Name of author&lt;/aname&gt;
    &lt;email&gt;Email of author&lt;/email&gt;
  &lt;/authors&gt;
&lt;/fileref&gt;
    </pre></div>

    <p>The file reference manual can also contain function definitions,
      similar to the <span class="code">erlref</span> DTD.</p>

    <h4>&lt;fileref&gt;</h4>
      <a name="filerefTAG"></a>
      

      <p>The top level tag for a <span class="code">fileref</span> DTD.</p>

      <p>Contains
	<span class="bold_code"><a href="header_tags.html#headerTAG">&lt;header&gt;</a></span>,
	<span class="bold_code"><a href="#fileTAG">&lt;file&gt;</a></span>,
	<span class="bold_code"><a href="#filesummaryTAG">&lt;filesummary&gt;</a></span>,
	<span class="bold_code"><a href="#descriptionTAG">&lt;description&gt;</a></span>,
	zero or more
	<span class="bold_code"><a href="#sectionTAG">&lt;section&gt;</a></span> and
	<span class="bold_code"><a href="#funcsTAG">&lt;funcs&gt;</a></span>, 
	followed by zero or more
	<span class="bold_code"><a href="#authorsTAG">&lt;authors&gt;</a></span>.</p>
    

    <h4>&lt;file&gt;</h4>
      <a name="fileTAG"></a>
      

      <p>The name of the file or file type. Contains plain text.</p>
    

    <h4>&lt;filesummary&gt;</h4>
      <a name="filesummaryTAG"></a>
      

      <p>Short summary. Contains plain text.</p>
    
  

    <h3><a name="id65618">4.8 
        &lt;description&gt;</a></h3>
    <a name="descriptionTAG"></a>
    

    <p>The introduction after the title and before sections and
      "formal" definitions.</p>

    <p>Contains any combination and any number of
      <span class="bold_code"><a href="block_tags.html">block tags</a></span> except
      <span class="code">&lt;image&gt;</span> and <span class="code">&lt;table&gt;</span>.</p>
  

  <h3><a name="id65651">4.9 
        &lt;section&gt;</a></h3>
    <a name="sectionTAG"></a>
    

    <p>Subdivisions of the document. Contains an optional
      <span class="bold_code"><a href="inline_tags.html#markerTAG">&lt;marker&gt;</a></span>,
      a <span class="bold_code"><a href="user_guide_dtds.html#titleTAG">&lt;title&gt;</a></span>,
      
      followed by any combination and any number of
      <span class="bold_code"><a href="block_tags.html">block tags</a></span> except
      <span class="code">&lt;image&gt;</span> and <span class="code">&lt;table&gt;</span>.</p>
  

  <h3><a name="id65692">4.10 
        &lt;funcs&gt;</a></h3>
    <a name="funcsTAG"></a>
    

    <p>A group of "formal" function definitions.</p>
    
    <p>Contains one or more
      <span class="bold_code"><a href="#funcTAG">&lt;func&gt;</a></span>.</p>
  

  <h3><a name="id65718">4.11 
        &lt;func&gt;</a></h3>
    <a name="funcTAG"></a>
    

    <p>A "formal" function definition.</p>

    <p>Contains one or more
      <span class="bold_code"><a href="#nameTAG">&lt;name&gt;</a></span>, followed by
      <span class="bold_code"><a href="#fsummaryTAG">&lt;fsummary&gt;</a></span>,
      <span class="bold_code"><a href="#typeTAG">&lt;type&gt;</a></span> (optional) and
      <span class="bold_code"><a href="#descTAG">&lt;desc&gt;</a></span> (optional).</p>
  

  <h3><a name="id65761">4.12 
        &lt;name&gt;</a></h3>
    <a name="nameTAG"></a>
    

    <p>Function/command signature with name, arguments and return value.
      Contains plain text, except for the <span class="code">cref</span> DTD where it
      contains a <span class="code">&lt;ret&gt;</span> (return type, plain text) and
      a <span class="code">&lt;nametext&gt;</span> (function name and arguments,
      plain text).</p>

    <p>In the case of an <span class="code">erlref</span> DTD, it will
      automatically be added a
      <span class="bold_code"><a href="inline_tags.html#markerTAG">marker</a></span>,
      <span class="code">&lt;marker id="Name/Arity"&gt;</span> or
      <span class="code">&lt;marker id="Name"&gt;</span>, based on the contents of
      this tag before the function definition.</p>

    <p>Example: Consider the following name definition</p>
    <div class="example"><pre>
&lt;name&gt;foo(Arg1, Arg2) -&gt; ok | {error, Reason}&lt;/name&gt;
    </pre></div>

    <p>Then a marker like this will be added
      <span class="code">&lt;marker id="foo/2"&gt;</span> before the function
      definition in the generated HTML. That is, referring to
      the function using
      <span class="code">&lt;seealso marker="#foo/2"&gt;foo/2&lt;/seealso&gt;</span> will
      automatically work.</p>
  

  <h3><a name="id65831">4.13 
        &lt;fsummary&gt;</a></h3>
    <a name="fsummaryTAG"></a>
    

    <p>Function/command summary. Contains plain text,
      <span class="bold_code"><a href="inline_tags.html#cTAG">&lt;c&gt;</a></span> and
      <span class="bold_code"><a href="inline_tags.html#emTAG">&lt;em&gt;</a></span>.</p>
  

  <h3><a name="id65859">4.14 
        &lt;type&gt;</a></h3>
    <a name="typeTAG"></a>
    

    <p>Type declarations for the function/command.</p>

    <p>Contains one or more pairs of
      <span class="bold_code"><a href="#vTAG">&lt;v&gt;</a></span> and
      <span class="bold_code"><a href="#dTAG">&lt;d&gt;</a></span> (optional).</p>
  

  <h3><a name="id65891">4.15 
        &lt;v&gt;</a></h3>
    <a name="vTAG"></a>
    

    <p>Type declaration for an argument or return value. Contains plain
      text.</p>
  

  <h3><a name="id65907">4.16 
        &lt;d&gt;</a></h3>
    <a name="dTAG"></a>
    

    <p>Description for an argument or return value. Contains plain text,
      <span class="bold_code"><a href="inline_tags.html#cTAG">&lt;c&gt;</a></span> and
      <span class="bold_code"><a href="inline_tags.html#emTAG">&lt;em&gt;</a></span>.</p>
  

  <h3><a name="id65934">4.17 
        &lt;desc&gt;</a></h3>
    <a name="descTAG"></a>
    

    <p>Function/command description. Contains
      <span class="bold_code"><a href="block_tags.html">block tags</a></span> except
      <span class="code">&lt;image&gt;</span> and <span class="code">&lt;table&gt;</span>.</p>
  

  <h3><a name="id65964">4.18 
        &lt;authors&gt;</a></h3>
    <a name="authorsTAG"></a>
    

    <p>Authors of the manual page. The <span class="code">authors</span> element is  optional.</p>

    <p>Contains one or more pairs of
      <span class="bold_code"><a href="#anameTAG">&lt;aname&gt;</a></span> and
      <span class="bold_code"><a href="#emailTAG">&lt;email&gt;</a></span>.</p>
  

  <h3><a name="id66000">4.19 
        &lt;aname&gt;</a></h3>
    <a name="anameTAG"></a>
    

    <p>Author name. Contains plain text.</p>
  

  <h3><a name="id66016">4.20 
        &lt;email&gt;</a></h3>
    <a name="emailTAG"></a>
    

    <p>Author email address. Contains plain text.</p>
  
</div>
<div class="footer">
<hr>
<p>Copyright © 2004-2012 Ericsson AB. All Rights Reserved.</p>
</div>
</div>
</div></body>
</html>