Hi Christian,

It works only if I substitute your where clause with 

where db:text("db2", $k)

Ciao,
Giuseppe


On Sep 19, 2017, at 4:15 PM, Christian GrĂ¼n <christian.gruen@gmail.com> wrote:

where db:open("db2")/text/line[text() = $k]