format-dateTime(), calendar, and err:FOFD1340

XPath and XQuery Functions and Operators 3.0, section 9.8.4.3, states in part:

> The calendar value if present must be a valid EQName (dynamic error: [err:FOFD1340]). If it is a lexical QName then it is expanded into an expanded QName using the statically known namespaces; if it has no prefix then it represents an expanded-QName in no namespace. If the expanded QName is in no namespace, then it must identify a calendar with a designator specified below (dynamic error: [err:FOFD1340]).

Why is err:FOFD1340 used for this?  That error is defined as:

> err:FOFD1340, Invalid date/time formatting picture string.
> 
> This error is raised if the picture string supplied to fn:format-date, fn:format-time, or fn:format-dateTime has invalid syntax.

which has nothing to do with calendars.

- Paul

Received on Tuesday, 18 June 2013 01:02:19 UTC