Sorry for the time spent ! The problem was not exactly this ...

Pascal

2012/10/16 Pascal Cadet <pascal.ca...@pressinnov.com>

> Hi,
>
> For a query as :
> *let* *$query* :=
>     *cts:and-query*((
>         *cts:directory-query*("/dir/", "infinity"),
>         *cts:not-query*(*cts:element-value-query*(*xs:QName*("name"),
> "value")),
>         *cts:element-attribute-value-query*(*xs:QName*("node1child1"), *
> xs:QName*("id"), "valAtt")
>     ))
>
> How is possible to have different result set between :
>
> *cts:values*(c*ts:path-reference*("/root/node2/node2child1/@att"), (),
> (), *$query*)
>  => return A, B, C
>
> and
>
> *distinct-values*(*cts:search*(*collection*(), *$query*)/*root*/*node2*/*
> node2child1*/*@id*)
> => return A, B, C, D, E
>
> Exemple of document in my DB :
> <root>
>     <node1>
>         <node1child1 *id*= *"..."* >
>             <name>.... </name>
>         </node1child1>
>     </node1>
>     <node2>
>         <node2child1 *att*= *"..."* >
>         </node2child1>
>     </node2>
> </root>
>
>
> Pascal
>



-- 

*Pascal **CADET*
06 12 97 02 53
www.pressinnov.com
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to