Hello --

Is there some way to assign the abstraction of a fuzzy match to a variable, so that something like

for $x in //p
  let $key := get-fuzzy-match-value($x)
  group by $key
  return <similar-paragraphs>{$x}</similar-paragraphs>

would be possible?

I'm supposing this is one of those things that's either easy or impossible.

Thanks!
Graydon