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

IO exception with included stylesheet in a subdirectory

           Summary: IO exception with included stylesheet in a subdirectory
           Product: XalanJ2
           Version: CurrentCVS
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The error when running 'test.xml' and 'test.xsl' is :
file:inc/newminus.xsl; Line #4; Column #44; XSLT Error
(javax.xml.transform.TransformerConfigurationException):
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: Had IO Exception with stylesheet file:
file:periodgroup.xsl

Saxon and Xsltc do not have a problem with the stylesheet, only Xalan.
Here are the stylesheets to reproduce the problem:

test.xml
--------------
<?xml version="1.0"?>
<doc>
</doc>

test.xsl
-----------------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">

<xsl:include href="file:inc/newminus.xsl"/>

<xsl:template match="doc">
</xsl:template>

</xsl:stylesheet>


In a subdirectory 'inc', these files are:

newminus.xsl
------------
<?xml version="1.0"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">

  <xsl:import href="file:periodgroup.xsl"/>

</xsl:stylesheet>

periodgroup.xsl
---------------
<?xml version="1.0"?> 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">

</xsl:stylesheet>

Reply via email to