Bob blogs about XQuery again, pointing out that if the XQueries are issued against typed XML instances in SQL Server 2005 are validated before T-SQL Query Processing, potentially leading to interesting results. Over here I've got an example to look and some thoughts as to why this "behavior by design."