Comment 5 for bug 1173638

Revision history for this message
Juan Zacarias (juan457) wrote :

Chris, Even if the proposal was done to only use one resource, it is not as easy as changing the signature of the url resolver function. The problem is more because of the way the url resolver is implemented in the C++ API.

Since If I did that change I can actually get the 2 resources with no problem but the definition of URLResolver states that you can only return 1 Resource, so there is no way for me to return 2 resources in 1 resolver.

  virtual Resource* resolveURL(const zorba::String& aUrl,
    EntityData const* aEntityData) = 0;

So to get this done we would probably need to make changes to the URLResolver class to allow returning more than one resource.

Markos mentioned this is currently working internally on zorba, so my only guess is that the C++ API URLResolver needs to be updated to work more like the internal resolver.