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

@ -214,3 +214,13 @@
* worse case an overwrite.
*/
#undef SYSTEM_ONLY_CONFIG_CANDIDATE_CLEAR
/*! In full XPath namespace resolve, match even if namespace not resolved
*
* In the case of xpath lookup functions (eg xpath_vec_ctx) where nsc is defined, then
* matching with XML requires equal namespaces.
* However, some code is OK with the XPATH NSC being unresolved to NULL, even if the XML
* namespace is defined.
* This seems wrong and should be changed, but need further investigation
*/
#define XPATH_NS_ACCEPT_UNRESOLVED