Or we could also have a RepositorySelector and select a repository using the first path element.
Instead of path element, you could use subprotocol
jcr:repo1://path/
Hmm... that may be a good option as an application also need to access a repository directly and not only through a source. Hmm...
Yes, applications should have programmatic access to the repository. Are you thinking about registering all repositories in cocoon.xconf?
Vadim
Sylvain