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

Thanks for the comment. Section 9.8.4 para 6 states

In general, the use of an invalid $picture, $language, $calendar, or $place argument results in a dynamic error ([err:FOFD1340]). 

So the non-normative error text in appendix B has got out of line with the normative prose. I'll fix the appendix.

Michael Kay
Saxonica

On 18 Jun 2013, at 02:01, Paul J. Lucas wrote:

> 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 07:44:27 UTC