I am new to XSLT Please help, Cannot use XSLT 2.0
The group priority level
lowest(Public-1) TO Highest (PRIVATE-3)
Public-1 Public-2 Public-3 CONFID-1 CONFID-2 CONFID-3 PRIVATE-1 PRIVATE-2 PRIVATE-3
For example a user LDAP query gives a file
<result>
<DN>CN=Test User ID Priv-2,CN=Users,DC=Lab,DC=acme,DC=com</DN>
<attribute-value name="memberOf">CN=CONFID-2,OU=Groups,DC=Lab,DC=acme,DC=com</attribute-value>
<attribute-value name="memberOf">CN=PRIVATE-2,OU=Groups,DC=Lab,DC=acme,DC=com</attribute-value>
<attribute-value name="memberOf">CN=Public-3,OU=Groups,DC=Lab,DC=acme,DC=com</attribute-value>
</result>
The xslt should select the highest priority level available for the user and output it
In the file above the user has membership in groups
CONFID-2, PRIVATE-2, Public-3
the xslt should give the output just
CN=PRIVATE-2,OU=Groups,DC=Lab,DC=acme,DC=com
Thanks in advance for your help. I know the procedure to follow.
- gather the all groups available for the user.
- translate/map the gathered groups into numericals
- select the highest
I am very new to XSLT and am trying for 2 days. I just need a small code snippet of translating/mapping the group names to numericals and to select the highest numerical. I will never ask you a working stylesheet.