* Fixed again: [xpath function count did not work properly #224](https://github.com/clicon/clixon/issues/224)

* Must statements namespace context were given by yang node, but this is not correct, should be xml
This commit is contained in:
Olof hagsand 2021-05-26 14:00:20 +02:00
parent 164aa1cb4c
commit ec4d26febf

View file

@ -1211,8 +1211,9 @@ xml_yang_validate_all(clicon_handle h,
if (yang_keyword_get(yc) != Y_MUST)
continue;
xpath = yang_argument_get(yc); /* "must" has xpath argument */
if (xml_nsctx_yang(yc, &nsc) < 0)
goto done;
/* the context node is the node in the accessible tree for
* which the "must" statement is defined. */
nsc = NULL;
if ((nr = xpath_vec_bool(xt, nsc, "%s", xpath)) < 0)
goto done;
if (!nr){