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

http://issues.apache.org/bugzilla/show_bug.cgi?id=40022

           Summary: junitreport task unable to use stylesheets that have an
                    xsl:import tag
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: XSLTBug
          Severity: normal
          Priority: P2
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


When testing the junitreport task from fresh ant build from svn, I am unable 
to use a custom stylesheet that contains an xsl:import tag.
Maybe recent change that loads the stylesheet as resource in stead of as a 
file causes this (revision 418420, Fri Jun 30).

This still worked for recent checkouts from svn.

Stylesheet fragment:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
        xmlns:fo="http://www.w3.org/1999/XSL/Format";
        xmlns:stringutils="xalan://org.apache.tools.ant.util.StringUtils"
        version="1.0">


<xsl:import href="./extra-documentation.xsl"/>
.....



error:
[junitreport] java.lang.NullPointerException
[junitreport]   at org.apache.tools.ant.types.XMLCatalog.getCatalogResolver
(XMLC
atalog.java:477)
[junitreport]   at org.apache.tools.ant.types.XMLCatalog.resolve
(XMLCatalog.java
:416)
[junitreport]   at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFacto
ryImpl.loadSource(TransformerFactoryImpl.java:1063)
[junitreport]   at 
com.sun.org.apache.xalan.internal.xsltc.compiler.Import.parse
Contents(Import.java:71)
[junitreport]   at 
com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.p
arseOwnChildren(Stylesheet.java:590)
[junitreport]   at 
com.sun.org.apache.xalan.internal.xsltc.compiler.Stylesheet.p
arseContents(Stylesheet.java:562)
[junitreport]   at 
com.sun.org.apache.xalan.internal.xsltc.compiler.Parser.creat
eAST(Parser.java:380)
[junitreport]   at 
com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compil
e(XSLTC.java:325)
[junitreport]   at 
com.sun.org.apache.xalan.internal.xsltc.compiler.XSLTC.compil
e(XSLTC.java:410)
[junitreport]   at 
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFacto
ryImpl.newTemplates(TransformerFactoryImpl.java:791)
[junitreport]   at 
org.apache.tools.ant.taskdefs.optional.TraXLiaison.readTempla
tes(TraXLiaison.java:296)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to