Hi,

 

Inside a document is this structure:

 

<dbRef>

    <DbRefImpl>

        <table>ORDERS</table>

        <column>ORDERID</column>

    </DbRefImpl>

    <DbRefImpl>

        <table>ORDER DETAILS</table>

        <column>QUANTITY</column>

    </DbRefImpl>

</dbRef>

 

I'm trying to develop a cts query which will match within the context of
DbRefImpl.  This XPath example correctly returns no matches:

 

//dbRef/dbRefImpl[table='ORDERS' and column='QUANTITY']

 

I'm try to reproduce this with cts but the query below returns a false
match:

 

cts:element-query(xs:QName("DbRefImpl"), 

    cts:and-query((

                    cts:element-value-query(xs:QName("table"), "ORDERS"),

                    cts:element-value-query(xs:QName("column"), "ORDERID")

                   )) )

 

Am I doing something wrong, or is there another way to attack this?

 

Thanks all,

gary 

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

Reply via email to