XOR gateway

flexible activities from one actor to another

Each fragment of the process which is between two Xor gateways will be flexible and changeable from one actor to another:
for some actors with specific information, they will have specific activities to do, for other all activities will appears to check the choice.
so, as a first idea, I do some modification in the XML file of the process and in the XSLT file I added if else and for loops to get control over data. but that seems difficult because I do not master this field.
how can you suggest to me to do that?