EDIT: I also have access to ESXLT functions.
I have two node sets of string tokens. One set contains values like these:
/Geography/North America/California/San Francisco
/Geography/Asia/Japan/Tokyo/Shinjuku
The other set contains values like these:
/Geography/North America/
/Geography/Asia/Japan/
My goal is to find a "match" between the two. A match is made when any string in set 1 begins with a string in set 2. For example, a match would be made between /Geography/North America/California/San Francisco and /Geography/North America/ because a string from set 1 begins with a string from set 2.
I can compare strings using wildcards by using a third-party extension. I can also use a regular expression all within an Xpath.
My problem is how do I structure the Xpath to select using a function between all nodes of both sets? XSL is also a viable option.
This XPATH:
count($set1[.=$set2])
Would yield the count of intersection between set1 and set2, but it's a 1-to-1 comparison. Is it possible to use some other means of comparing the nodes?
EDIT: I did get this working, but I am cheating by using some of the other third-party extensions to get the same result. I am still interested in other methods to get this done.