Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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)
If (C_Div_Code contain '$DIVISION_CODE') and (C_Dept_Code contains '$DEPT_CODE') and (C_job_Level contains '$JOB_LEVEL)
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.
2.DEPT_CODE : This varaible will store the Department code received from LDAP for a user/file_id.
3.JOB_LEVEL : This variable will store the Job level received from LDAP for a user/file_id
MI_GROUP : Which basically we be finding logically and sending to backend web server.
Based on this I created following XSLT file ,
<?xml version="1.0" encoding="UTF-8" ?>
<!-- New document created with EditiX at Thu Feb 18 19:08:23 IST 2016 -->
exclude-result-prefixes="xs xdt err fn">
<xsl:output method="xml" indent="yes"/>
<xsl:variable name="DIVISION_CODE" select="'47'" />
<xsl:variable name="DEPT_CODE" select="'KT'" />
<xsl:variable name="JOB_LEVEL" select="4B''" />
<xsl:variable name="MI_GROUP" />
So basically I will have to compare the Three variable against those department codes and update the MI_GROUP variable
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?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted