<
From version < 3.1 >
edited by Outhman Moustaghfir
on 2024/02/01 17:23
To version < 4.1 >
edited by Outhman Moustaghfir
on 2024/02/01 17:24
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -27,7 +27,7 @@
27 27  * If projection is provided, value initializes the projection.
28 28  * If value is not provided, the specified projection is deleted.
29 29  )))
30 -1. **defaultValue (Optional):** The default value used in case of XPath expression evaluation failure. Defaults to -1 if not provided.
30 +1. **defaultValue (Optional):** The default value used in case of XPath expression evaluation failure. Defaults to 0 if not provided.
31 31  
32 32  === Usage Examples ===
33 33  
... ... @@ -46,7 +46,7 @@
46 46  Assuming you want to initialize a projection named 'YourProjection' in the metric 'YourMetric' with a fixed value of 42:
47 47  
48 48  {{code language="XML"}}
49 -<xsl:value-of select="ixf:InitMetrics('YourMetric', 'YourProjection', '42')"/>
49 +<xsl:value-of select="ixf:InitMetrics('YourMetric', 'YourProjection', '42')"></xsl:value-of>
50 50  {{/code}}
51 51  
52 52  {{{
... ... @@ -59,7 +59,7 @@
59 59  Assuming you want to initialize a projection named 'YourProjection' in the metric 'YourMetric' with an XPath expression 'Order[Company = 'HM']' and a default value of -1:
60 60  
61 61  {{code language="XML"}}
62 -<xsl:value-of select="ixf:InitMetrics('YourMetric', 'YourProjection', 'Order[Company = ''HM'']', -1)"/>
62 +<xsl:value-of select="ixf:InitMetrics('YourMetric', 'YourProjection', 'Order[Company = ''HM'']', -1)"></xsl:value-of>
63 63  {{/code}}
64 64  
65 65  
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian