Skip to content

Commit

Permalink
add named template for 'arguments' to detect arguments and add wrappe…
Browse files Browse the repository at this point in the history
…r 'ul' tag
  • Loading branch information
bboyle committed Jul 9, 2011
1 parent 0866f34 commit c806e9f
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions entries2html.xsl
Expand Up @@ -128,12 +128,7 @@
<span class="type"><xsl:value-of select="$method-type" /></span>
</dt>
<dd><xsl:copy-of select="desc/node()" /></dd>
<xsl:if test="argument">
<xsl:text> </xsl:text>
<ul>
<xsl:apply-templates select="argument"/>
</ul>
</xsl:if>
<xsl:call-template name="arguments"/>
</xsl:for-each>
</dl>
</xsl:if>
Expand All @@ -154,12 +149,7 @@
<span class="type"><xsl:value-of select="$event-type" /></span>
</dt>
<dd><xsl:copy-of select="desc/node()" /></dd>
<xsl:if test="argument">
<xsl:text> </xsl:text>
<ul>
<xsl:apply-templates select="argument"/>
</ul>
</xsl:if>
<xsl:call-template name="arguments"/>
</xsl:for-each>
</dl>
</xsl:if>
Expand Down Expand Up @@ -262,6 +252,14 @@


<!-- arguments -->
<xsl:template name="arguments">
<xsl:if test="argument">
<xsl:text> </xsl:text>
<ul>
<xsl:apply-templates select="argument"/>
</ul>
</xsl:if>
</xsl:template>
<!-- TODO consider optional arguments -->
<xsl:template match="argument">
<li>
Expand Down

0 comments on commit c806e9f

Please sign in to comment.