Apologies for the previous empty Post

I have and EDirectory that I have connected to AD.
All works except whe I try and sync most of my users they return LDAP
Constraint error

Tracked it down. These users have multiple entries in the 'Internet
Email Address' field as Groupwise has multiple email domains and AD'
mail will only take one address as a text field.

The only field available is the Email Address, which is a structure
made up of EmailType and EmailAddr

So I need to replace the content of the internet Email Address
attribute with the EmailAddr component of Email Address.

I cant seem to get the XPath string to work

My rule at the moment looks like

<description>Get Primary Email Address1</description>
<comment name="author" xml:space="preserve">Mark
<comment name="version" xml:space="preserve">1</comment>
<if-class-name op="equal">User</if-class-name>
<if-op-attr name="Internet EMail Address"
<do-set-local-variable name="SingleEmailAddress">
<token-src-attr name="EMail Address"/>
expression='$Context/att[.]/component[@name="eMailAddr"] '/>

Any suggestions would be apreciated

Thanks in advance