home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Software / Freeware / Programare / Sharp / SharpDevelop_1.0.3.1761_Setup.exe / allmembers.xslt < prev    next >
Extensible Markup Language  |  2004-07-05  |  8KB  |  232 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
  4. <xsl:include href="common.xslt"/>
  5. <xsl:include href="memberscommon.xslt"/>
  6.  
  7. <xsl:param name='id'/>
  8.  
  9. <xsl:template name="type-members">
  10.     <xsl:param name="type"/>
  11.  
  12. <html dir="LTR">
  13. <head>
  14.     <title><xsl:value-of select="@name"/> Members</title>
  15. </head>
  16.  
  17. <link rel="stylesheet" type="text/css" href="MsdnHelp.css"/>
  18.  
  19. <body>
  20. <h1><xsl:value-of select="@name"/> Members</h1>
  21.  
  22. <!-- public static members -->
  23. <xsl:call-template name="public-static-section">
  24.     <xsl:with-param name="member" select="'field'"/>
  25. </xsl:call-template>                                                
  26.  
  27. <xsl:call-template name="public-static-section">
  28.     <xsl:with-param name="member" select="'property'"/>
  29. </xsl:call-template>                                                
  30.  
  31. <xsl:call-template name="public-static-section">
  32.     <xsl:with-param name="member" select="'method'"/>
  33. </xsl:call-template>                                                
  34.  
  35. <!-- protected static members -->
  36. <xsl:call-template name="protected-static-section">
  37.     <xsl:with-param name="member" select="'field'"/>
  38. </xsl:call-template>                                                
  39.  
  40. <xsl:call-template name="protected-static-section">
  41.     <xsl:with-param name="member" select="'property'"/>
  42. </xsl:call-template>                                                
  43.  
  44. <xsl:call-template name="protected-static-section">
  45.     <xsl:with-param name="member" select="'method'"/>
  46. </xsl:call-template>                                                
  47.  
  48. <!-- protected internal static members -->
  49. <xsl:call-template name="protected-internal-static-section">
  50.     <xsl:with-param name="member" select="'field'"/>
  51. </xsl:call-template>                                                
  52.  
  53. <xsl:call-template name="protected-internal-static-section">
  54.     <xsl:with-param name="member" select="'property'"/>
  55. </xsl:call-template>                                                
  56.  
  57. <xsl:call-template name="protected-internal-static-section">
  58.     <xsl:with-param name="member" select="'method'"/>
  59. </xsl:call-template>                                                
  60.  
  61. <!-- internal static members -->
  62. <xsl:call-template name="internal-static-section">
  63.     <xsl:with-param name="member" select="'field'"/>
  64. </xsl:call-template>                                                
  65.  
  66. <xsl:call-template name="internal-static-section">
  67.     <xsl:with-param name="member" select="'property'"/>
  68. </xsl:call-template>                                                
  69.  
  70. <xsl:call-template name="internal-static-section">
  71.     <xsl:with-param name="member" select="'method'"/>
  72. </xsl:call-template>                                                
  73.  
  74. <!-- private static members -->
  75. <xsl:call-template name="private-static-section">
  76.     <xsl:with-param name="member" select="'field'"/>
  77. </xsl:call-template>                                                
  78.  
  79. <xsl:call-template name="private-static-section">
  80.     <xsl:with-param name="member" select="'property'"/>
  81. </xsl:call-template>                                                
  82.  
  83. <xsl:call-template name="private-static-section">
  84.     <xsl:with-param name="member" select="'method'"/>
  85. </xsl:call-template>                                                
  86.  
  87. <!-- public instance members -->
  88. <xsl:if test="constructor[@access='Public']">
  89. <h3>Public Instance Constructors</h3>
  90. <table cellspacing="0">
  91.       <xsl:apply-templates select="constructor[@access='Public']"/>
  92. </table>
  93. </xsl:if>
  94.  
  95. <xsl:call-template name="public-instance-section">
  96.     <xsl:with-param name="member" select="'field'"/>
  97. </xsl:call-template>                                                
  98.  
  99. <xsl:call-template name="public-instance-section">
  100.     <xsl:with-param name="member" select="'property'"/>
  101. </xsl:call-template>                                                
  102.  
  103. <xsl:call-template name="public-instance-section">
  104.     <xsl:with-param name="member" select="'method'"/>
  105. </xsl:call-template>                                                
  106.  
  107. <!-- protected instance members -->
  108. <xsl:if test="constructor[@access='Family']">
  109. <h3>Protected Instance Constructors</h3>
  110. <table cellspacing="0">
  111.       <xsl:apply-templates select="constructor[@access='Family']"/>
  112. </table>
  113. </xsl:if>
  114.  
  115. <xsl:call-template name="protected-instance-section">
  116.     <xsl:with-param name="member" select="'field'"/>
  117. </xsl:call-template>                                                
  118.  
  119. <xsl:call-template name="protected-instance-section">
  120.     <xsl:with-param name="member" select="'property'"/>
  121. </xsl:call-template>                                                
  122.  
  123. <xsl:call-template name="protected-instance-section">
  124.     <xsl:with-param name="member" select="'method'"/>
  125. </xsl:call-template>                                                
  126.  
  127. <!-- protected internal instance members -->
  128. <xsl:if test="constructor[@access='FamilyOrAssembly']">
  129. <h3>Protected Internal Instance Constructors</h3>
  130. <table cellspacing="0">
  131.       <xsl:apply-templates select="constructor[@access='FamilyOrAssembly']"/>
  132. </table>
  133. </xsl:if>
  134.  
  135. <xsl:call-template name="protected-internal-instance-section">
  136.     <xsl:with-param name="member" select="'field'"/>
  137. </xsl:call-template>                                                
  138.  
  139. <xsl:call-template name="protected-internal-instance-section">
  140.     <xsl:with-param name="member" select="'property'"/>
  141. </xsl:call-template>                                                
  142.  
  143. <xsl:call-template name="protected-internal-instance-section">
  144.     <xsl:with-param name="member" select="'method'"/>
  145. </xsl:call-template>                                                
  146.  
  147. <!-- internal instance members -->
  148. <xsl:if test="constructor[@access='Assembly']">
  149. <h3>Internal Instance Constructors</h3>
  150. <table cellspacing="0">
  151.       <xsl:apply-templates select="constructor[@access='Assembly']"/>
  152. </table>
  153. </xsl:if>
  154.  
  155. <xsl:call-template name="internal-instance-section">
  156.     <xsl:with-param name="member" select="'field'"/>
  157. </xsl:call-template>                                                
  158.  
  159. <xsl:call-template name="internal-instance-section">
  160.     <xsl:with-param name="member" select="'property'"/>
  161. </xsl:call-template>                                                
  162.  
  163. <xsl:call-template name="internal-instance-section">
  164.     <xsl:with-param name="member" select="'method'"/>
  165. </xsl:call-template>                                                
  166.  
  167. <!-- private instance members -->
  168. <xsl:if test="constructor[@access='Private']">
  169. <h3>Private Instance Constructors</h3>
  170. <table cellspacing="0">
  171.       <xsl:apply-templates select="constructor[@access='Private']"/>
  172. </table>
  173. </xsl:if>
  174.  
  175. <xsl:call-template name="private-instance-section">
  176.     <xsl:with-param name="member" select="'field'"/>
  177. </xsl:call-template>                                                
  178.  
  179. <xsl:call-template name="private-instance-section">
  180.     <xsl:with-param name="member" select="'property'"/>
  181. </xsl:call-template>                                                
  182.  
  183. <xsl:call-template name="private-instance-section">
  184.     <xsl:with-param name="member" select="'method'"/>
  185. </xsl:call-template>                                                
  186.  
  187. <xsl:call-template name="seealso-section">
  188.     <xsl:with-param name="page">members</xsl:with-param>
  189. </xsl:call-template>
  190.  
  191. </body>
  192. </html>
  193.  
  194. </xsl:template>
  195.  
  196. <xsl:template match="constructor">
  197.     <xsl:variable name="access" select="@access"/>
  198.     <xsl:if test="not(preceding-sibling::constructor[@access=$access])">
  199.         <tr VALIGN="top">
  200.             <xsl:choose>
  201.                 <xsl:when test="count(../constructor) > 1">
  202.                     <td width="50%">
  203.                         <a>
  204.                             <xsl:attribute name="href">
  205.                                 <xsl:call-template name="get-filename-for-current-constructor-overloads"/>
  206.                             </xsl:attribute>
  207.                             <xsl:value-of select="../@name"/>
  208.                         </a>
  209.                     </td>
  210.                     <td width="50%">Overloaded. Initialize a new instance of the <xsl:value-of select="../@name"/> class.</td>
  211.                 </xsl:when>
  212.                 <xsl:otherwise>
  213.                     <td width="50%">
  214.                         <a>
  215.                             <xsl:attribute name="href">
  216.                                 <xsl:call-template name="get-filename-for-current-constructor"/>
  217.                             </xsl:attribute>
  218.                             <xsl:value-of select="../@name"/>
  219.                             <xsl:text> Constructor</xsl:text>
  220.                         </a>
  221.                     </td>
  222.                     <td width="50%">
  223.                         <xsl:apply-templates select="summary/node()" mode="slashdoc"/>
  224.                     </td>
  225.                 </xsl:otherwise>
  226.             </xsl:choose>
  227.         </tr>
  228.     </xsl:if>
  229. </xsl:template>
  230.  
  231. </xsl:stylesheet>
  232.