What I need to do is to create different variables (variable name) based on value of defined variable. As I am beginner with XSLT I am not quite sure how to that. Basic idea is to have something like
foo is defined and can have value 1 or 2 or 4
if (foo == 1):
a = 1
elif (foo == 2):
b = 1
elif (foo == 4):
c = 1
Reason why I need to create different variables is that those variables will be used as conditions for pystache to generate file from mustache template.
All resources I found for xsl is how to assign different values with choose syntax but not how to conditionally create different variables. XML version is 1.0.
Thanks in advance for any help