1 Reply Latest reply: Mar 17, 2009 3:09 PM by 15060 RSS

    How to map local variable with global variable...

    650517
      How to map global variable with local variable in transformation....?
        • 1. Re: How to map local variable with global variable...
          15060
          If I understand your question correctly, you want to map/process a local variable and assign the result to a global one? The transformation languages doesn't really distinguish between local/global. But it's good practice in XQuery to only use the variables defined by the function parameters. In which case, the global (parameter) variable is transfered by simply putting it as the actual parameter in the call. For XSLT you cannot write to a variable more than once, so you need to change your approach a bit. Create the variable and inside the <xslt:variable> tag you call your transformation. The result is then assigned to the variable.

          Both languages can define multiple parameters. You simply define a parameter and when you use it in OSB you'll be prompted for values for each parameter.