Hello,

I need to have two search attributes in a query on the source directory
but cannot find the way to do it. The rule in the loopback driver looks
like this:


Code:
--------------------
<do-set-local-variable name="posmain">
<arg-node-set>
<token-xpath expression="query:search($srcQueryProcessor, 'subtree','','~orga-perspos-container~','alatOrgaPersPosition', 'alatOrgaPersPosAssocPers', $alatOrgaPersGUID, 'alatOrgaPersPosTelExt, alatOrgaPersPosFacNumber, alatOrgaPersPosPositionType')"/>
</arg-node-set>
</do-set-local-variable>
--------------------



and creates the following query document:


Code:
--------------------
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.2.4453">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<input>
<query class-name="alatOrgaPersPosition" dest-dn="data\allianz\apps\orga\perspos" scope="subtree">
<search-class class-name="alatOrgaPersPosition"/>
<search-attr attr-name="alatOrgaPersPosAssocPers">
<value>d7dabc30-bdf5-11d3-8000-010157aa0000</value>
</search-attr>
<read-attr attr-name="alatOrgaPersPosTelExt"/>
<read-attr attr-name="alatOrgaPersPosFacNumber"/>
<read-attr attr-name="alatOrgaPersPosPositionType"/>
</query>
</input>
</nds>
--------------------



What I would need is to have a second search filter in:


Code:
--------------------
<search-attr attr-name="alatOrgaPersPosPositionType">
<value>H</value>
</search-attr>
--------------------



But how can I configure that ? I read through the DTD and think it
should be possible because they talk about search-attr"s" but I cannot
find the way to configure it.

If that isn't possible, how can I search in the result nodeset of the
above query for the entry containing that attribute ?



Code:
--------------------
<nds dtdversion="3.5" ndsversion="8.x">
<source>
<product version="3.6.2.4453">DirXML</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<instance class-name="alatOrgaPersPosition" qualified-src-dn="dc=DATA\O=ALLIANZ\dc=apps\dc=orga\dc=persp
os\CN=d7448b3e-bdf5-11d3-8000-010157aa0000" src-dn="\EAEVMETA\DATA\ALLIANZ\apps\orga\perspos\d7448 b3e-bdf5-1
1d3-8000-010157aa0000" src-entry-id="159193">
<attr attr-name="alatOrgaPersPosTelExt">
<value timestamp="1284492691#4" type="string">11111</value>
</attr>
<attr attr-name="alatOrgaPersPosFacNumber">
<value timestamp="1284492691#11" type="string">(01) 11 111 - 11111</value>
</attr>
<attr attr-name="alatOrgaPersPosPositionType">
<value timestamp="1284492691#5" type="string">H</value>
</attr>
</instance>
<instance class-name="alatOrgaPersPosition" qualified-src-dn="dc=DATA\O=ALLIANZ\dc=apps\dc=orga\dc=persp
os\CN=1fc7786b-8018-11de-a01d-001438c18f69" src-dn="\EAEVMETA\DATA\ALLIANZ\apps\orga\perspos\1fc77 86b-8018-1
1de-a01d-001438c18f69" src-entry-id="158387">
<attr attr-name="alatOrgaPersPosTelExt">
<value timestamp="1284491921#5" type="string"/>
</attr>
<attr attr-name="alatOrgaPersPosFacNumber">
<value timestamp="1284491921#12" type="string"/>
</attr>
<attr attr-name="alatOrgaPersPosPositionType">
<value timestamp="1284491921#6" type="string">N</value>
</attr>
</instance>
<status level="success"></status>
</output>
</nds>
--------------------



Something like this ?

do-for-each(arg-node-set(token-xpath
("$posmain[contains(.....)=true()]")))

Rainer


--
brunold
------------------------------------------------------------------------
brunold's Profile: http://forums.novell.com/member.php?userid=562
View this thread: http://forums.novell.com/showthread.php?t=420998