[xquery-talk] String similarity function in XQuery?

David Sewell dsewell at virginia.edu
Thu Jun 14 15:57:10 PDT 2007

Does anyone have an XQuery function that calculates the similarity of
two strings? I'm thinking of something along the lines of the Perl
String::Similarity module:


A Google search turns up this (at bottom of the thread)


but (after adding parentheses around the final if..then clause so
it will run) this function scales more or less exponentially with string
length, becoming unusable pretty quickly.

David Sewell, Editorial and Technical Manager
ROTUNDA, The University of Virginia Press
PO Box 801079, Charlottesville, VA 22904-4318 USA
Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903
Email: dsewell at virginia.edu   Tel: +1 434 924 9973
Web: http://rotunda.upress.virginia.edu/

More information about the talk mailing list