JBoss - XSLT import relative path problem

X

Xh

Hello everybody,

I have XSLT inside my war, it's here:
/WEB-INF/classes/xsl/main/Menu.xsl

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:
/WEB-INF/classes/xsl/utils/commons.xsl

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
Åukasz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top