Hi Guys, This is a newbie question.
I have an XSL which reads in some of value from xml using Document() function and some some <XSL:PARM>. I'm using <fo:block> to display the content in a block. Simply what I want to do is create a counter that will increment for my each <FO:BLOCK>i.e. <fo:block> <display counter value> <xsl:valueOf select="$param1"/> </fo:block> <fo:block> <display counter value> <xsl:valueOf select="document(somexml.xml)/note1"/> </fo:block> etc. Please help? - I've tried the below code but it doesn't work: <xsl:parm name="counter" select="1"/> <some template> <fo:block> <xsl:with-parm name="counter" select="$counter + 1"/> <xsl:valueOf select="$counter"/> - this return 1 instead of 2 </some template> -- View this message in context: http://www.nabble.com/Incrementing-a-number-using-XSL-FOP-tf4075497.html#a11582915 Sent from the FOP - Dev mailing list archive at Nabble.com.
