Hi All

I am doing a matching for (Surname,internet email Address), but before
doing an matching I want to check, whether the values exist.So I am
doing an XPATH expression. In the below code I search for the email
value, if it exist then i need to search for Surname, only in that
particular 'user', so please let me know How to change this below XPATH
expression to match my requirements

<TOKEN-XPATH EXPRESSION=\"QUERY:SEARCH($DESTQUERYPROCESSOR,'ENT R
Y','','US','USER','SURNAME',$LVMATCHINGVALUE1,'')\ "/>

The Actual Rule is below

<rule>
<description>set local variables</description>
<conditions>
<and>
<if-class-name op=\"equal\">user</if-class-name>
<if-operation op=\"equal\">add</if-operation>
<if-op-attr name=\"internet email address\" op=\"available\"/>
<if-op-attr name=\"surname\" op=\"available\"/>
</and>
</conditions>
<actions>
<do-set-local-variable name=\"lvmatchingvalue\">
<arg-string>
<token-op-attr name=\"internet email address\"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name=\"lvmatchingvalue1\">
<arg-string>
<token-op-attr name=\"surname\"/>
</arg-string>
</do-set-local-variable>
<do-for-each>
<arg-node-set>
<token-xpath
expression=\"query:search($destqueryprocessor,'sub tree','','us','user','internet
email address',$lvmatchingvalue,'')\"/>
</arg-node-set>
<arg-actions>
<*do-set-local-variable name=\"lvemailsurname\" scope=\"driver\">
<arg-object>
<token-xpath
expression=\"query:search($destqueryprocessor,'ent ry','','us','user','surname',$lvmatchingvalue1,'') \"/>
</arg-object>* </do-set-local-variable>
</arg-actions>
</do-for-each>
</actions>
</rule>

Thanks in advance
sri


--
sriramt
------------------------------------------------------------------------
sriramt's Profile: http://forums.novell.com/member.php?userid=5151
View this thread: http://forums.novell.com/showthread.php?t=324143