cts: index-order in cts:element-values?

25 Views Asked by At

I want to pick the ID from the lasted doc based on DATE, but when I am using the below query I am getting an error:

cts:element-values(xs:QName('ID'),(),(),
  cts:and-query((
    cts:element-value-query(xs:QName('TEST'),'1')
  )),
  cts:index-order(cts:element-reference(xs:QName('DATE'),'descending'))
)
0

There are 0 best solutions below