Hide last authors
Outhman Moustaghfir 2.1 1 = Introduction =
2
3 count how many time a variable is used in a scenario
4
5 = Parameters =
6
7 * **"Counter Name":** Mandatory.
8 * **"Increment Number":** Optional.
9 * **"Max Number Not to Exceed":** Optional.
10 * **"Initialization Number if Max is Reached":** Optional.
11
12 = Uses =
13
14
15 {{code language="XML"}}
16
17 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:ixf="http://www.ixPath.com/Function" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ix="localFunction" xmlns:fn="http://www.w3.org/2005/xpath-functions" >
18 <xsl:output method="xml" indent="yes"/>
19 <!-- Beginning of the Translation -->
20 <xsl:template match="/">
21 <ixDOC>
22 <TEST><xsl:value-of select="ixf:Counter('counterName')"></xsl:value-of></TEST>
23 <TEST><xsl:value-of select="ixf:Counter('counterName')"></xsl:value-of></TEST>
24 <TEST><xsl:value-of select="ixf:Counter('counterName')"></xsl:value-of></TEST>
25 <TEST><xsl:value-of select="ixf:Counter('counterName')"></xsl:value-of></TEST>
26
27 </ixDOC>
28 </xsl:template>
29 </xsl:stylesheet>
30 {{/code}}
31
32 for this example the output is :
33
34 [[image:Capture d'écran 2024-02-20 152646.png]]
35
36 Return: The function returns the incremented counter.
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian