max() and replace() ; Quip supports XPath 2.0 functions?

2 problems with XPath functions…

with max(2,3) i get the error 'wrong number of arguments’

with replace(“abracadabra”, “bra”, “*”) i get the error 'unparsed data’

what’s wrong??
does quip support XPath 2.0 functions?

The max function takes one argument, which is a sequence. So it must be written max((2,3)). The replace() function is not implemented in QuiP. QuiP was developed as an early prototype/demonstrator of XQuery functionality and it is not up to date with the latest specs. For a more up-to-date implementation, you might try Saxon available from

Michael Kay