[jboss-user] [Beginner's Corner] - Re: How to load a file packaged in the .esb?

Derek Croxton do-not-reply at jboss.com
Thu Nov 1 19:30:44 EDT 2012


Derek Croxton [https://community.jboss.org/people/mataratones] created the discussion

"Re: How to load a file packaged in the .esb?"

To view the discussion, visit: https://community.jboss.org/message/773526#773526

--------------------------------------------------------------
I figured out how to answer this, but I went out of the frying pan into the fire.

I can get to a file in the .esb by calling getClass().getResource("path"), being sure to start the path with a "/" to indicate it is from the root esbcontent directory.

So I managed to load the XSLT file, but it also references an external file as an XSD.  Once again, using a simple relative path inside the XSLT is not working.  I tried setting the SystemID on the transformer (useful advice from  http://stackoverflow.com/questions/7236291/saxon-error-with-xslt-import-statement http://stackoverflow.com/questions/7236291/saxon-error-with-xslt-import-statement), but that didn't help.  I suppose I need a URIResolver, but I don't know how to resolve the path since it isn't part of the regular filesystem.

Derek
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/773526#773526]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121101/c40bd8bf/attachment-0001.html 


More information about the jboss-user mailing list