📄 symbolsreporthtml.xsl
字号:
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<!-- <tr id="FileProperties_h1" align="left"> -->
<tr>
<xsl:attribute name="id"><xsl:value-of select="$fileproperties_id" /></xsl:attribute>
<xsl:attribute name="align">left</xsl:attribute>
<xsl:attribute name="style">display:none</xsl:attribute>
<th>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<table border="0" width="10px" cellpadding="0" cellspacing="0"></table>
</td>
<td>
<xsl:call-template name="symbol_metrics_template" />
<br/>
<xsl:call-template name="next_symbol_values_template" />
<br/>
<xsl:call-template name="symbols_template" />
<br/>
</td>
</tr>
</table>
</th>
</tr>
</table>
</tr>
</xsl:for-each>
</tr>
</tbody></table>
<hr width="100%" />
<small><i>Report produced by <xsl:value-of select="/ResOrgExportFile/Application/@name" />
version <xsl:value-of select="/ResOrgExportFile/Application/Version" /> at <xsl:value-of select="/ResOrgExportFile/Timestamp" /><br/>
<br/>
<a>
<xsl:attribute name="href"><xsl:value-of select="/ResOrgExportFile/Application/WebUrl" /></xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<xsl:value-of select="/ResOrgExportFile/Application/WebUrl" />
</a>
</i></small>
</html>
</xsl:template>
<!-- Template to generate the "Metrics" table -->
<xsl:template name="symbol_metrics_template" match="*">
<xsl:variable name="metrics" select="concat('Metrics_', @uid)" />
<xsl:variable name="metrics_id" select="concat($metrics, '_h1')" />
<xsl:variable name="metricstablebody" select="concat('MetricsTableBody_', @uid)" />
<font class="table_caption">
<!-- <a id="DynMessLink" name="Metrics" href="Metrics_h1">Metrics</a> -->
<a>
<xsl:attribute name="id">DynMessLink</xsl:attribute>
<xsl:attribute name="name"><xsl:value-of select="$metrics" /></xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="$metrics_id" /></xsl:attribute>
Metrics
</a>
</font>
<br />
<br />
<table border="0" width="75%" cellpadding="0" cellspacing="0">
<!-- <tr id="Metrics_h1" align="left"> -->
<tr>
<xsl:attribute name="id"><xsl:value-of select="$metrics_id" /></xsl:attribute>
<xsl:attribute name="align">left</xsl:attribute>
<th>
<table border="0" cellpadding="4" cellspacing="0">
<thead>
<tr>
<th align="left"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$metricstablebody" />', 0, false);</xsl:attribute>
Type
</a></th>
<th align="center"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$metricstablebody" />', 1, false);</xsl:attribute>
Count
</a></th>
<th align="center"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$metricstablebody" />', 2, false);</xsl:attribute>
Min Value
</a></th>
<th align="center"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$metricstablebody" />', 3, false);</xsl:attribute>
Max Value
</a></th>
</tr>
<tr>
<td align="left"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
</tr>
</thead>
<tbody>
<xsl:attribute name="id"><xsl:value-of select="$metricstablebody" /></xsl:attribute>
<tr>
<td align="left">Bitmaps (IDB_):</td>
<td align="center"><xsl:value-of select="Metrics/Bitmaps/Count" /></td>
<td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td align="left">Icons (IDI_):</td>
<td align="center"><xsl:value-of select="Metrics/Icons/Count" /></td>
<td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td align="left">Accelerators (IDK_):</td>
<td align="center"><xsl:value-of select="Metrics/Accelerators/Count" /></td>
<td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td align="left">Menus (IDM_):</td>
<td align="center"> <xsl:value-of select="Metrics/Menus/Count" /></td>
<td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td align="left">Prompts (IDP_):</td>
<td align="center"> <xsl:value-of select="Metrics/Prompts/Count" /></td>
<td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td align="left">Strings (IDS_):</td>
<td align="center"><xsl:value-of select="Metrics/Strings/Count" /></td>
<td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td align="left">Toolbars (IDT_):</td>
<td align="center"><xsl:value-of select="Metrics/Toolbars/Count" /></td>
<td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td align="left">Controls (IDC_):</td>
<td align="center"><xsl:value-of select="Metrics/Controls/Count" /></td>
<td align="center"></td>
<td align="center"></td>
</tr>
<tr>
<td align="left">Other Resources:</td>
<td align="center"><xsl:value-of select="Metrics/Resources/Count" /></td>
<td align="center"><xsl:value-of select="Metrics/Resources/MinValue" /></td>
<td align="center"><xsl:value-of select="Metrics/Resources/MaxValue" /></td>
</tr>
<tr>
<td align="left">Commands (ID_):</td>
<td align="center"><xsl:value-of select="Metrics/Commands/Count" /></td>
<td align="center"><xsl:value-of select="Metrics/Commands/MinValue" /></td>
<td align="center"><xsl:value-of select="Metrics/Commands/MaxValue" /></td>
</tr>
</tbody>
</table>
<br />
<br />
</th>
</tr>
</table>
</xsl:template>
<!-- Template to generate the "Next Symbol Properties" table -->
<xsl:template name="next_symbol_values_template" match="*">
<xsl:variable name="nextsymbolvalues" select="concat('NextSymbolValues_', @uid)" />
<xsl:variable name="nextsymbolvalues_id" select="concat($nextsymbolvalues, '_h1')" />
<xsl:variable name="nextsymbolvaluestablebody" select="concat('NextSymbolValuesTableBody_', @uid)" />
<font class="table_caption">
<a>
<xsl:attribute name="id">DynMessLink</xsl:attribute>
<xsl:attribute name="name"><xsl:value-of select="$nextsymbolvalues" /></xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="$nextsymbolvalues_id" /></xsl:attribute>
Next Symbol Values
</a>
</font>
<!-- <a id="DynMessLink" name="NextSymbolValues" href="NextSymbolValues_h1">Next Symbol Values</a> -->
<br />
<br />
<table border="0" width="75%" cellpadding="0" cellspacing="0">
<tr>
<xsl:attribute name="id"><xsl:value-of select="$nextsymbolvalues_id" /></xsl:attribute>
<xsl:attribute name="align">left</xsl:attribute>
<!-- <tr id="NextSymbolValues_h1" align="left"> -->
<th>
<table border="0" cellpadding="4" cellspacing="0">
<thead>
<tr>
<th align="left"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$nextsymbolvaluestablebody" />', 0, false);</xsl:attribute>
Symbol Type
</a></th>
<th align="center"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$nextsymbolvaluestablebody" />', 1, false);</xsl:attribute>
Next Symbol Value
</a></th>
</tr>
</thead>
<tbody>
<xsl:attribute name="id"><xsl:value-of select="$nextsymbolvaluestablebody" /></xsl:attribute>
<tr>
<td align="left">Resources:</td>
<td align="center"><xsl:value-of select="NextSymbols/Resources" /></td>
</tr>
<tr>
<td align="left">Controls: </td>
<td align="center"><xsl:value-of select="NextSymbols/Controls" /></td>
</tr>
<tr>
<td align="left">Commands: </td>
<td align="center"><xsl:value-of select="NextSymbols/Commands" /></td>
</tr>
<tr>
<td align="left">Editable Symbols:</td>
<td align="center"><xsl:value-of select="NextSymbols/EditableSymbols" /></td>
</tr>
</tbody>
</table>
<br />
<br />
</th>
</tr>
</table>
</xsl:template>
<!-- Template to produce the "Symbols" table -->
<xsl:template name="symbols_template" match="*">
<xsl:variable name="symbols" select="concat('Symbols_', @uid)" />
<xsl:variable name="symbols_id" select="concat($symbols, '_h1')" />
<font class="table_caption">
<!-- <a id="DynMessLink" name="Symbols" href="Symbols_h1">Symbols</a> -->
<a>
<xsl:attribute name="id">DynMessLink</xsl:attribute>
<xsl:attribute name="name"><xsl:value-of select="$symbols" /></xsl:attribute>
<xsl:attribute name="href"><xsl:value-of select="$symbols_id" /></xsl:attribute>
Symbols
</a>
</font>
<br />
<br />
<table border="0" width="75%" cellpadding="0" cellspacing="0">
<!-- <tr id="Symbols_h1" align="left" style="display:none"> -->
<tr>
<xsl:attribute name="id"><xsl:value-of select="$symbols_id" /></xsl:attribute>
<xsl:attribute name="align">left</xsl:attribute>
<xsl:attribute name="style">display:none</xsl:attribute>
<th>
<table border="0" cellpadding="4" cellspacing="0">
<xsl:variable name="symbolstablebody" select="concat('SymbolsTableBody_', @uid)" />
<thead>
<tr>
<th align="left"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$symbolstablebody" />', 0, false);</xsl:attribute>
Name
</a></th>
<th align="left"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$symbolstablebody" />', 1, false);</xsl:attribute>
Type
</a></th>
<th align="left"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$symbolstablebody" />', 2, false);</xsl:attribute>
Value
</a></th>
<xsl:choose>
<xsl:when test="Options/CheckForOutOfRangeSymbols>0">
<th align="center"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$symbolstablebody" />', 3, false);</xsl:attribute>
Out of Range?
</a></th>
<th align="center"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$symbolstablebody" />', 4, false);</xsl:attribute>
Read Only?
</a></th>
<th align="left"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$symbolstablebody" />', 5, false);</xsl:attribute>
Conflicts
</a></th>
</xsl:when>
<xsl:otherwise>
<th align="center"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$symbolstablebody" />', 3, false);</xsl:attribute>
Read Only?
</a></th>
<th align="left"><a>
<xsl:attribute name="href"></xsl:attribute>
<xsl:attribute name="onclick">this.blur(); return sortTable('<xsl:value-of select="$symbolstablebody" />', 4, false);</xsl:attribute>
Conflicts
</a></th>
</xsl:otherwise>
</xsl:choose>
</tr>
</thead>
<tbody>
<xsl:attribute name="id"><xsl:value-of select="$symbolstablebody" /></xsl:attribute>
<xsl:for-each select="Symbols/Symbol">
<xsl:call-template name="symbol_properties_template">
<xsl:with-param name="symbol" select="*"/>
</xsl:call-template>
</xsl:for-each>
</tbody>
</table>
<br />
<br />
</th>
</tr>
</table>
</xsl:template>
<!-- Template to spit out a single row of symbol properties -->
<xsl:template name="symbol_properties_template" match="*">
<tr>
<!-- <xsl:if test="Conflicts/@total > 0"><xsl:element name="b"/></xsl:if> -->
<td align="left">
<!-- Add an anchor for the symbol (using it's name) so conflicts can reference it -->
<xsl:variable name="symbolanchor" select="concat(@name, '_', @uid)" />
<a>
<xsl:attribute name="name">
<xsl:value-of select="$symbolanchor" />
</xsl:attribute>
</a>
<xsl:value-of select="@name" />
</td>
<td align="left"><xsl:value-of select="Type" /></td>
<td align="left"><xsl:value-of select="Value" /></td>
<xsl:if test="OutOfRange!='n/a'">
<td align="center">
<xsl:choose>
<xsl:when test="OutOfRange>0"><font color="red"><b>Yes</b></font></xsl:when>
<xsl:otherwise>No</xsl:otherwise>
</xsl:choose>
</td>
</xsl:if>
<td align="center">
<xsl:choose>
<xsl:when test="ReadOnly=1"><b>Yes</b></xsl:when>
<xsl:when test="ReadOnly=0">No</xsl:when>
<xsl:otherwise>???</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:for-each select="Conflicts/Symbol">
<xsl:variable name="conflictingsymbolanchor" select="concat('#', @name, '_', @uid)" />
<a>
<xsl:attribute name="href"><xsl:value-of select="$conflictingsymbolanchor" /></xsl:attribute>
<xsl:value-of select="@name" />
</a>
<br />
</xsl:for-each>
</td>
<!-- <xsl:if test="Conflicts/@total > 0"><xsl:element name="/b"/></xsl:if> -->
</tr>
</xsl:template>
</xsl:stylesheet>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -