commit | a353cce850560bea761d67a2fbcaf9cb271f586f | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Nov 14 10:09:55 2022 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Nov 14 10:09:55 2022 +0100 |
tree | 77b593ba88916b72d2a074d4967b6e9b8c56200a | |
parent | cb798b15339388572ede29205112fe8d1bcf1be5 [diff] |
xpath BUGFIX child axis does not include siblings Fixes #1938
diff --git a/src/xpath.c b/src/xpath.c index 1136bad..919ab23 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -6584,7 +6584,7 @@ } assert(scnode); - if (!lysc_data_parent(scnode)) { + if ((axis != LYXP_AXIS_CHILD) && !lysc_data_parent(scnode)) { /* iterating over top-level nodes, find next */ while (lysc_data_parent(*iter)) { *iter = lysc_data_parent(*iter);