Remove some outdated documentation #279

Removed some old files.
This commit is contained in:
Alex Lin 2016-08-10 13:55:16 -05:00
parent db547caa31
commit 784d6c86a4
11 changed files with 5 additions and 1072 deletions

Binary file not shown.

View File

@ -1,246 +0,0 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<style>
td { border-style: inset; border-color: lightgray; border-width: 1px; }
td.header { border-style: inset; border-color: gray; border-width: 1px; }
</style>
<html>
<head>
<title><xsl:value-of select="/file/full_path_file_name"/></title>
</head>
<body>
<font face="Arial">
<a name="TOP"></a>
<table bgcolor="#000000" width="100%" cellpadding="5" cellspacing="1">
<tr>
<td bgcolor="#fff2cc" >
<b><font size="5" face="Arial">
<xsl:value-of select="/file/file_name"/>
</font></b>
</td>
</tr>
</table>
<br></br><br></br>
<xsl:for-each select="file/trick_header">
<table width="100%" cellpadding="15" cellspacing="0" border="1" bordercolor="black" style="border-style: ridge;" >
<tr>
<td bgcolor="#ccccff" colspan="2" style="border-color: black; border-style: solid; border-size: 1px">
<b><font size="3"> Trick Header Information</font></b>
</td>
</tr>
<tr>
<td>
<TT>File</TT>
</td>
<td>
<a>
<xsl:attribute name="href">
<xsl:value-of select="/file/full_path_file_name"/>
</xsl:attribute>
<xsl:value-of select="/file/file_name"/>
</a>
</td>
</tr>
<tr>
<td><TT>Purpose</TT></td>
<td><xsl:value-of select="purpose"/></td>
</tr>
<tr>
<td><TT>References</TT></td>
<td>
<table rules="all" bordercolor="lightgray" cellpadding="5">
<tr>
<td width="15%"><TT>Author(s)</TT></td>
<td width="25%"><TT>Source</TT></td>
<td width="15%"><TT>Id</TT></td>
<td width="15%"><TT>Location</TT></td>
<td width="5%"><TT>Date</TT></td>
<td width="15%"><TT>Notes</TT></td>
</tr>
<xsl:for-each select="references/reference">
<tr>
<td><xsl:value-of select="author"/></td>
<td><xsl:value-of select="source"/></td>
<td><xsl:value-of select="id"/></td>
<td><xsl:value-of select="location"/></td>
<td><xsl:value-of select="date"/></td>
<td><xsl:value-of select="notes"/></td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
<tr>
<td><TT>Assumptions</TT></td>
<td>
<table rules="all" bordercolor="lightgray" cellpadding="5">
<xsl:for-each select="assumptions/assumption">
<tr>
<td>
<xsl:value-of select="current()"/>
</td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
<tr>
<td><TT>Requirements</TT></td>
<td>
<table rules="all" bordercolor="lightgray" cellpadding="5">
<xsl:for-each select="requirements/requirement">
<tr>
<td>
<xsl:value-of select="current()"/>
</td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
<tr>
<td><TT>Job Class</TT></td>
<td><xsl:value-of select="class"/></td>
</tr>
<tr>
<td>
<TT>Library Dependencies</TT>
</td>
<td>
<table rules="all" bordercolor="lightgray" cellpadding="5">
<xsl:for-each select="library_dependencies/library_dependency">
<tr>
<td><xsl:value-of select="text()"/></td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
<xsl:for-each select="modifications">
<tr>
<td><TT>Modifications</TT></td>
<td>
<table rules="all" bordercolor="lightgray" cellpadding="5">
<tr>
<td width="15%"><TT>Programmer</TT></td>
<td width="15%"><TT>Employer</TT></td>
<td width="10%"><TT>Date</TT></td>
<td width="15%"><TT>Id</TT></td>
<td width="45%"><TT>Description</TT></td>
</tr>
<xsl:for-each select="modification">
<tr>
<td> <xsl:value-of select="programmer"/></td>
<td> <xsl:value-of select="employer"/></td>
<td><xsl:value-of select="date"/></td>
<td><xsl:value-of select="id"/></td>
<td><xsl:value-of select="notes"/></td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</xsl:for-each>
</table>
</xsl:for-each>
<br></br><br></br><br></br>
<!-- Write out the jobs -->
<xsl:for-each select="file/jobs/job">
<table width="100%" cellpadding="15" cellspacing="0" border="1" bordercolor="black" style="border-style: ridge;" >
<tr>
<td bgcolor="#ccccff" colspan="2" style="border-color: black; border-style: solid; border-size: 1px">
<b><font size="3">Argument And Return Types</font></b>
</td>
</tr>
<tr>
<td><TT>Return Information</TT></td>
<td>
<table rules="all" bordercolor="lightgray" cellpadding="5">
<tr>
<td width="25%"><tt>Return Type</tt></td>
<td width="5%"><tt>Input/Output</tt></td>
<td width="5%"><tt>Units</tt></td>
<td width="65%"><tt>Description</tt></td>
</tr>
<tr>
<td><xsl:value-of select="return_type"/></td>
<td><xsl:value-of select="inout"/></td>
<td><xsl:value-of select="units"/></td>
<td><xsl:value-of select="comment"/></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><TT>Arguments</TT></td>
<td>
<table rules="all" bordercolor="lightgray" cellpadding="5">
<tr>
<td width="20%"><tt>Type</tt></td>
<td width="20%"><tt>Name</tt></td>
<td width="5%"><tt>Input/Output</tt></td>
<td width="5%"><tt>Units</tt></td>
<td width="50%"><tt>Description</tt></td>
</tr>
<xsl:for-each select="argument_list/arg">
<tr>
<td><xsl:value-of select="type"/><xsl:value-of select="dims"/></td>
<td><xsl:value-of select="arg_name"/></td>
<td><xsl:value-of select="inout"/></td>
<td><xsl:value-of select="units"/></td>
<td><xsl:value-of select="comment"/></td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</table>
</xsl:for-each>
<br></br><br></br><br></br>
<!-- Write out the #includes -->
<table width="100%" cellpadding="15" cellspacing="0" border="1" bordercolor="black" style="border-style: ridge;" >
<tr>
<td bgcolor="#ccccff" colspan="2" style="border-color: black; border-style: solid; border-size: 1px">
<b><font size="3">Included Headers</font></b>
</td>
</tr>
<tr>
<td>
<xsl:for-each select="file/includes/file">
<xsl:value-of select="current()"/><br></br>
</xsl:for-each>
</td>
</tr>
</table>
<br></br><br></br><br></br>
</font>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

