You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/06/06 04:42:54 UTC

DO NOT REPLY [Bug 20537] New: - Import and Include from imported/included stylesheets fails: parsed stylesheets' systemID incorrectly set

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: xalan-dev@xml.apache.org
        ReportedBy: samc@atnet.net.au


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.