home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 February / CMCD0205.ISO / Software / Freeware / Programare / Sharp / SharpDevelop_1.0.3.1761_Setup.exe / memberoverload.xslt < prev    next >
Extensible Markup Language  |  2004-07-05  |  3KB  |  88 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.  
  6. <xsl:param name='id'/>
  7. <xsl:template match="/">
  8.       <xsl:apply-templates select="DOC.NET/assembly/module/namespace/*/*[@id=$id]"/>
  9. </xsl:template>
  10.  
  11. <xsl:template match="method | constructor | property">
  12.     <xsl:variable name="type">
  13.         <xsl:choose>
  14.             <xsl:when test="local-name(..)='interface'">Interface</xsl:when>
  15.             <xsl:otherwise>Class</xsl:otherwise>
  16.         </xsl:choose>
  17.     </xsl:variable>
  18.     <xsl:variable name="childType">
  19.         <xsl:choose>
  20.             <xsl:when test="local-name()='method'">Method</xsl:when>
  21.             <xsl:when test="local-name()='constructor'">Constructor</xsl:when>
  22.             <xsl:otherwise>Property</xsl:otherwise>
  23.         </xsl:choose>
  24.     </xsl:variable>
  25.     <xsl:variable name="memberName" select="@name"/>
  26.  
  27. <html dir="LTR">
  28. <head>
  29. <title>
  30.     <xsl:choose>
  31.         <xsl:when test="local-name()!='constructor'"><xsl:value-of select="@name"/></xsl:when>
  32.         <xsl:otherwise><xsl:value-of select="../@name"/></xsl:otherwise>
  33.     </xsl:choose> <xsl:value-of select="childType"/>
  34. </title>
  35. </head>
  36.  
  37. <link rel="stylesheet" type="text/css" href="MsdnHelp.css"/>
  38.  
  39. <body>
  40. <h1><xsl:value-of select="../@name"/><xsl:if test="local-name()!='constructor'">.<xsl:value-of select="@name"/></xsl:if> <xsl:value-of select="childType"/></h1>
  41.  
  42. <xsl:call-template name="summary-section"/>
  43.  
  44. <h3>Overload List</h3>
  45. <xsl:for-each select="parent::node()/*[@name=$memberName]">
  46.     <p class="i1"><xsl:apply-templates select="summary/node()" mode="slashdoc"/></p>
  47.     <p class="i2">
  48.         <a>
  49.             <xsl:attribute name="href">
  50.                 <xsl:choose>
  51.                     <xsl:when test="local-name()='constructor'">
  52.                         <xsl:call-template name="get-filename-for-current-constructor"/>
  53.                     </xsl:when>
  54.                     <xsl:when test="local-name()='method'">
  55.                         <xsl:call-template name="get-filename-for-method"/>
  56.                     </xsl:when>
  57.                     <xsl:otherwise>
  58.                         <xsl:call-template name="get-filename-for-current-property"/>
  59.                     </xsl:otherwise>
  60.                 </xsl:choose>
  61.             </xsl:attribute>
  62.             <xsl:apply-templates select="self::node()" mode="syntax"/>
  63.         </a>
  64.     </p>
  65. </xsl:for-each>
  66.  
  67. <xsl:call-template name="seealso-section">
  68.     <xsl:with-param name="page">memberoverload</xsl:with-param>
  69. </xsl:call-template>
  70.  
  71. </body>
  72. </html>
  73.  
  74. </xsl:template>
  75.  
  76. <xsl:template match="constructor | method" mode="syntax">
  77.     <xsl:call-template name="member-syntax2"/>
  78. </xsl:template>
  79.  
  80. <xsl:template match="property" mode="syntax">
  81.     <xsl:call-template name="property-syntax">
  82.         <xsl:with-param name="indent" select="false()"/>
  83.         <xsl:with-param name="display-names" select="false()"/>
  84.     </xsl:call-template>
  85. </xsl:template>
  86.  
  87. </xsl:stylesheet>
  88.