BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
661 stars 267 forks source link

XQuery: Context-dependent function literals #2238

Closed ChristianGruen closed 9 months ago

ChristianGruen commented 10 months ago

Context-independent literals for built-in functions are rewritten to function calls:

string#1('x')
→ string('x')

The same should happen for context-dependent literals:

(1 to 6) ! string#0()
→ (1 to 6) ! string()