View File

@ -1,239 +0,0 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/file">
<xsl:apply-templates select="file_name"/>
<xsl:apply-templates select="trick_header"/>
<xsl:if test="count(includes) != 0">
{\bf Include Files:}
\begin{itemize} <xsl:for-each select="includes">
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="file"/></xsl:call-template>
</xsl:for-each>
\end{itemize}
</xsl:if>
{\bf Functions:}
The following functions are defined in {\tt <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="file_name"/></xsl:call-template> }
\begin{itemize} <xsl:for-each select="jobs/job">
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="job_name"/></xsl:call-template>
</xsl:for-each>
\end{itemize}
\vspace{0.125in}
<xsl:apply-templates select="jobs"/>
</xsl:template>
<xsl:template match="file_name">
{\bf File:} {\tt <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="text()"/></xsl:call-template> }
\vspace{0.125in}
</xsl:template>
<!-- write out the trick header -->
<xsl:template match="trick_header">
<xsl:apply-templates select="purpose"/>
<xsl:apply-templates select="references"/>
<xsl:apply-templates select="assumptions"/>
<xsl:apply-templates select="library_dependencies"/>
</xsl:template>
<xsl:template match="purpose">
{\bf Purpose:}
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="text()"/></xsl:call-template>
\vspace{0.125in}
</xsl:template>
<xsl:template match="references">
{\bf References:}
<xsl:if test="count(reference) != 0">
\begin{itemize} <xsl:apply-templates select="reference"/>
\end{itemize}
</xsl:if>
</xsl:template>
<xsl:template match="reference">
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="author"/></xsl:call-template>
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="source"/></xsl:call-template>
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="id"/></xsl:call-template>
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="location"/></xsl:call-template>
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="date"/></xsl:call-template>
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="notes"/></xsl:call-template>
</xsl:template>
<xsl:template match="assumptions">
{\bf Assumption and Limitations:}
<xsl:if test="count(assumption) != 0">
\begin{itemize} <xsl:apply-templates select="assumption"/>
\end{itemize}
</xsl:if>
</xsl:template>
<xsl:template match="assumption">
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="text()"/></xsl:call-template>
</xsl:template>
<xsl:template match="requirements">
{\bf Requirements:}
<xsl:if test="count(requirement) != 0">
\begin{itemize} <xsl:apply-templates select="requirement"/>
\end{itemize}
</xsl:if>
</xsl:template>
<xsl:template match="requirement">
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="text()"/></xsl:call-template>
</xsl:template>
<xsl:template match="library_dependencies">
{\bf Library Dependencies:}
<xsl:if test="count(library_dependency) != 0">
\begin{itemize} <xsl:apply-templates select="library_dependency"/>
\end{itemize}
</xsl:if>
</xsl:template>
<xsl:template match="library_dependency">
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="text()"/></xsl:call-template>
</xsl:template>
<xsl:template match="jobs">
<xsl:apply-templates select="job"/>
</xsl:template>
<xsl:template match="job">
{\tt <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="job_name"/></xsl:call-template>:}
\hspace{0.25in} Return:
\hspace{0.5in}
\begin{tabular}{rl}
Return Type: &amp; {\tt <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="return_type"/></xsl:call-template> } \\
Units: &amp; <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="units"/></xsl:call-template>\\
Description: &amp; <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="comment"/></xsl:call-template>\\
\end{tabular}
\hspace{0.25in} Parameter List:
\begin{table}[hbt]
\begin{center}
\begin{tabular}{|l|l|l|l|l|p{2.5in}|} \hline
{\em Name} &amp; {\em Type} &amp; {\em Dim} &amp; {\em Usage} &amp; {\em Units} &amp; {\em Description} \\ \hline
<xsl:apply-templates select="argument_list"/>
\end{tabular}
\end{center}
\caption{<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="job_name"/></xsl:call-template>}
\label{tbl:<xsl:value-of select="job_name"/>}
\end{table}
</xsl:template>
<xsl:template match="argument_list">
<xsl:apply-templates select="arg"/>
</xsl:template>
<xsl:template match="arg">
{\tt <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="arg_name"/></xsl:call-template> } &amp;
{\tt <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="type"/></xsl:call-template> } &amp;
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="dims"/></xsl:call-template> &amp;
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="inout"/></xsl:call-template> &amp;
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="units"/></xsl:call-template> &amp;
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="comment"/></xsl:call-template> \\ \hline
</xsl:template>
<xsl:template name="replace">
<xsl:param name="string" select="''"/>
<xsl:param name="pattern" select="''"/>
<xsl:param name="replacement" select="''"/>
<xsl:choose>
<xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
<xsl:value-of select="substring-before($string, $pattern)"/>
<xsl:copy-of select="$replacement"/>
<xsl:call-template name="replace">
<xsl:with-param name="string" select="substring-after($string, $pattern)"/>
<xsl:with-param name="pattern" select="$pattern"/>
<xsl:with-param name="replacement" select="$replacement"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$string"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="transform_special">
<xsl:param name="incoming" select="''"/>
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string" select="normalize-space($incoming)"/>
<xsl:with-param name="pattern" select="'\'"/>
<xsl:with-param name="replacement" select="'$\backslash$'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'&amp;'"/>
<xsl:with-param name="replacement" select="'\&amp;'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'#'"/>
<xsl:with-param name="replacement" select="'\#'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'$'"/>
<xsl:with-param name="replacement" select="'\$'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'%'"/>
<xsl:with-param name="replacement" select="'\%'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'^'"/>
<xsl:with-param name="replacement" select="'\^{}'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'{'"/>
<xsl:with-param name="replacement" select="'\{'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'}'"/>
<xsl:with-param name="replacement" select="'\}'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'~'"/>
<xsl:with-param name="replacement" select="'\~{}'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'_'"/>
<xsl:with-param name="replacement" select="'\_'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'&gt;'"/>
<xsl:with-param name="replacement" select="'$&gt;$'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'&lt;'"/>
<xsl:with-param name="replacement" select="'$&lt;$'"/>
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>

