Unanswered increment a count

  • Friday, November 16, 2012 2:36 AM
     
     

    How do you increment a count in a for each in xsl? Position counts records not met by when condition.
    for each
       when...
       increment count to apply logic

All Replies

  • Friday, November 16, 2012 5:39 AM
     
     
    use variable to store value then increment it.

    Leonid Ganeline [BizTalk MVP] BizTalkien: Advanced Questions

  • Friday, November 16, 2012 9:56 AM
     
     

    How do you increment a count in a for each in xsl? Position counts records not met by when condition.
    for each
       when...
       increment count to apply logic

    Well XSLT is not a procedural language where you can increment variables, it is a declarative language. Can you tell us more details as to what you want to do with the count? Then we can try to suggest an XSLT approach. So consider to show the relevant input XML you have and the corresponding output you want, then we can suggest an XSLT way of achieving that.

    MVP Data Platform Development My blog

  • Friday, November 16, 2012 12:16 PM
     
     
    If the count equals 1 do this. If the count equals 2 do this...