Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JBoss - XSLT import relative path problem

Thread Tools

JBoss - XSLT import relative path problem

Posts: n/a
Hello everybody,

I have XSLT inside my war, it's here:

so I can access it with getClass().getResourceStream() and use it
- not a problem

but inside Menu.xsl I'm importing commons.xsl
this file is also located in my war file:

JBoss can't see this file when I use this XSLT directive:
<xsl:include href="../utils/main.xsl"/>

but when I set full path to this XSLT file it works just fine!

<xsl:include href="/home/xh/jee/projects/jboss/src/xsl/utils/main.xsl"/

but full path is the worst of all solutions

does any one know how to deal with XSLT import paths in JBoss?

best regards

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Py3: Import relative path module Gnarlodious Python 17 11-04-2010 02:48 AM
xsl:import with relative path and jar packaging problem Symon Java 1 05-15-2006 04:58 PM
xsl:import not working when using relative path on AIX 5.2 XML 0 09-22-2005 01:11 PM
xsl:import not working when using relative path on AIX 5.2 Java 0 09-22-2005 01:10 PM
absolute path versus relative path in JSP Matt Java 3 07-08-2004 08:31 PM