Re: [F&O] Function names

> As for the names of the extractor functions, we use the plural forms for
extracting components from durations.
> This seems right, as durations typically have multiple years, hours,
minutes, etc.

Yes, I agree.

> We use the singular forms for extracting year, month and day from
dateTime, date and time values.
> We use the plural forms when we extract hours, minutes and seconds from
such values.  This seems more
> natural to me but I'm happy to listen to arguments.

If it is more natural depends on context. Hour sounds better in singular,
but second and minute sometimes
indeed are better in plural. My argument is that many existing APIs and
languages uses singular forms,
such as SQL or MFC libraries.

And I think it will be nice to differentiate functions operating on duration
and date/time, by using plural
(quantity of seconds, minutes, hours in duration) and singular (value of
component).

> fn:doc and fn:document - fn:doc is a simplified version of fn:document
that the XQuery WG members found was
> sufficient
> for XQuery.   fn:document() has been moved to the XSLT 2.0 specification.
We agreed to adding a note there that
> explains why the two functions are needed.

I rethinked this. Now I agree that complex behavior of document() can be
undesirable in XQuery

> Please let us know if your comments have been satisfactorily addressed.

Regards,
Noe Michejda
7th Portal S.C.

Received on Thursday, 13 November 2003 16:23:40 UTC