Hi Christian,
Thanks for sharing the documentation link. :)
I have gone through the documentation and reach to the conclusion that we can fire XQueries only on one DB at a time. we cannot run query across the DBs.
For eg.
I am maintaining two DBs.
DB 1: contains schema files.
DB 2: contatins corresponding xmls.
I wont be able to fire a query obtaining datatype of an element which are specified in an xmls.
("let $ele := transaction/*[name() ne 'traInfo'] return xs:schema/xs:element[@name = $ele/local-name() and @type = 'xs:string']")
Above query will return all the elements defined in xml file which are of string datatype.
please correct me if I am wrong.
Thanks,
Kunal