View File

@ -1,128 +0,0 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<style>
td { border-style: inset; border-color: lightgray; border-width: 1px; }
td.header { border-style: inset; border-color: gray; border-width: 1px; }
</style>
<html>
<head>
<title><xsl:value-of select="s_define/title"/></title>
</head>
<body>
<font face="Arial">
<a name="TOP"></a>
<table bgcolor="#000000" width="100%" cellpadding="5" cellspacing="1">
<tr>
<td bgcolor="#fff2cc" >
<b><font size="5" face="Arial">
<xsl:value-of select="s_define/title"/>
</font></b>
</td>
</tr>
</table>
<br></br><br></br>
<!-- write out index to sim_objects -->
<table width="100%" cellpadding="5" cellspacing="0" border="1" bordercolor="black" style="border-style: ridge;" >
<tr>
<td bgcolor="#ccccff">
<b><font size="3" face="Arial">
Simulation Objects
</font></b>
</td>
</tr>
<tr>
<td>
<xsl:for-each select="s_define/sim_object">
<a>
<xsl:attribute name="href">
#<xsl:value-of select="sim_object_name"/>
</xsl:attribute>
<xsl:value-of select="sim_object_name"/>
</a>
<br></br>
</xsl:for-each>
</td>
</tr>
</table>
<br></br><br></br>
<!-- write out each sim_objects -->
<xsl:for-each select="s_define/sim_object">
<table width="100%" cellpadding="5" cellspacing="0" border="1" bordercolor="black" style="border-style: ridge;" >
<tr>
<td bgcolor="#ccccff" colspan="2">
<b><font size="3" face="Arial">
<a>
<xsl:attribute name="name">
<xsl:value-of select="sim_object_name"/>
</xsl:attribute>
<xsl:value-of select="sim_object_name"/>
object
</a>
</font></b>
</td>
</tr>
<tr>
<td>
<TT>Structures &amp; Initialization Data</TT>
</td>
<td>
<xsl:for-each select="structs/struct">
<a>
<xsl:attribute name="href">
<xsl:value-of select="link"/>#<xsl:value-of select="struct_name"/>
</xsl:attribute>
<xsl:value-of select="struct_name"/>
</a>
<br></br>
<xsl:for-each select="default_data">
&nbsp; &nbsp; &nbsp; &nbsp;
<a>
<xsl:attribute name="href">
<xsl:value-of select="file"/>
</xsl:attribute>
<xsl:value-of select="file"/>
</a>
<br></br>
</xsl:for-each>
</xsl:for-each>
</td>
</tr>
<tr>
<td><TT>Jobs</TT></td>
<td>
<xsl:for-each select="jobs/job">
<a>
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:value-of select="job_name"/>
()
</a>
<br></br>
</xsl:for-each>
</td>
</tr>
</table>
<br></br><br></br>
</xsl:for-each>
Generated from <a><xsl:attribute name="href">S_define</xsl:attribute>S_define</a>
<br></br>
</font>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

