xsl:include / xsl:import question
Posted: Tue Jul 11, 2006 12:25 am
Hi.. here's my question :
I'm developing a Struts App that produces a XML that is transformed via XSLT to the final html page.
When I deploy my webapp things work as expected. However, the problem arises when using oXygen for create / debug the xsl. Inside oXygen (thru eclipse), all my <xsl:import> or <xsl:include> give me a java.io.FileNotFoundException.
This problem only happens when using the URI relative to tomcat (i.e. <xsl:include href="/resources/xsl/login.xsl"> ).
If I use relative paths the problem goes away, but then I have to go thru all the XSL changing back the imports and exports to the original paths when re-deploying to Tomcat.
I already browsed the oXygen forum looking for an answer and also tried Googleing for a similar issue and possible answer....
Any help would be appreciated.
Daniel
I'm developing a Struts App that produces a XML that is transformed via XSLT to the final html page.
When I deploy my webapp things work as expected. However, the problem arises when using oXygen for create / debug the xsl. Inside oXygen (thru eclipse), all my <xsl:import> or <xsl:include> give me a java.io.FileNotFoundException.
This problem only happens when using the URI relative to tomcat (i.e. <xsl:include href="/resources/xsl/login.xsl"> ).
If I use relative paths the problem goes away, but then I have to go thru all the XSL changing back the imports and exports to the original paths when re-deploying to Tomcat.
I already browsed the oXygen forum looking for an answer and also tried Googleing for a similar issue and possible answer....
Any help would be appreciated.
Daniel