JD2022-TU1/main/extern/Camcam/TestApp/output/Script_Help.xsl

199 lines
No EOL
10 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:utils="urn:galileo-com:msxsl-jscript-utilities">
<xsl:variable name="min" select=" 'abcdefghijklmnopqrstuvwxyz' "/>
<xsl:variable name="maj" select=" 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' "/>
<xsl:variable name="tabHeight" select="115"/>
<xsl:variable name="nbCatInCol1" select="7"/>
<xsl:variable name="nbCatInCol2" select="10"/>
<xsl:variable name="nbCatInCol3" select="6"/>
<xsl:variable name="nbCatInCol4" select="3"/>
<xsl:variable name="nbCatInCol5" select="4"/>
<xsl:variable name="nbFuncInCol1" select="($tabHeight)-4*($nbCatInCol1)-2"/>
<xsl:variable name="nbFuncInCol2" select="($tabHeight)-4*($nbCatInCol2)"/>
<xsl:variable name="nbFuncInCol3" select="($tabHeight)-4*($nbCatInCol3)"/>
<xsl:variable name="nbFuncInCol4" select="($tabHeight)-4*($nbCatInCol4)"/>
<xsl:variable name="nbFuncInCol5" select="($tabHeight)-4*($nbCatInCol5)"/>
<xsl:variable name="posDebCol1" select="1"/>
<xsl:variable name="posDebCol2" select="$posDebCol1+$nbFuncInCol1"/>
<xsl:variable name="posDebCol3" select="$posDebCol2+$nbFuncInCol2"/>
<xsl:variable name="posDebCol4" select="$posDebCol3+$nbFuncInCol3"/>
<xsl:variable name="posDebCol5" select="$posDebCol4+$nbFuncInCol4"/>
<xsl:template match="/">
<html>
<head> <style type="text/css">a.up:link {text-decoration: none; color: white; background-color: red; vertical-align: 6px;}
a.up:visited {text-decoration: none; color: white; background-color: red; vertical-align: 6px;}
a.up:hover {text-decoration: none; color: white; background-color: cyan; vertical-align: 6px;}
a.func:link {text-decoration: none; font-weight: bold; color: white; background-color: #0088cc;}
a.func:visited {text-decoration: none; font-weight: bold; color: white; background-color: #0088cc;}
a.func:hover {text-decoration: none; font-weight: bold; color: white; background-color: #00E1DC;}</style></head>
<body>
<table width="100%" cellpadding="0" border="0">
<tr>
<td>
<table width="0%" cellpadding="0" cellspacing="10" style="border: dashed 1px #00E1DC" align="center">
<tr>
<td>
<h1>
<font size="6" face="ms sans serif"> functions script help</font>
<font face="ms sans serif" size="5" color="white" style="vertical-align: 20px; background-color:#00E1DC;">
up </font>
</h1>
</td>
</tr>
</table>
<br/><br/><br/><br/><br/>
<font size="5" face="ms sans serif">
<u>functions list :</u>
</font>
</td>
</tr>
<tr>
<td align="left">
<br/><br/>
<table cellpadding="3" width="100%" style="border: dashed 1px #0088cc">
<tr>
<td border="0" >
<table border="0" width="100%" cellpadding="10" bgcolor="#0088cc">
<tr>
<xsl:for-each select="/Functions/Command">
<xsl:sort select="@category"/>
<xsl:sort select="@name"/>
<xsl:if test="(position()=$posDebCol1) or (position()=$posDebCol2) or (position()=$posDebCol3) or (position()=$posDebCol4) or (position()=$posDebCol5)">
<xsl:variable name="posDeb" select="position()"/>
<td valign="top">
<xsl:for-each select="/Functions/Command">
<xsl:sort select="@category"/>
<xsl:sort select="@name"/>
<xsl:variable name="pos" select="position()"/>
<xsl:variable name="cat" select="@category"/>
<nobr>
<xsl:variable name="col1" select="number($posDeb=$posDebCol1)"/>
<xsl:variable name="col2" select="number($posDeb=$posDebCol2)"/>
<xsl:variable name="col3" select="number($posDeb=$posDebCol3)"/>
<xsl:variable name="col4" select="number($posDeb=$posDebCol4)"/>
<xsl:variable name="col5" select="number($posDeb=$posDebCol5)"/>
<xsl:variable name="nbFuncInCol" select="$col1*$nbFuncInCol1 + $col2*$nbFuncInCol2 + $col3*$nbFuncInCol3 + $col4*$nbFuncInCol4 + $col5*$nbFuncInCol5"/>
<xsl:if test="(position()>=($posDeb)) and ($posDeb+$nbFuncInCol>position())">
<xsl:if test="position()=1">
<font color="black"><b><u><xsl:value-of select="$cat"/> :</u></b></font><br/><br/>
</xsl:if>
<xsl:for-each select="/Functions/Command">
<xsl:sort select="@category"/>
<xsl:sort select="@name"/>
<xsl:if test="(position()=($pos)-1) and ($cat!=@category)">
<br/><br/><font color="black"><b><u><xsl:value-of select="$cat"/> :</u></b></font><br/><br/>
</xsl:if>
</xsl:for-each>
<xsl:if test="count(param)=0">
<a class="func" href="Script_Help.xml#{@name}"
title="Return : {translate(return[1]/@type,$maj,$min)} {translate(return[2]/@type,$maj,$min)} {translate(return[3]/@type,$maj,$min)} | Parameters : -">
<xsl:value-of select="@name"/></a><br/>
</xsl:if>
<xsl:if test="count(param)!=0">
<xsl:variable name="param" select="concat( param[1]/@name, ' ',param[2]/@name, ' ',param[3]/@name, ' ',param[4]/@name, ' ',param[5]/@name, ' ',param[6]/@name, ' ',param[7]/@name, ' ',param[8]/@name, ' ',param[9]/@name)"/>
<a class="func" href="Script_Help.xml#{@name}"
title="Return : {translate(return[1]/@type,$maj,$min)} {translate(return[2]/@type,$maj,$min)} {translate(return[3]/@type,$maj,$min)} | Parameters : {$param}">
<xsl:value-of select="@name"/></a><br/>
</xsl:if>
</xsl:if>
</nobr>
</xsl:for-each>
</td>
</xsl:if>
</xsl:for-each>
</tr>
</table>
</td>
</tr>
</table>
<br/><br/><br/><br/><br/>
<font size="5" face="ms sans serif">
<u>functions details :</u>
</font>
<br/>
<table width="100%" border="0" cellpadding="0" border-style="solid">
<xsl:for-each select="Functions/Command">
<xsl:sort select="@name"/>
<tr>
<td>
<br/><br/><hr noshade="noshade" style="width:100%; size: 1px; border: 1px solid #0088ee;"/>
<a name="{@name}"></a>
<table width="100%" cellpadding="0" border="0">
<tr>
<td>
<table width="100%" cellpadding="0" border="0">
<tr>
<td>
<strong><font color="#ff00aa"><xsl:value-of select="@name"/></font></strong> : Category "<xsl:value-of select="@category"/>".
</td>
<td align="right">
<font size="4" style="font-weight: bold; color: red;">
you
<a class="up" href="#" title="Back to the functions list">
<font size="3">up</font>
</a>
</font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<br/>
<table width="100%" style="border: dashed 1px #ff00aa">
<tr>
<td>
<u>Parameters :</u><xsl:text disable-output-escaping="yes"> </xsl:text>
<xsl:choose>
<xsl:when test="count(param)=0">
-
</xsl:when>
<xsl:when test="count(param)!=0">
<xsl:for-each select="param">
<xsl:choose>
<xsl:when test="@opt='true'">
<xsl:value-of select="@name"/> (<i><xsl:value-of select="translate(@type, $maj, $min)"/></i>)</xsl:when>
<xsl:when test="@opt='false'">
<b><xsl:value-of select="@name"/> (<i><xsl:value-of select="translate(@type, $maj, $min)"/>)</i></b></xsl:when>
</xsl:choose>
<xsl:if test="position()!=last()"> , </xsl:if>
</xsl:for-each>
</xsl:when>
</xsl:choose>
<br/><br/>
<u>Return :</u><xsl:text disable-output-escaping="yes"> </xsl:text>
<xsl:for-each select="return">
<i><xsl:value-of select="translate(@type, $maj, $min)"/></i>
<xsl:if test="position()!=last()"> , </xsl:if>
</xsl:for-each>
<br/><br/>
<table border="0">
<tr>
<td valign="top">
<nobr><u>Description :</u><xsl:text disable-output-escaping="yes"> </xsl:text></nobr>
</td>
<td valign="top">
<xsl:for-each select="help/br"><xsl:value-of select="."/><br/></xsl:for-each>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</xsl:for-each>
</table>
</td>
</tr>
</table>
</body>
</html>
</xsl:template></xsl:stylesheet>