I did some more research and found i could use the ModuleURIResolver. I just need to talk to the camel guys about a patch so that i can use it.
> Message: 4 > Date: Thu, 28 Jul 2011 22:57:56 +0100 > From: Michael Kay <firstname.lastname@example.org> > Subject: Re: [saxon] import module from classpath > To: email@example.com > Message-ID: <4E31DB64.firstname.lastname@example.org> > Content-Type: text/plain; charset="iso-8859-1" > > I think (can't swear to it) that should work automatically if the base > URI of the query is a "jar:" URI (or pseudo-URI, since these aren't > actually standardised). It would be interesting to see what calling > static-base-uri() gives you. > > Failing that, the answer is to write a module URI resolver which Saxon > will call to get from the URI used in the "location hint" to an actual > resource (file). > > I'm afraid I have no personal experience of camel-saxon. > > Michael Kay > Saxonica >