cancel
Showing results for 
Search instead for 
Did you mean: 

increment counter in XSLT mapping

Former Member
0 Kudos

Hi Experts,

I am creating xslt mapping by using mapforce tool. I am trying to get increment counter variable in xslt mapping. can you please tell me what would be the code for getting sequence number.

Thanks for your help.

Thanks,

Hari

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Hari,

Please refer this and do some changes for ur requirement accordingly.

http://www.stylusstudio.com/xsllist/200110/post30330.html

http://www.stylusstudio.com/xsllist/200110/post50330.html

I think if u use "position" ur requirement will be solved.

Regards,

Radhika.

Former Member
0 Kudos

Hi,

Thanks for your response.

if I use <xsl:value-of select="position()"/>, it's working fine with first recordset, whenever the control goes to second recordset, again its staring from 1 rather than continuation from the last number in the first recordset.

my target message type:

recordset 0 ---unbounded

str1 0 --- unbounded

counter 0 -1

field1 0-1

str2 0---unbounded

counter 0-1

field2 0-1

Your inpurts are higly appreciated.

Thanks,

Hari

former_member183906
Active Contributor
0 Kudos

yes, there is a global variable concept in XI which u can use for your Sequence Number concept.

If you are on SP14 and above, just take a lookat this blog and the GLOBAL Variables Section

check this thread

Former Member
0 Kudos

I am talking about global variable in xslt mapping.

Thanks,

Haric

Former Member
0 Kudos

Hi Experts,

Any inputs from your end.

Your help greatly appreciated.

Thanks,

Hari