Is it difficult to do this via BaseX? Why is it a TODO?