Hi,
Unfortunately neither in Tamino XQuery nor in X-Query it is possible to check if a node has the type xs:ID. But given an according schema you can guarantee that an expression gives you instances of certain type. All you have to do is to avoid language constructs that destroy the type safety like // or wild-card name tests in path expressions.
Best regards,
Thorsten Fiebig
#API-Management#Tamino#webMethods