I am having problems doing some pretty easy stuff. Using Novell IdM 3.6
and eDirectory 8.8.3

I do a query, which returns the correct values. No problems so far, but
when I try to count the query results, it always returns 0 (= zero).

The query:


Code:
--------------------

<do-set-local-variable name="x-UniqueInIDVault" scope="policy">
<arg-node-set>
<token-query>
<arg-match-attr name="uniqueID">
<arg-value type="string">
<token-local-variable name="x-UniqueID"/>
</arg-value>
</arg-match-attr>
</token-query>
</arg-node-set>
</do-set-local-variable>
--------------------


The query result:


Code:
--------------------
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.1.4427">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<instance class-name="User" event-id="0" qualified-src-dn="O=Vault\OU=People\OU=Active\CN=f744d1cf-0658-46fc-9d81-bd974edb141d" src-dn="\COMP\Vault\People\Active\f744d1cf-0658-46fc-9d81-bd974edb141d" src-entry-id="38686">
<association state="associated">PK_CODE=35231,table=V_PERS,sche ma=PLANDBA</association>
</instance>
<status event-id="0" level="success"></status>
</output>
</nds>
--------------------


And I do the following XPATH expression:


Code:
--------------------
count($x-UniqueInIDVault//instance) > 0
--------------------


I also tried the following XPATH expressions:

Code:
--------------------
count($x-UniqueInIDVault) > 0
--------------------



Code:
--------------------
count($x-UniqueInIDVault/@src-dn) > 0
--------------------


Which give me 0 (zero).

What am I doing wrong here, it should be fairly easy to count the
instances of a query result.


--
ttimmers
------------------------------------------------------------------------
ttimmers's Profile: http://forums.novell.com/member.php?userid=26810
View this thread: http://forums.novell.com/showthread.php?t=356297