Hi,

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

<remove-association>
<xsl:value-of
select="concat('PK_USERNAME=',substring-after($dn,concat('~UsersOU~','\'
)),',table=VIEW_ORCLUSERS,schema=IDMUSER')"/>
</remove-association>

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
IDM\Users\Accounting\User1.

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.

Regards
Jose Luis


--