Hello Heo, Ju-Young.
After installing your schemas and the documents, I did some experiments and found that the “Compile time type exception” only occurs when the attribute with a standard index is used on the right-hand side of a comparison.
If you change the where clause so that the attribute is on the left-hand side, it works!
(That is, change the where clause to this:
where $d/@id=$e/companyId )
You original query works if you change the schema to have either no index or a text index on the “id” attribute (in “company”).
I don’t think that this is the intended behaviour(!), so I recommend that you report this problem to your local Software AG Customer Support Center to ensure that it is solved for you.
I hope that helps,
Trevor.
[This message was edited by Trevor Ford on 23 Apr 2003 at 21:40.]
#webMethods#Tamino#API-Management