--- a/sheets/class.xsl Tue May 07 00:15:35 2013 -0500
+++ b/sheets/class.xsl Sat Jun 01 03:21:43 2013 -0500
@@ -5,6 +5,52 @@
<xsl:variable name="wrap-args-at" select="2"/>
+ <!-- method/signal output --> + <xsl:template name="method"> + <xsl:call-template name="scope"/> + <!-- start the method --> + <xsl:value-of select="@name"/> + <!-- start the arguments --> + <!-- run through the arguments --> + <xsl:for-each select="argument"> + <xsl:value-of select="@name"/> + <xsl:text> : </xsl:text> + <xsl:value-of select="@type"/> + <xsl:if test="position() != last()"> + <xsl:when test="position() mod $wrap-args-at = 0"> + <xsl:text>\l </xsl:text> + <!-- finish the arguments --> + <!-- if we have a type output it --> + <xsl:text> : </xsl:text> + <xsl:value-of select="@type"/> + <!-- left justify the line --> + <xsl:text>\l</xsl:text> <!-- the actual matching -->
<xsl:template match="class">
<!-- start the diagram -->
@@ -48,49 +94,15 @@
<!-- run through the methods -->
<xsl:for-each select="methods/method">
- <xsl:call-template name="scope"/>
- <!-- start the method -->
- <xsl:value-of select="@name"/>
- <!-- start the arguments -->
- <!-- run through the arguments -->
- <xsl:for-each select="argument">
- <xsl:value-of select="@name"/>
- <xsl:text> : </xsl:text>
- <xsl:value-of select="@type"/>
+ <xsl:call-template name="method"/> - <xsl:if test="position() != last()">
- <xsl:when test="position() mod $wrap-args-at = 0">
- <xsl:text>\l </xsl:text>
+ <!-- run through the signals --> + <xsl:for-each select="signals/signal"> + <xsl:call-template name="method"/> - <!-- finish the arguments -->
- <!-- if we have a type output it -->
- <xsl:text> : </xsl:text>
- <xsl:value-of select="@type"/>
- <!-- left justify the line -->
- <xsl:text>\l</xsl:text>
<!-- finish off the class node -->
<xsl:text>}"];</xsl:text>