ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40022] New: - junitreport task unable to use stylesheets that have an xsl:import tag
Date Tue, 11 Jul 2006 23:18:22 GMT
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: j_cumps@yahoo.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message