Pavel and Jim, If that's the case, it looks good to me. Just wanted to highlight potential issues and implementation differences compared to other databases.
It is correct.
Every Time there will be some differences - DB2 has an absolutely different stack for XML processing, Oracle has handy written parser, and allows some syntaxes that Postgres does not, but for some cases it is unfriendly, strict and restrictive.
And we are searching for some good compromise - between consistency with self, consistency with standard, and good usability and good portability.