Hi Folks

I am having some issue with getting element-attribute values with some 
additional query into the query option.

The query below is returning 0 records -- which is fine

cts:search(fn:doc(),
        cts:and-query((
                       cts:element-query(xs:QName("as-project-spec"),
                           cts:and-query((
 
cts:element-attribute-value-query(xs:QName("as-project-spec"),xs:QName("div"),"00000"),
 cts:element-word-query(xs:QName("content"),"kolkata")
                            ))
                        )
                   ))
)


Where as the query below is simply returning me some values from the value 
lexicons -- ideally it should not

 cts:element-attribute-values(
                   xs:QName("as-project-spec"),
                   xs:QName("div"),
                   (),
                   (),
                   cts:and-query((
                       cts:element-query(xs:QName("as-project-spec"),
                           cts:and-query((
 
cts:element-attribute-value-query(xs:QName("as-project-spec"),xs:QName("div"),"00050"),
 cts:element-word-query(xs:QName("content"),"kolkata")
                            ))
                        )
                   ))
            )

Though it is mentioned that this will return the values matching the 
fragments.Ideally as 0 fragments are matching the query 
..element-attribute-values should not return any value.

Let me know If I a wrong somewhere.

Thanks & Regards
Abhishek Srivastav
Tata Consultancy Services
Cell:- +91-9883389968
Mailto: [email protected]
Website: http://www.tcs.com
____________________________________________
Experience certainty.   IT Services
                        Business Solutions
                        Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to