I have a attr with :
xxxx/cccc
And I have this rule:


<rule>
<description>Descomponemos migrup</description>
<conditions>
<and>
<if-class-name op="equal">User</if-class-name>
<if-op-attr name="migrup" op="changing"/>
</and>
</conditions>
<actions>
<do-set-local-variable name="dpnan" scope="policy">
<arg-string>
<token-dest-attr class-name="User" name="migrup"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="dpnan1" scope="policy">
<arg-string>
<token-xpath expression="substring-before(string($dpnan),'/')"/>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="dpnan2" scope="policy">
<arg-string>
<token-xpath expression="substring-after(string($dpnan),'/')"/>
</arg-string>
</do-set-local-variable>
......

When the attr's value is "xxxx/cccc" it's ok.
But when it's "xxxx/cccc/aaaa" the second local variable is cccc/aaaa.
Could I convert this rule for use a for each sentence?
My skills are low on xml programming.


--
> It is appallingly obvious that our technology exceeds our
> humanity.Albert Einstein

------------------------------------------------------------------------
antonio_gracia's Profile: http://forums.novell.com/member.php?userid=1338
View this thread: http://forums.novell.com/showthread.php?t=409785