XPath: refactored XPath match, documented localonly and prefixonly api

This commit is contained in:
Olof hagsand 2024-12-15 11:27:58 +01:00
parent 6c73c36fb7
commit 081a541c6b
13 changed files with 384 additions and 105 deletions

View file

@ -656,6 +656,7 @@ get_list_pagination(clixon_handle h,
int j;
int ret;
dispatcher_entry_t *htable = NULL;
cvec *wherens = NULL;
// int extflag = 0;
#ifdef LIST_PAGINATION_REMAINING
cxobj *xcache;
@ -715,6 +716,8 @@ get_list_pagination(clixon_handle h,
(where = xml_body(x)) != NULL){
if (strcmp(where, "unfiltered") == 0)
where = NULL;
else if (xml_nsctx_node(x, &wherens) < 0)
goto done;
}
/* then the "sort-by" parameter (see Section 3.1.2) */
if ((x = xml_find_type(xe, NULL, "sort-by", CX_ELMNT)) != NULL){
@ -907,6 +910,8 @@ get_list_pagination(clixon_handle h,
ok:
retval = 0;
done:
if (wherens)
cvec_free(wherens);
if (xvec)
free(xvec);
if (cbmsg)