Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stig Kulvedrøsten 48 posts 69 karma points
    Mar 17, 2011 @ 09:20
    Stig Kulvedrøsten
    0

    Global changable variable

    I need to have a globale changeable variable in my xslt so that I can change the value inside a loop depending on some query. How can I accomplish this? My understanding is that the variable type in xslt is misleading... :p

     

    Stig

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 17, 2011 @ 09:56
    Jan Skovgaard
    0

    Hi Stig

    I guess you could store it in a XSLT file called "Global.xslt" for instance and then import the XSLT file into those where it's needed?

    /Jan

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Mar 17, 2011 @ 20:47
    Chriztian Steinmeier
    1

    Hi Stig,

    With XSLT you can't change a variable - the name is confusing, I admit, but that's the way it is - the way you approach a problem is very different in XSLT than in, say, C# or JavaScript...

    Tell us a little more about your specific case and we'll provide you with a way to solve it. Promise.

    /Chriztian

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies