First, let me say that many people here, at work, have told me XSLT is the completely wrong language to be working in. I should be using JAVA or PERL or EXPECT, etc..
Since all my data sits squarely in the XML space, I believe there is no better language than XSLT to be doing my work.
Now, I develop using Saxon 9 on a Windows 7 box, but my code also runs in production on Solaris.
I have two temporary results, they are structured the same:
My quest is to determine if any of the entities in the first result exist in the second result. If it does, I would like for the function/template to give me the value-of the entity that matched. If none matched, then I'd like an empty string. I don't care if more than one matches, I just need to know if at least one matches.
I believe there to a a simple solution to this problem, one that I completely passed over as I jumped to the more difficult solutions.