the variable i has a value"xq:value/"
I have tested the xquery expression in x-plorer and got the right returned value.
I have no idea, why it doesn’t work in my application.
I can’t account for why you’re not getting a result, unless you have a typo somewhere that doesn’t show up in your example. But you could simplify your query:
count(input()/organisation)
Wrapping the input in a FLWOR expression doesn’t accomplish anything here.