[Kst] extragear/graphics/kst/kst/extensions/js

George Staikos staikos at kde.org
Mon May 23 23:26:31 CEST 2005


SVN commit 417541 by staikos:

add exception support


 M  +13 -0     jsdocs.xsl  


--- trunk/extragear/graphics/kst/kst/extensions/js/jsdocs.xsl #417540:417541
@@ -68,6 +68,7 @@
       <ul>
       <xsl:call-template name="displayArgumentsFull"/>
       <p><xsl:value-of select="description" disable-output-escaping="yes"/></p>
+      <xsl:call-template name="displayExceptions"/>
       </ul>
 
       <br/><br/>
@@ -91,6 +92,7 @@
       <ul>
       <xsl:call-template name="displayArgumentsFull"/>
       <p><xsl:value-of select="description" disable-output-escaping="yes"/></p>
+      <xsl:call-template name="displayExceptions"/>
       </ul>
 
       <br/><br/>
@@ -182,4 +184,15 @@
     </xsl:for-each>
   </xsl:template>
 
+  <xsl:template name="displayExceptions">
+    <xsl:for-each select="exception">
+      Throws: <b><xsl:value-of select="@name"/></b>
+      <xsl:if test="description">
+        <xsl:text> - </xsl:text>
+        <xsl:value-of select="description"/>
+      </xsl:if>
+      <br/>
+    </xsl:for-each>
+  </xsl:template>
+
 </xsl:stylesheet>


More information about the Kst mailing list