2012-03-06 00:34:42 |
Till Westmann |
description |
In test2 in test/unit/context_item.cpp, the static type of the context item is set to xs:integer via the C++ API. In the query in test/unit/context_item2.xq - which is used to create the static context - the context item is declared to be of type xs:string.
Currently the setting of the type via the C++ APi is silently ignored. It seems that it should be reported as a error (similarly to the error that is reported if 2 declarations of the context item are given:
http://www.w3.org/TR/xquery-30/#id-context-item-declarations
http://www.w3.org/TR/xquery-30/#ERRXQST0099 |
In test2 in test/unit/context_item.cpp, the static type of the context item is set to xs:integer via the C++ API. In the query in test/unit/context_item2.xq - which is used to create the static context - the context item is declared to be of type xs:string.
Currently the setting of the type via the C++ API is silently ignored. It seems that it should be reported as a error (similarly to the error that is reported if 2 declarations of the context item are given:
http://www.w3.org/TR/xquery-30/#id-context-item-declarations
http://www.w3.org/TR/xquery-30/#ERRXQST0099 |
|