Improved wildcard matching for xquery comparisons