[ https://issues.apache.org/jira/browse/XALANJ-2401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529199 ]
Robert Koberg commented on XALANJ-2401: --------------------------------------- OK. Sorry for not being clear and having the mistakes. When you run the transform are you creating a compiled class and using that for the transform? The problem seems to occur when compiling the class -- it cannot find the import. It seems to always base resolution off of the XSL file and does not look at the TemplatesResolver. When I just run it, it works (maybe because I was using Xalan interpretve, but I thought the default is XSLTC as it comes first in the classloader).. I see this problem in my webapp (which tries to do the compile) and tried to whittle it down for testing purposes. The strange thing is that my webapp runs fine with xalan-j and saxon, but cannot resolve xsl:import/includes when using XSLTC. > compiled translets cannot resolve xsl:import/include with custom URIresolver > ---------------------------------------------------------------------------- > > Key: XALANJ-2401 > URL: https://issues.apache.org/jira/browse/XALANJ-2401 > Project: XalanJ2 > Issue Type: Bug > Components: XSLTC > Affects Versions: 2.7.1 > Environment: Ubuntu, Sun JDK1.5 > Reporter: Robert Koberg > Priority: Minor > Attachments: xsltc-test.zip > > > Attached is a test case. It works when run using the main method, but if your > try to precompile the translet you get an error: > $ java -cp > ../lib/xalan.jar:../lib/xercesImpl.jar:../lib/xml-apis.jar:../lib/serializer.jar > org.apache.xalan.xsltc.cmdline.Compile ../docroot/main.xsl > Compiler errors: > /home/rkoberg/workspace/xsltc-test/docroot/import.xsl (No such file or > directory) > $ java -cp > ../lib/xalan.jar:../lib/xercesImpl.jar:../lib/xml-apis.jar:../lib/serializer.jar > org.apache.xalan.xsltc.cmdline.Compile ../docroot/main.xsl > Compiler errors: > /home/rkoberg/workspace/xsltc-test/docroot/import.xsl (No such file or > directory) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]