I'm working with a multivalued structured attribute (path syntax)

This works (using token-xpath to grab just the required nodes) - but I
would prefer to use do-strip-xpath but I just can't seem to get it
working.

Code:
--------------------
<do-set-local-variable name="ExShellState" scope="policy">
<arg-node-set>
<token-op-attr name="idvUserExShellState"/>
</arg-node-set>
</do-set-local-variable>
<do-set-local-variable name="ExShellState" scope="policy">
<arg-node-set>
<token-xpath expression="$ExShellState/self::value[(component[@name='volume'] ='~dirxml.auto.driverdn~')]"/>
</arg-node-set>
</do-set-local-variable>
--------------------


Can anyone tell me why this (or any variant I have tried) doesn't
work?


Code:
--------------------
<do-set-local-variable name="ExShellState2" scope="policy">
<arg-node-set>
<token-op-attr name="idvUserExShellState"/>
</arg-node-set>
</do-set-local-variable>
<do-strip-xpath expression="$ExShellState2/self::value[(component[@name='volume']!='~dirxml.auto.driverdn~')]"/>
--------------------


Example input document, the desired goal is to end up with a local
variable that contains only the value node(s) which have a volume
attribute that doesn't matches the current driver DN.

I understand that the two approaches are extremely similar, but I'm
aiming for the do-strip-xpath approach because I'm under the impression
that this would be the most efficient solution.


Code:
--------------------
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.0.1.0">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<modify cached-time="20110523124346.080Z" class-name="User" event-id="IAM_T_IDM-NDS#20110523124345#1#1:65854097-b242-499a-a42b-c45b377d7b7e" qualified-src-dn="O=IDV\OU=Data\OU=Internal\OU=People\CN=test" src-dn="\IDV-TREE\IDV\Data\Internal\People\ahl" src-entry-id="39653" timestamp="1306154626#2">
<modify-attr attr-name="idvUserExShellState">
<add-value>
<value timestamp="1306154625#2" type="structured">
<component name="nameSpace">1306151125</component>
<component name="volume">\IDV-TREE\IDV\Services\IDM\DriverSet1\AD-testiam</component>
<component name="path">Enabled</component>
</value>
<value timestamp="1306154626#2" type="structured">
<component name="nameSpace">1306151126</component>
<component name="volume">\IDV-TREE\IDV\Services\IDM\DriverSet1\AD1-testiam</component>
<component name="path">Enabled</component>
</value>
</add-value>
</modify-attr>
</modify>
</input>
</nds>
--------------------


--
alexmchugh
------------------------------------------------------------------------
alexmchugh's Profile: http://forums.novell.com/member.php?userid=40344
View this thread: http://forums.novell.com/showthread.php?t=439267