some node of xml document is:
    <product dept="ACC" tmp="哈哈">
        <number>563</number>
        <name language="en">Floppy Sun Hat</name>
    </product>
the language of attribute tmp is chinese.


the query :
cts:search(collection()/catalog/product,
cts:and-query((cts:element-attribute-value-query(xs:QName("product"), 
xs:QName("tmp"), '哈*', "wildcarded"))))/name


will return the empty result.
but the below query will return the right result:
cts:search(collection()/catalog/product,
cts:and-query((cts:element-attribute-value-query(xs:QName("product"), 
xs:QName("dept"), 'A*', "wildcarded"))))/name
result is:
<name language="en">Floppy Sun Hat</name>


why the first query return the empty result?



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

Reply via email to