View File

@ -1,225 +0,0 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<style>
td { border-style: inset; border-color: lightgray; border-width: 1px; }
td.header { border-style: inset; border-color: gray; border-width: 1px; }
</style>
<html>
<head>
<title><xsl:value-of select="file/full_path_file_name"/></title>
</head>
<body>
<font face="Arial">
<!-- write out the trick header -->
<xsl:for-each select="file/trick_header">
<table width="100%" cellpadding="15" cellspacing="0" border="1" bordercolor="black" style="border-style: ridge;" >
<tr>
<td bgcolor="#ccccff" colspan="2" style="border-color: black; border-style: solid; border-size: 1px">
<b><font size="3"> Trick Header Information</font></b>
</td>
</tr>
<tr>
<td>
<TT>File</TT>
</td>
<td>
<a>
<xsl:attribute name="href">
<xsl:value-of select="/file/full_path_file_name"/>
</xsl:attribute>
<xsl:value-of select="/file/file_name"/>
</a>
</td>
</tr>
<xsl:for-each select="reference">
<tr>
<td><TT>Reference</TT></td>
<td>
<table rules="all" bordercolor="lightgray" cellpadding="5">
<tr>
<td width="15%"><TT>Author(s)</TT></td>
<td width="25%"><TT>Source</TT></td>
<td width="15%"><TT>Id</TT></td>
<td width="15%"><TT>Location</TT></td>
<td width="5%"><TT>Date</TT></td>
<td width="25%"><TT>Notes</TT></td>
</tr>
<tr>
<td>
<xsl:for-each select="authors/author">
<xsl:value-of select="current()"/><br></br>
</xsl:for-each>
</td>
<td><xsl:value-of select="source"/></td>
<td><xsl:value-of select="id"/></td>
<td><xsl:value-of select="location"/></td>
<td><xsl:value-of select="date"/></td>
<td><xsl:value-of select="notes"/></td>
</tr>
</table>
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="assumption">
<tr>
<td><TT>Assumption</TT></td>
<td><xsl:value-of select="current()"/></td>
</tr>
</xsl:for-each>
<tr>
<td><TT>Purpose</TT></td>
<td><xsl:value-of select="purpose"/></td>
</tr>
<xsl:for-each select="modifications">
<tr>
<td><TT>Modifications</TT></td>
<td>
<table rules="all" bordercolor="lightgray" cellpadding="5">
<tr>
<td width="15%"><TT>Programmer</TT></td>
<td width="15%"><TT>Employer</TT></td>
<td width="10%"><TT>Date</TT></td>
<td width="15%"><TT>Id</TT></td>
<td width="45%"><TT>Description</TT></td>
</tr>
<xsl:for-each select="modification">
<tr>
<td> <xsl:value-of select="programmer"/></td>
<td> <xsl:value-of select="employer"/></td>
<td><xsl:value-of select="date"/></td>
<td><xsl:value-of select="id"/></td>
<td><xsl:value-of select="description"/></td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</xsl:for-each>
</table>
</xsl:for-each>
<br></br><br></br><br></br>
<!-- Write out the enumerated types -->
<table width="100%" cellpadding="15" cellspacing="0" border="1" bordercolor="black" style="border-style: ridge;" >
<tr>
<td bgcolor="#ccccff" colspan="2" style="border-color: black; border-style: solid; border-size: 1px">
<b><font size="3"> Enumerations </font></b>
</td>
</tr>
<xsl:for-each select="file/enumerations/enum">
<tr>
<td style="border-style: none">
<table bgcolor="#fff2cc" bordercolor="black" cellpadding="5"
style="border-style: solid;
-moz-border-radius: 12px 12px 0px 0px;
border-width: 1px 1px 0px 1px;">
<tr>
<a>
<xsl:attribute name="name">
<xsl:value-of select="enum_name"/>
</xsl:attribute>
</a>
<td style="border-style: none">
<b><xsl:value-of select="enum_name"/></b>
</td>
</tr>
</table>
<table bordercolor="lightgray" cellpadding="5" style="border-style: none; border-collapse: collapse;">
<tr>
<td class="header" width="25%">Member</td>
<td class="header" width="5%">Value</td>
<td class="header" width="70%">Description</td>
</tr>
<xsl:for-each select="member">
<tr>
<td><xsl:value-of select="mname"/></td>
<td><xsl:value-of select="value"/></td>
<td><xsl:value-of select="comment"/></td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</xsl:for-each>
</table>
<br></br><br></br><br></br>
<!-- Write out the struct types -->
<table width="100%" cellpadding="15" cellspacing="0" border="2" bordercolor="black"
style="border-style: ridge;">
<tr>
<td bgcolor="#ccccff" colspan="2" style="border-color: black; border-style: solid; border-size: 1px;">
<b><font size="3"> Structures </font></b>
</td>
</tr>
<xsl:for-each select="file/structures/struct">
<tr>
<a>
<xsl:attribute name="name">
<xsl:value-of select="struct_name"/>
</xsl:attribute>
</a>
<td style="border-style: none">
<table bgcolor="#fff2cc" bordercolor="black" cellpadding="5"
style="border-style: solid;
-moz-border-radius: 12px 12px 0px 0px;
border-width: 1px 1px 0px 1px;">
<tr>
<td style="border-style: none">
<b><xsl:value-of select="struct_name"/></b>
</td>
</tr>
</table>
<table bordercolor="lightgray" cellpadding="5" style="border-style: none; border-collapse: collapse;">
<tr>
<td class="header" width="20%">Member</td>
<td class="header" width="20%">Type</td>
<td class="header" width="5%">Dims</td>
<td class="header" width="5%">Units</td>
<td class="header" width="50%">Description</td>
</tr>
<xsl:for-each select="member">
<tr>
<td> <xsl:value-of select="pname"/> </td>
<xsl:if test="link">
<td>
<a>
<xsl:attribute name="href">
<xsl:value-of select="link"/>#<xsl:value-of select="type"/>
</xsl:attribute>
<xsl:value-of select="type"/>
<xsl:if test="is_enum">
<sup>e</sup>
</xsl:if>
</a>
</td>
</xsl:if>
<xsl:if test="not(link)">
<td><xsl:value-of select="type"/></td>
</xsl:if>
<td><xsl:value-of select="dims"/></td>
<td><xsl:value-of select="units"/></td>
<td><xsl:value-of select="comment"/></td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</xsl:for-each>
</table>
</font>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

