Changes for page Counter
Last modified by Outhman Moustaghfir on 2024/02/26 17:12
edited by Outhman Moustaghfir
on 2024/02/20 15:27
on 2024/02/20 15:27
edited by Outhman Moustaghfir
on 2024/02/20 15:27
on 2024/02/20 15:27
Change comment:
Uploaded new attachment "Capture d'écran 2024-02-20 152646.png", version {1}
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,0 @@ 1 -Counter - Parent
-
... ... @@ -1,1 +1,0 @@ 1 -iXPath V3.Funcitons.Env.WebHome - Content
-
... ... @@ -1,36 +1,0 @@ 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.