This content has been marked as final. Show 1 reply
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.