chapter_5_section_1.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: Using the MPGL Suite</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" title="Using the MPGL Suite" turn_anchor="yes"></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> > </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="../gatherheaderdoc/chapter_4_section_5.html" target="_self">< Previous Page</a><span style="margin-left: 8px"><a href="chapter_5_section_2.html" target="_self">Next Page ></a></span>
</td>
</tr></table>
<hr>
<a name="//apple_ref/doc/uid/TP40001215-CH357-CDEBBJJA" turn_anchor="no"></a><a name="CDEBBJJA" turn_anchor="no"></a><h1 class="page_title">Using the MPGL
Suite</h1><p>In addition to the main <code>headerDoc2HTML</code> and <code>gatherHeaderDoc</code> scripts,
the HeaderDoc suite contains additional utilities for generating
manual pages (using the mdoc macro set).</p>
<p>The Man Page Generation Language (MPGL) suite contains two
utilities: <code>xml2man</code> and <code>hdxml2manxml</code>.
The <code>xml2man</code> utility converts an mdoc-like XML
dialect, the Man Page Generation Language (MPGL) into manual pages.
The <code>hdxml2manxml</code> utility converts HeaderDoc
XML output into a series of files that can then be processed using <code>xml2man</code>.</p>
<p>Both commands have a very simple syntax. Neither takes any
arguments.</p>
<table><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>hdxml2manxml filename1 filename2 ... filenameN</code></pre></td><td><code><pre></pre></code></td></tr><tr><td scope="row"><pre><code>xml2man inputfile.mxml [ outputfile.1 ]</code></pre></td><td><code><pre></pre></code></td></tr></table></td></tr></table></table>
<p>In the case of <code>xml2man</code>, the output filename
is generally left blank.</p>
<p>The remainder of this chapter describes the XML dialect used
by these utilities.</p>
<h4><b>Contents:</b></h4>
<blockquote class="content_text">
<a logicalPath="//apple_ref/doc/uid/TP40001215-CH357-DontLinkElementID_1082" href="chapter_5_section_2.html#//apple_ref/doc/uid/TP40001215-CH357-DontLinkElementID_1082">Man Page Generation Language (MPGL) Dialect</a>
<br>
<a logicalPath="//apple_ref/doc/uid/TP40001215-CH357-DontLinkElementID_1083" href="chapter_5_section_3.html#//apple_ref/doc/uid/TP40001215-CH357-DontLinkElementID_1083">A Simple Function Example</a>
<br>
<a logicalPath="//apple_ref/doc/uid/TP40001215-CH357-DontLinkElementID_1084" href="chapter_5_section_4.html#//apple_ref/doc/uid/TP40001215-CH357-DontLinkElementID_1084">A Simple Command Example</a>
<br>
<a logicalPath="//apple_ref/doc/uid/TP40001215-CH357-DontLinkElementID_1085" href="chapter_5_section_5.html#//apple_ref/doc/uid/TP40001215-CH357-DontLinkElementID_1085">A Multi-Command Example</a>
<br>
</blockquote>
<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) {
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="../gatherheaderdoc/chapter_4_section_5.html" target="_self">< Previous Page</a><span style="margin-left: 8px"><a href="chapter_5_section_2.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>