System Programming Interfaces
A new method is provided in
StaticQueryContext to allow the static type of the context item to be specified. This information, if supplied,
will be used when type-checking and optimizing the query, and an error will be reported at run-time if the actual context item does not conform to this type.