W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2004

[XQuery] can function be defined without a prefix?

From: Per Bothner <per@bothner.com>
Date: Tue, 30 Nov 2004 12:05:27 -0800
Message-ID: <41ACD287.1060803@bothner.com>
To: public-qt-comments@w3.org

Is the following legal?  Should it be?

declare default function namespace "my-namespace";
declare function ten() { 10 }

I see nothing in the specification to prohibit this.
Just "Every function must be in a namespace--that is, every declared 
function name must (when expanded) have a non-empty namespace URI."

Is it worth adding a clarification like this:
   It follows that the name of the declared function must have a prefix
   unless there is a 'default function namespace' declaration.
	--Per Bothner
per@bothner.com   http://per.bothner.com/
Received on Tuesday, 30 November 2004 20:05:29 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:02 UTC