Skip to content

Commit 2261f05

Browse files
Updating example template
If there's more than one example appends a <h3> tag with the number of the example, i.e: "Example Nº 1"
1 parent 1abaf4b commit 2261f05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tasks/jquery-xml/entries2html-base.xsl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,11 @@
669669
<xsl:value-of select="position() - 1"/>
670670
</xsl:attribute>
671671

672+
<xsl:if test="$number-examples &gt; 1">
673+
<h3>
674+
Example Nº <xsl:value-of select="position()"/>
675+
</h3>
676+
</xsl:if>
672677
<p>
673678
<xsl:apply-templates select="desc"/>
674679
</p>

0 commit comments

Comments
 (0)