Can someone give me some insight as to what the below Xpath expression
is trying to do. Before asking addtional question need to understand the
condition.


<?xml version="1.0" encoding="UTF-8"?><policy>
<rule>
<description>Writeback CN and DN after successful Publisher Channel
Add</description>
<conditions>
<and>
<if-operation op="equal">status</if-operation>
<if-xpath op="true">self::status[@level =
'success']/operation-data/peoplesoft-cn</if-xpath>
<if-xpath op="true">self::status[@level =
'success']/operation-data/peoplesoft-dn</if-xpath>
<if-xpath op="true">self::status[@level =
'success']/operation-data/peoplesoft-src-id</if-xpath>
</and>
</conditions>
<actions>
<do-add-dest-attr-value direct="true" name="DIRXML_USERID">
<arg-association>
<token-xpath expression="operation-data/peoplesoft-src-id"/>
</arg-association>
<arg-value type="string">
<token-xpath expression="operation-data/peoplesoft-cn"/>
</arg-value>
</do-add-dest-attr-value>
<do-add-dest-attr-value direct="true" name="DIRXML_DN">
<arg-association>
<token-xpath expression="operation-data/peoplesoft-src-id"/>
</arg-association>
<arg-value type="string">
<token-xpath expression="operation-data/peoplesoft-dn"/>
</arg-value>
</do-add-dest-attr-value>
</actions>
</rule>
</policy>

++++++++++++++The trace outlines this+++++++

Evaluating selection criteria for rule 'Writeback CN and DN after
successful Publisher Channel Add'.
[09/26/08 12:11:32.484]:PeopleSoft50_MDA_2 PT: (if-operation equal
"status") = TRUE.
[09/26/08 12:11:32.484]:PeopleSoft50_MDA_2 PT: (if-xpath true
"self::status[@level = 'success']/operation-data/peoplesoft-cn") =
FALSE.
[09/26/08 12:11:32.485]:PeopleSoft50_MDA_2 PT: Rule rejected.
[09/26/08 12:11:32.486]:PeopleSoft50_MDA_2 PT:Policy returned:


--
rsw4723
------------------------------------------------------------------------
rsw4723's Profile: http://forums.novell.com/member.php?userid=8590
View this thread: http://forums.novell.com/showthread.php?t=345159