chapter_5_section_5.html [plain text]
<html>
<head>
<META NAME="Generator" CONTENT="Gutenberg">
<META NAME="GeneratorVersion" CONTENT="v100.1">
<META http-equiv="content-type" CONTENT="text/html;charset=iso-8859-1">
<META NAME = "Copyright" CONTENT="Copyright 2004 Apple Computer, Inc. All Rights Reserved.">
<TITLE>Tools: HeaderDoc Unfettered: A Multi-Command Example</TITLE>
<base target="content">
<LINK REL="stylesheet" TYPE="text/css" HREF="../Resources/CSS/frameset_styles.css">
<style type="text/css"></style>
<script language="JavaScript" src="../Resources/JavaScript/page.js"></script>
</head>
<BODY bgcolor="#ffffff" onload="initialize_page();"><a name="//apple_ref/doc/uid/TP40001215-CH357-DontLinkElementID_1085" title="A Multi-Command Example" turn_anchor="no"></a>
<a name="top"></a>
<!-- start of header -->
<!--#include virtual="/includes/framesetheader" -->
<!-- end of header -->
<!-- start of path -->
<div class="breadcrumb"><a href="http://developer.apple.com/" target="_top">ADC Home</a> > <!--a logicalPath="//apple_ref/doc/uid/TP30000943" -->Reference Library<!--/a--> > <!--a logicalPath="//apple_ref/doc/uid/TP30000440" -->Documentation<!--/a--> > <!--a logicalPath="//apple_ref/doc/uid/TP30000436" -->Tools<!--/a--> > <a logicalPath="//apple_ref/doc/uid/TP40001215-CH345" href="../intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001215-CH345">HeaderDoc Unfettered</a> > <a logicalPath="//apple_ref/doc/uid/TP40001215-CH357" href="chapter_5_section_1.html#//apple_ref/doc/uid/TP40001215-CH357">Using the MPGL Suite</a> > </div><br>
<!-- end of path -->
<table width="100%" cellpadding=0 cellspacing=0 border=0 class="mini_nav_text"><tr>
<td align=left scope="row">
<!-- insert Show/Hide frames -->
<script type="text/javascript" language="JavaScript"><!--
if (self != top) {
document.write('<a href="'+self.location+'" target="_top"><img src="../Resources/Images/show_toc_icon.gif" width="15" height="14" border="0" style="margin-bottom: -2px;" alt=""></a> <a href="'+self.location+'" target="_top">Hide TOC</a>');
}
else {
document.write('<a href="../index.html?'+self.location+'" target="_top"><img src="../Resources/Images/show_toc_icon.gif" width="15" height="14" border="0" style="margin-bottom: -2px;" alt=""></a> <a href="../index.html?'+self.location+'" target="_top">Show TOC</a>');
}
<!-- end Show/Hide frames -->
</td><td align=right>
<a href="chapter_5_section_4.html" target="_self">< Previous Page</a><span style="margin-left: 8px"><a href="../config/chapter_6_section_1.html" target="_self">Next Page ></a></span>
</td>
</tr></table>
<hr>
<br><h2>A Multi-Command Example</h2>
<p><span class="content_text"><a logicalPath="//apple_ref/doc/uid/TP40001215-CH357-CHDCIAAC" href="chapter_5_section_5.html#//apple_ref/doc/uid/TP40001215-CH357-CHDCIAAC">Listing 1-3</a></span> is an example of how to write an MPGL manual page
for multiple commands in a single page.</p>
<table><a name="//apple_ref/doc/uid/TP40001215-CH357-CHDCIAAC" turn_anchor="no"></a><a name="CHDCIAAC" turn_anchor="no"></a><p><b><font face="lucida grande, geneva, helvetica, arial, sans-serif" size="2">Listing 5-3 An MPGL example for multiple commands</font></b></p>
<table cellpadding="8" width="100%" bgcolor="#F1F5F9" style="border: 1px solid #C9D1D7;"><tr><td scope="row"><table bgcolor="#F1F5F9" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><pre><code><manpage></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code><docdate>August 28, 2002</docdate></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code><doctitle>Document title</doctitle></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code><os>Darwin</os></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code><section>1</section></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code><names></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <name>hdxml2manxml<desc>HeaderDoc XML to MPGL translator</desc></name></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <name>xml2man<desc>MPGL to mdoc (man page) translator</desc></name></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <name>examplemc<desc>MPGL to mdoc (man page) translator</desc></name></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code></names></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code><usage></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <command name="hdxml2manxml"></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <arg>filename [ filename ... ]<desc>the filename(s) to be processed</desc></arg></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> </command></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <command name="xml2man"></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <arg>filename<desc>This is the filename</desc></arg></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <arg optional="1">output_filename<desc>This is the filename</desc></arg></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> </command></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <command name="example"></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <arg>filename<desc>This is the filename</desc></arg></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <arg optional="1">output_filename<desc>This is the filename</desc></arg></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> </command></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <command name="example"></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <arg>filename [ filename ... ]<desc>the filename(s) to be processed</desc></arg></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <flag optional="1">c<arg>time_to</arg><arg optional="1">crash</arg><desc>Seems like a useful flag</desc></flag></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> </command></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code></usage></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code><environment></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <p>The <name>xml2man</name> program was designed to convert Man Page</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> Generation Language (MPGL) XML files into mdoc-based manual pages.</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> The MPGL is a fairly direct translation of mdoc to XML.</p></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <p>The <name>hdxml2manxml</name> tool was designed to translate</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> from headerdoc's XML output to an mxml file for use with xml2man.</p></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code></environment></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code><seealso></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <p>For more information on xml2man, see</p></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <manpage>xml2man<section>1</section>, </manpage></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code> <manpage>hdxml2manxml<section>1</section>, </manpage></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code></seealso></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code></code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code></manpage></code></pre></td><td><code><pre></pre></code></td></tr></table></td></tr></table></table>
<br><br>
<table width="100%" cellpadding=0 cellspacing=0 border=0 class="mini_nav_text"><tr>
<td align=left scope="row">
<!-- insert Show/Hide frames -->
<script type="text/javascript" language="JavaScript"><!--
if (self != top) {
// loaded in frames
document.write('<a href="'+self.location+'" target="_top"><img src="../Resources/Images/show_toc_icon.gif" width="15" height="14" border="0" style="margin-bottom: -2px;" alt=""></a> <a href="'+self.location+'" target="_top">Hide TOC</a>');
}
else {
// not loaded frames
document.write('<a href="../index.html?'+self.location+'" target="_top"><img src="../Resources/Images/show_toc_icon.gif" width="15" height="14" border="0" style="margin-bottom: -2px;" alt=""></a> <a href="../index.html?'+self.location+'" target="_top">Show TOC</a>');
}
//--></script>
<!-- end Show/Hide frames -->
</td><td align=right>
<a href="chapter_5_section_4.html" target="_self">< Previous Page</a><span style="margin-left: 8px"><a href="../config/chapter_6_section_1.html" target="_self">Next Page ></a></span>
</td>
</tr></table>
<br><hr><p class="content_text"> <!--#if expr="0=1" -->© 1999, 2004 Apple Computer, Inc. All Rights Reserved. (<!--#endif -->Last updated: 2004-05-27<!--#if expr="0=1" -->)<!--#endif --></p>
<!-- start of footer -->
<!--#include virtual="/includes/framesetfooter" -->
<!-- end of footer -->
</BODY>
</html>