schema resolution only finds 1 resource

Bug #929351 reported by Till Westmann
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zorba
New
High
Chris Hillery

Bug Description

The schema for a single target namespace can be distributed across several files (or other resources).
However, it seems (from looking at the URI resolution code) that only 1 resource can be returned.

Revision history for this message
Chris Hillery (ceejatec) wrote :

If you want to have a single URI resolve to multiple resources, you need to register a Component URI Mapper; see

  http://www.zorba-xquery.com/html/documentation/2.1.0/zorba/uriresolvers

However, this mechanism is currently only used for module import. It would be easy to call it for schema resolution as well, but I"m not sure how or if Xerces supports loading schemas from multiple files.

Can you give an example of a multi-part schema?

Revision history for this message
Cezar Andrei (cezar-andrei) wrote : Re: [Zorba-coders] [Bug 929351] Re: schema resolution only finds 1 resource

You can have multiple schema files all with the same target namespace.
Xerces does support it loading them all, it's a fairly common practice.

Cezar

On Thu, Feb 9, 2012 at 1:55 AM, Chris Hillery <email address hidden>wrote:

> If you want to have a single URI resolve to multiple resources, you need
> to register a Component URI Mapper; see
>
> http://www.zorba-
> xquery.com/html/documentation/2.1.0/zorba/uriresolvers
>
> However, this mechanism is currently only used for module import. It
> would be easy to call it for schema resolution as well, but I"m not sure
> how or if Xerces supports loading schemas from multiple files.
>
> Can you give an example of a multi-part schema?
>
> --
> You received this bug notification because you are a member of Zorba
> Coders, which is the registrant for Zorba.
> https://bugs.launchpad.net/bugs/929351
>
> Title:
> schema resolution only finds 1 resource
>
> Status in Zorba - The XQuery Processor:
> New
>
> Bug description:
> The schema for a single target namespace can be distributed across
> several files (or other resources).
> However, it seems (from looking at the URI resolution code) that only 1
> resource can be returned.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/zorba/+bug/929351/+subscriptions
>
> --
> Mailing list: https://launchpad.net/~zorba-coders
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~zorba-coders
> More help : https://help.launchpad.net/ListHelp
>

Changed in zorba:
importance: Undecided → High
assignee: nobody → Chris Hillery (ceejatec)
Revision history for this message
Rino Falstad (rino-e) wrote :

Looks like this bug also affect import, not only include mentioned above.

tags: added: schema uri-resolution
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.