I am new to XSLT , So putting up maybe really basic question .
Well I will keep it short ,
What I have to do is create three dummy variables (Which will be updated from server--LDAP ) and compare this against another set of variables ,After comparison I have to update the result in another variable and return that variable ,
Here is the SUDO code .
If ( A_Div_Code contain '$DIVISION_CODE') and ( A_Dept_Code contains '$DEPT_CODE') and (A_job_Level contains '$JOB_LEVEL)
MP_GROUP='A'
If (C_Div_Code contain '$DIVISION_CODE') and (C_Dept_Code contains '$DEPT_CODE') and (C_job_Level contains '$JOB_LEVEL)
MP_GROUP='A,C'
and the variables will be like this
1.DIVISION_CODE : This variable will store the Division code received from LDAP for a user/file_id.
Example :DIVISION_CODE":"48
2.DEPT_CODE : This varaible will store the Department code received from LDAP for a user/file_id.
Example :DEPT_CODE":"LT"
3.JOB_LEVEL : This variable will store the Job level received from LDAP for a user/file_id
Example :JOB_LEVEL":"4B
MI_GROUP : Which basically we be finding logically and sending to backend web server.
How to use Choose condition on XSLT variable
Hello Guys,
I am new to XSLT , So putting up maybe really basic question .
Well I will keep it short ,
What I have to do is create three dummy variables (Which will be updated from server--LDAP ) and compare this against another set of variables ,After comparison I have to update the result in another variable and return that variable ,
Here is the SUDO code .
and the variables will be like this
MI_GROUP : Which basically we be finding logically and sending to backend web server.
Based on this I created following XSLT file ,
So basically I will have to compare the Three variable against those department codes and update the MI_GROUP variable
Hi Vikram,
I would love to see what you're really trying to output.
E.g.: Is the macro only responsible for returning a value like A or A,C?
/Chriztian
is working on a reply...