I am stuck trying to compare two nodesets. I have a GCV set on a driver
which is a delimited list of connected system names, ie Active
Directory, eDirectory Driver, etc. I put that list in a nodeset as
follows:

<do-set-local-variable name="splitgcv" scope="policy">
<arg-node-set>
<token-split csv="false" delimiter=",">
<token-global-variable name="deprovision"/>
</token-split>
</arg-node-set>
</do-set-local-variable>

Next I build a nodeset of the current users associations as follows:

<do-set-local-variable name="dirxml-ass-query" scope="policy">
<arg-node-set>
<token-query class-name="User" datastore="dest">
<arg-dn>
<token-dest-dn/>
</arg-dn>
<arg-string>
<token-text
xml:space="preserve">DirXML-Associations</token-text>
</arg-string>
</token-query>
</arg-node-set>
</do-set-local-variable>

What I am trying to do is now come up with a nodeset that only includes
the splitgcv members of the nodeset that are listed in the association
query. IE the gcv lists every connected system,,,I need to find out
which connected systems the user actually has associations too.

I know I need to do something very similar to this,,,
<do-set-local-variable name="provisioned" scope="policy">
<arg-node-set>
<token-xpath expression="$dirxml-ass-query[not(string(.) =
$splitgcv)]"/>
</arg-node-set>
</do-set-local-variable>

but I cannot figure out how to use a regex as the gcv will not totally
match the structured association.

I actually may go about my logic an entirely different way, but having
vested some time in this--I really am curious how to simply do it this
way. Any comments appreciated. Thanks!


--
jeff@linux1:~> glxgears
120308 frames in 5.0 seconds = 24061.553 FPS
------------------------------------------------------------------------
jedijeff's Profile: http://forums.novell.com/member.php?userid=4732
View this thread: http://forums.novell.com/showthread.php?t=370508