i trying create loop increments variable, use variable inside of xsl code. here code using increment counter: <?xdoxslt:set_variable($_xdoctx, ‘counter’, 0)?> <?for-each-group:$g2;./status?> <?sort:current-group()/status;'ascending';data-type='text'?> <?xdoxslt:set_variable($_xdoctx, ‘counter’, xdoxslt:get_variable($_xdoctx, ‘counter’) + count(xdoxslt:distinct_values(current-group()/action)))?> <?end for-each-group?> the following code output number need: <xsl:value-of select="xdoxslt:get_variable($_xdoctx, ‘counter’)"/> so know loop working , variable has correct number. however, need use variable in following code: <xsl:attribute name="number-rows-spanned" xdofo:ctx="block"> <xsl:value-of select="xdoxslt:get_variable($_xdoctx, ‘counter’)"/> </xsl:attribute> when use code following error: java.lang.numberformatexception: input string: "" i...
Comments
Post a Comment