W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2002

Base URI as used by document

From: Per Bothner <per@bothner.com>
Date: Mon, 13 May 2002 02:10:04 -0400 (EDT)
Message-ID: <3CDF58F7.6030604@bothner.com>
To: public-qt-comments@w3.org
CC: per@bothner.com
The XQuery spec section mentions "Base URI" as part of the
static context, and that it is used by xf:document.  However, it
doesn't actually define it.  The Functions and Operator spec says
the default base URI is "of the stylesheet element containing the
call to the document function".  But what is a "stylesheet
element"?  Is it defined anywhere?  The only thing I can think of is
that it is the uri of the actual XQuery source code.  But this seems
rather useless.  It's like saying that the default directory used
by a fopen in a C program is the directory containing the C program

If an XQuery program can be compiled on one machine, and then moved
to a completely different machine (which of course it can) then the
concept of "base URI of the stylesheet element contaning the call to
the document function" becomes are really bad idea.

I suggest changing it so the the Base URI is defined by the execution
enevironment, not the compilation environment, of the XQuery program,
and in an implementation-defined manner.
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/
Received on Wednesday, 15 May 2002 16:36:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:42 UTC