On a JDBC driver we have a XSLT styleshee with the following:


When "UsersOU" is for instance, IDM\Users

If the user is located on the IDM\Users context, it works perfectly and
the substring-after funciont returns the user's CN.

But if the user is not located ther, but in on a child context we'll
get a result like 'Accounting\User1' if the user is located on

Does anyone know if is there any easy way to get the CN (last right
portion) from a DN independently of the context depth?

I've been looking all the string functions of XPATH but could not find
anything useful.

Jose Luis