Skip to content

Disallow document() and evaluate() in re-compiled template parameters - #124

Merged
isudana merged 1 commit into
apache:masterfrom
ThisaraWeerakoon:f010-template-param-expression
Nov 11, 2026
Merged

isudana merged 1 commit into
apache:masterfrom
ThisaraWeerakoon:f010-template-param-expression

Conversation

@ThisaraWeerakoon

Copy link
Copy Markdown
Contributor

A dynamic template parameter in the escaped {{...}} form is evaluated once and its result is
re-compiled into a new XPath expression, which runs again via $func:<param>. Since that
expression is built from a runtime value, it should only resolve through self-contained XPath
functions.

A dynamic template parameter in the escaped {{...}} form is evaluated once
and its result is re-compiled into a new XPath expression. Since that
expression is derived from a runtime value, it is now rejected if it calls
document() or evaluate(). All other functions and the single-evaluation
parameter forms are unchanged.
@ThisaraWeerakoon
ThisaraWeerakoon force-pushed the f010-template-param-expression branch from 51124ff to 6de91ff Compare November 11, 2026 07:48
@isudana
isudana merged commit f70b446 into apache:master Nov 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants