DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12085>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12085

MalformedURLException when importing from stylesheet where system ID is not a valid URL

           Summary: MalformedURLException when importing from stylesheet
                    where system ID is not a valid URL
           Product: XalanJ2
           Version: 2.4Dx
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I tried the nightly build from 20020827 and found that there is a problem with 
xsl:import if the original stylesheet does not have a valid URL as system ID. 
Specifically, the line which tries to create a new URL for the imported 
stylesheet (currently line 113 in .../xsltc/compiler/Import.java) fails because 
the string currLoadedDoc is a malformed URL.

I worked around it by using full paths to the imported stylesheets and changing 
Import.java to not change the import path if the current document does not 
exist as a file, but this would of course cause problems with relative URLs to 
other things than local files.

Reply via email to