Sorin, I cannot answer these questions. You should report them in zorba-
dev. It's probably Dana who should ultimately answer them. Furthermore,
regarding potential implementation of xs:dateTimeStamp, it should be
done by the same person who implemented datetime (in src/zorbatypes).
This was either you or Nicolae, I don't remember.

** Changed in: zorba
     Assignee: Markos Zaharioudakis (markos-za) => Sorin Marian Nasoi 

You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.

  support for the xs:dateTimeStamp type

Status in Zorba - The XQuery Processor:

Bug description:
  I bumped into the following issue while trying to run the following XQuery 
3.0 test:

  Zorba returned:
  static error [err:XPST0017]: "xs:dateTimeStamp": function with arity 1 not 

  Looking into the latest F&O Spec for XQuery 3.0 I see that a new type,
  xs:dateTimeStamp was added for the implementations that "support XSD

  I have a few questions:
  1) should Zorba support the new type, xs:dateTimeStamp?
  If so, some function signatures need to be changed, for instance:
  Now, in Zorba, 
  fn:current-dateTime() returns a xs:dateTime
  instead of a xs:dateTimeStamp as stated in the

  2) Should Zorba support constructor functions for xsd types ? Meaning should 
we add functions like:
  fn:unsignedInt($arg as xs:anyAtomicType?) as xs:unsignedInt?

  3) There are 2 tests in Zorba( xquery_1_0 and xquery_1_1) that check if all 
the functions from the fn: namespace of the F&O spec 1.0 and 3.0 are 
implemented in Zorba.
  The problem with these tests is that they only check the function names and 
their corresponding arities; they do not check if the types of the parameters 
are correct.
  This is the reason why the change in the signature of the 
fn:current-dateTime() that should now return a xs:dateTimeStamp was not picked 
up by these tests.

  IMO we should update these 2 tests to also check the parameter types:
  one problem I see here is that the introspection module only provides
  function to get the function name and arity, not the types of the

  Thanks for the help,

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to