zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #05832
[Bug 947627] [NEW] setting the static type of the context item is ignored
Public bug reported:
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
** Affects: zorba
Importance: Undecided
Assignee: Matthias Brantner (matthias-brantner)
Status: New
** Description changed:
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:
+ 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
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/947627
Title:
setting the static type of the context item is ignored
Status in Zorba - The XQuery Processor:
New
Bug 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
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/947627/+subscriptions
Follow ups
References