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

Stylesheet with xsl:include does not compile

           Summary: Stylesheet with xsl:include does not compile
           Product: XalanJ2
           Version: 2.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Xalan-Xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have a style sheet with xsl:include of other sheets. The given URL are
absolute file paths like in the following exemple:
<xsl:include
href="file:/E:/build/Dev/Studio/tools/allGenerate/com/calendra/mg/uiguidelines/BorderProperty/BorderProperty_css.xsl"/>

When I am executing the following line, all works fine:
  SAXfactory = (SAXTransformerFactory)TransformerFactory.newInstance();
  Template template = SAXfactory.newTemplates(new StreamSource(<main xsl URL>));

But when I am executing 
  SAXfactory = (SAXTransformerFactory)TransformerFactory.newInstance();
  Template template = SAXfactory.newTemplates(new StreamSource(new
FileInputStream(<main xsl URL>)));
I have a javax.xml.transform.TransformerConfigurationException. XSLTC can't
find the included files while their URL are absolute paths.

I need to execute 
  Template template = SAXfactory.newTemplates(new StreamSource(new
FileInputStream(<main xsl URL>), <main xsl directory path)));
to make it compile the sheet.

The bug also occurs when using XMLFilter.

The problem is that the interpretive xalan works fine without the above change
in the code.

Reply via email to