home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Software / Freeware / Programare / Sharp / SharpDevelop_1.0.3.1761_Setup.exe / namespace.xslt < prev    next >
Extensible Markup Language  |  2004-07-05  |  4KB  |  155 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-16" indent="yes"/>
  4. <xsl:include href="common.xslt"/>
  5.  
  6. <xsl:param name='namespace'/>
  7.  
  8. <xsl:template match="/">
  9.     <xsl:apply-templates select="DOC.NET/assembly/module/namespace[@name=$namespace]"/>
  10. </xsl:template>
  11.  
  12. <xsl:template match="namespace">
  13.  
  14. <html dir="LTR">
  15. <head>
  16. <title><xsl:value-of select="@name"/></title>
  17. </head>
  18.  
  19. <link rel="stylesheet" type="text/css" href="MsdnHelp.css"/>
  20.  
  21. <body>
  22. <h1><xsl:value-of select="@name"/> Namespace</h1>
  23.  
  24. <p class="i1">
  25.     <a>
  26.         <xsl:attribute name="href">
  27.             <xsl:call-template name="get-filename-for-current-namespace-hierarchy"/>
  28.         </xsl:attribute>
  29.         <xsl:text>Hierarchy diagram</xsl:text>
  30.     </a>
  31. </p>
  32.  
  33. <xsl:call-template name="summary-section"/>
  34.  
  35. <xsl:if test="class">
  36. <h3>Classes</h3>
  37. <table cellspacing="0">
  38.     <tr valign="top"><th width="50%">Class</th><th width="50%">Description</th></tr>
  39.     <xsl:for-each select="class">
  40.         <xsl:sort select="@name"/>
  41.         <tr valign="top">
  42.             <td width="50%">
  43.                 <a>
  44.                     <xsl:attribute name="href">
  45.                         <xsl:call-template name="get-filename-for-type">
  46.                             <xsl:with-param name="id" select="@id"/>
  47.                         </xsl:call-template>
  48.                     </xsl:attribute>
  49.                     <xsl:value-of select="@name"/>
  50.                 </a>
  51.             </td>
  52.             <td width="50%"><xsl:apply-templates select="summary/node()" mode="slashdoc"/></td>
  53.         </tr>
  54.     </xsl:for-each>
  55. </table>
  56. </xsl:if>
  57.  
  58. <xsl:if test="interface">
  59. <h3>Interfaces</h3>
  60. <table cellspacing="0">
  61.     <tr valign="top"><th width="50%">Interface</th>    <th width="50%">Description</th></tr>
  62.     <xsl:for-each select="interface">
  63.         <xsl:sort select="@name"/>
  64.         <tr valign="top">
  65.             <td width="50%">
  66.                 <a>
  67.                     <xsl:attribute name="href">
  68.                         <xsl:call-template name="get-filename-for-type">
  69.                             <xsl:with-param name="id" select="@id"/>
  70.                         </xsl:call-template>
  71.                     </xsl:attribute>
  72.                     <xsl:value-of select="@name"/>
  73.                 </a>
  74.             </td>
  75.             <td width="50%"><xsl:apply-templates select="summary/node()" mode="slashdoc"/></td>
  76.         </tr>
  77.     </xsl:for-each>
  78. </table>
  79. </xsl:if>
  80.  
  81. <xsl:if test="structure">
  82. <h3>Structures</h3>
  83. <table cellspacing="0">
  84.     <tr valign="top"><th width="50%">Structure</th><th width="50%">Description</th></tr>
  85.     <xsl:for-each select="structure">
  86.         <xsl:sort select="@name"/>
  87.         <tr valign="top">
  88.             <td width="50%">
  89.                 <a>
  90.                     <xsl:attribute name="href">
  91.                         <xsl:call-template name="get-filename-for-type">
  92.                             <xsl:with-param name="id" select="@id"/>
  93.                         </xsl:call-template>
  94.                     </xsl:attribute>
  95.                     <xsl:value-of select="@name"/>
  96.                 </a>
  97.             </td>
  98.             <td width="50%"><xsl:apply-templates select="summary/node()" mode="slashdoc"/></td>
  99.         </tr>
  100.     </xsl:for-each>
  101. </table>
  102. </xsl:if>
  103.  
  104. <xsl:if test="delegate">
  105. <h3>Delegates</h3>
  106. <table cellspacing="0">
  107.     <tr valign="top"><th width="50%">Delegate</th><th width="50%">Description</th></tr>
  108.     <xsl:for-each select="delegate">
  109.         <xsl:sort select="@name"/>
  110.         <tr valign="top">
  111.             <td width="50%">
  112.                 <a>
  113.                     <xsl:attribute name="href">
  114.                         <xsl:call-template name="get-filename-for-type">
  115.                             <xsl:with-param name="id" select="@id"/>
  116.                         </xsl:call-template>
  117.                     </xsl:attribute>
  118.                     <xsl:value-of select="@name"/>
  119.                 </a>
  120.             </td>
  121.             <td width="50%"><xsl:apply-templates select="summary/node()" mode="slashdoc"/></td>
  122.         </tr>
  123.     </xsl:for-each>
  124. </table>
  125. </xsl:if>
  126.  
  127. <xsl:if test="enumeration">
  128. <h3>Enumerations</h3>
  129. <table cellspacing="0">
  130.     <tr valign="top"><th width="50%">Enumeration</th><th width="50%">Description</th></tr>
  131.     <xsl:for-each select="enumeration">
  132.         <xsl:sort select="@name"/>
  133.         <tr valign="top">
  134.             <td width="50%">
  135.                 <a>
  136.                     <xsl:attribute name="href">
  137.                         <xsl:call-template name="get-filename-for-type">
  138.                             <xsl:with-param name="id" select="@id"/>
  139.                         </xsl:call-template>
  140.                     </xsl:attribute>
  141.                     <xsl:value-of select="@name"/>
  142.                 </a>
  143.             </td>
  144.             <td width="50%"><xsl:apply-templates select="summary/node()" mode="slashdoc"/></td>
  145.         </tr>
  146.     </xsl:for-each>
  147. </table>
  148. </xsl:if>
  149.  
  150. </body>
  151. </html>
  152. </xsl:template>
  153.  
  154. </xsl:stylesheet>
  155.