zorba -l should accept relative URIs for module namespaces

Bug #1202843 reported by Chris Hillery
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
New
Low
Markos Zaharioudakis

Bug Description

The following module:

  module namespace test = "zorba.io/test";

compiled with "zorba -l /tmp/foo.xq", raises:

</tmp/foo.xq>:1,2: static error [err:XQST0046]: "zorba.io/test": invalid URI literal: must be absolute; raised at /home/ceej/zo/src/src/compiler/api/compiler_api.cpp:523

But there's nothing in the spec which says module namespaces must be absolute. In fact XQST0046 is documented to mean "URILiteral is nonzero length and is neither an absolute URI nor a relative URI".

I'm not sure whether XML schema says anything about whether schema namespaces must be absolute or not.

Chris Hillery (ceejatec)
summary: - Should accept relative URIs for module namespaces
+ zorba -l should accept relative URIs for module namespaces
Changed in zorba:
assignee: nobody → Markos Zaharioudakis (markos-za)
importance: Undecided → Low
Revision history for this message
Chris Hillery (ceejatec) wrote :

FYI, the same module works fine if it is imported from a query, so only the mechanism behind "zorba --lib-module" is broken here.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.