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=20537>.
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=20537

Import and Include from imported/included stylesheets fails: parsed stylesheets' 
systemID incorrectly set

           Summary: Import and Include from imported/included stylesheets
                    fails: parsed stylesheets' systemID incorrectly set
           Product: XalanJ2
           Version: CurrentCVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In the parseContents(Parser) methods, both Import and Include will set the
imported/included stylesheet's systemID to docToLoad which is retrieved from the
href attribute (which can be relative). This causes further inclusion/import
attempts to fail because the input source is resolved based on those relative URIs.

changing the line (they are identical in the 2 classes)
    _included.setSystemId(docToLoad);
to:
    _included.setSystemId(input.getSystemId());
seemed to fix this problem for me.

Reply via email to