How to join two documents from two different collections?

Dear Tamino XQuery Forum Members.

I am using tamino 4.1.4.

It looks like xquery and x-query restricts you to operate on only one collection.

Suppose I have two documents in two different collections, and that each document has an attribute named “id”.


1) Is it possible make a query that joins two documents from different collections?

2) If so how?

Thanks in advance.

Best Regards
Stefan Krabbe

Hello,
this is currently not possible.
The functionality will be available in V4.2 with
the support of the collection() function of XQuery.
Instead of the currently used input() function, you can then use the collection() function to
access and join documents from different collections.

Best regards
Walter
Tamino R&D