logo       

Re: zero-length string namespaces URI: msg#00033

Subject: Re: zero-length string namespaces URI
I agree that such a clarification would be useful, but I believe it is already explicitly disallowed.

Section 4.2 of the XQuery spec states:

"A module declaration begins with the keyword module and contains a namespace prefix and a URILiteral. The URILiteral identifies the target namespace of the library module..."

The Namespaces in XML 1.0 errata states:

NE09: The empty string, though it is a legal URI reference, cannot be used as a namespace name.

Technically, the XQuery spec should use the term "namespace name" instead of "namespace URI", but the meaning is clear.

-- Ron

Michael Kay wrote:
I don't think this *should* be allowed; but I don't think the spec says
clearly that it isn't.

The zero-length string is not a valid namespace URI, though it is used in
some contexts (e.g. xmlns="") to indicate the "not-a-namespace" (for want of
a better term). I think the spec needs to say explicitly that this isn't
allowed. Could you please raise it on http://www.w3.org/Bugs/Public/ ?
Michael Kay


-----Original Message-----
From: talk-bounces-KUd/JJajPrLQT0dZR+AlfA@xxxxxxxxxxxxxxxx [mailto:talk-bounces-KUd/JJajPrLQT0dZR+AlfA@xxxxxxxxxxxxxxxx] On Behalf Of Pierrick Brihaye
Sent: 28 September 2005 08:06
To: talk-KUd/JJajPrLQT0dZR+AlfA@xxxxxxxxxxxxxxxx
Subject: [xquery-talk] zero-length string namespaces URI

Hi,

Is this syntax correct ?

module.txt :

module namespace foo="";
declare variable $foo:bar := "bar";

XQuery :

import module namespace foo="" at "module.txt";
$foo:bar

or XQuery :

import module namespace foo="" at "module.txt";
$bar

Saxon returns "bar" in both cases.



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe