...such as /blah[foo=$x]. Here $x is a placeholder. When evaluating an expression on a document, one could pass an (optional) argument (a Map<String,Object>), and occurrences of placeholders could be dynamically replaced by what the map says.
This would help in BeepBeep 3, where currently occurrences of variables are evaluated by performing a string replacement, and then parsing the resulting string into an XPath expression, every time.
...such as
/blah[foo=$x]
. Here $x is a placeholder. When evaluating an expression on a document, one could pass an (optional) argument (aMap<String,Object>
), and occurrences of placeholders could be dynamically replaced by what the map says.This would help in BeepBeep 3, where currently occurrences of variables are evaluated by performing a string replacement, and then parsing the resulting string into an XPath expression, every time.