View File

@ -1,233 +0,0 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/file">
<xsl:apply-templates select="file_name"/>
<xsl:apply-templates select="trick_header"/>
<xsl:if test="count(enumerations/enum) != 0">
{\bf Enumerations:}
\begin{itemize} <xsl:for-each select="enumerations/enum">
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="enum_name"/></xsl:call-template>
</xsl:for-each>
\end{itemize}
</xsl:if>
<xsl:if test="count(structures/struct) != 0">
{\bf Structures:}
\begin{itemize} <xsl:for-each select="structures/struct">
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="struct_name"/></xsl:call-template>
</xsl:for-each>
\end{itemize}
</xsl:if>
<xsl:apply-templates select="enumerations"/>
<xsl:apply-templates select="structures"/>
</xsl:template>
<xsl:template match="file_name">
{\bf File:} {\tt <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="text()"/></xsl:call-template> }
\vspace{0.125in}
</xsl:template>
<!-- write out the trick header -->
<xsl:template match="trick_header">
<xsl:apply-templates select="purpose"/>
<xsl:apply-templates select="references"/>
<xsl:apply-templates select="assumptions"/>
</xsl:template>
<xsl:template match="purpose">
{\bf Purpose:}
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="text()"/></xsl:call-template>
\vspace{0.125in}
</xsl:template>
<xsl:template match="references">
{\bf References:}
<xsl:if test="count(reference) != 0">
\begin{itemize} <xsl:apply-templates select="reference"/>
\end{itemize}
</xsl:if>
</xsl:template>
<xsl:template match="reference">
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="author"/></xsl:call-template>
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="source"/></xsl:call-template>
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="id"/></xsl:call-template>
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="location"/></xsl:call-template>
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="date"/></xsl:call-template>
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="notes"/></xsl:call-template>
</xsl:template>
<xsl:template match="assumptions">
{\bf Assumption and Limitations:}
<xsl:if test="count(assumption) != 0">
\begin{itemize} <xsl:apply-templates select="assumption"/>
\end{itemize}
</xsl:if>
</xsl:template>
<xsl:template match="assumption">
\item <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="text()"/></xsl:call-template>
</xsl:template>
<xsl:template match="enumerations">
<xsl:apply-templates select="enum"/>
</xsl:template>
<xsl:template match="enum">
\begin{table}[hbt]
\begin{center}
\begin{tabular}{|l|l|p{3.0in}|} \hline
\multicolumn{3}{|c|}{\bf <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="enum_name"/></xsl:call-template>} \\ \hline \hline
{\em Tag Name} &amp; {\em Value} &amp; {\em Description} \\ \hline
<xsl:for-each select="member">
{\tt <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="name"/></xsl:call-template> } &amp;
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="value"/></xsl:call-template> &amp;
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="comment"/></xsl:call-template> \\ \hline
</xsl:for-each>
\end{tabular}
\end{center}
\caption{<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="enum_name"/></xsl:call-template> enumeration tag values.}
\label{tbl:<xsl:value-of select="enum_name"/>}
\end{table}
</xsl:template>
<xsl:template match="file/enumerations/enum/member">
{\tt <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="name"/></xsl:call-template> } &amp;
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="value"/></xsl:call-template> &amp;
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="comment"/></xsl:call-template> \\ \hline
</xsl:template>
<xsl:template match="structures">
<xsl:apply-templates select="struct"/>
</xsl:template>
<xsl:template match="struct">
\begin{table}[hbt]
\begin{center}
\begin{tabular}{|l|l|l|l|p{2.75in}|} \hline
\multicolumn{5}{|c|}{\bf <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="struct_name"/></xsl:call-template>} \\ \hline \hline
{\em Field Name} &amp; {\em Type} &amp; {\em Dim} &amp; {\em Units} &amp; {\em Description} \\ \hline
<xsl:apply-templates select="member"/>
\end{tabular}
\end{center}
\caption{<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="struct_name"/></xsl:call-template> field members.}
\label{tbl:<xsl:value-of select="struct_name"/>}
\end{table}
</xsl:template>
<xsl:template match="member">
{\tt <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="name"/></xsl:call-template> } &amp;
{\tt <xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="type"/></xsl:call-template> } &amp;
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="dims"/></xsl:call-template> &amp;
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="units"/></xsl:call-template> &amp;
<xsl:call-template name="transform_special"><xsl:with-param name="incoming" select="comment"/></xsl:call-template> \\ \hline
</xsl:template>
<xsl:template name="replace">
<xsl:param name="string" select="''"/>
<xsl:param name="pattern" select="''"/>
<xsl:param name="replacement" select="''"/>
<xsl:choose>
<xsl:when test="$pattern != '' and $string != '' and contains($string, $pattern)">
<xsl:value-of select="substring-before($string, $pattern)"/>
<xsl:copy-of select="$replacement"/>
<xsl:call-template name="replace">
<xsl:with-param name="string" select="substring-after($string, $pattern)"/>
<xsl:with-param name="pattern" select="$pattern"/>
<xsl:with-param name="replacement" select="$replacement"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$string"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="transform_special">
<xsl:param name="incoming" select="''"/>
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string">
<xsl:call-template name="replace">
<xsl:with-param name="string" select="normalize-space($incoming)"/>
<xsl:with-param name="pattern" select="'\'"/>
<xsl:with-param name="replacement" select="'$\backslash$'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'&amp;'"/>
<xsl:with-param name="replacement" select="'\&amp;'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'#'"/>
<xsl:with-param name="replacement" select="'\#'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'$'"/>
<xsl:with-param name="replacement" select="'\$'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'%'"/>
<xsl:with-param name="replacement" select="'\%'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'^'"/>
<xsl:with-param name="replacement" select="'\^{}'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'{'"/>
<xsl:with-param name="replacement" select="'\{'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'}'"/>
<xsl:with-param name="replacement" select="'\}'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'~'"/>
<xsl:with-param name="replacement" select="'\~{}'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'_'"/>
<xsl:with-param name="replacement" select="'\_'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'&gt;'"/>
<xsl:with-param name="replacement" select="'$&gt;$'"/>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="pattern" select="'&lt;'"/>
<xsl:with-param name="replacement" select="'$&lt;$'"/>
</xsl:call-template>
</xsl:template>
</xsl:stylesheet>

Binary file not shown.

View File

@ -0,0 +1,4 @@
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=https://github.com/nasa/trick/wiki/TutorialHome">
</head>

Binary file not shown.

View File

@ -1,4 +1,4 @@
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=html/users_guide.html">
<meta HTTP-EQUIV="REFRESH" content="0; url=https://github.com/nasa/trick/wiki/Users-Guide">
</head>