[ http://issues.apache.org/jira/browse/XALANJ-77?page=comments#action_12363183 ]
Brian Minchau commented on XALANJ-77: ------------------------------------- Bernie, this is a very old issue against XSLT4J 2.1.0. The most recent code is 2.7.0. Which version of XSLT4J are you seeing this problem with? Thanks, - Brian > factory.newTemplates() returns null after DOMSource error > --------------------------------------------------------- > > Key: XALANJ-77 > URL: http://issues.apache.org/jira/browse/XALANJ-77 > Project: XalanJ2 > Type: Bug > Components: JAXP > Versions: 2.1.0 > Environment: Operating System: All > Platform: PC > Reporter: Shane Curcuru > > TestID:ErrorListenerTest.java testCase3 or code similar to: > [error.xsl] > blah blah > <xsl:decimal-format name="myminus" minus-sign='_' /> > <xsl:decimal-format name="myminus" minus-sign='`' /> > blah blah > [code] > factory = TransformerFactory.newInstance(); > factory.setErrorListener(loggingErrorListener); > // Attempt to build templates from known-bad stylesheet > // Note SAX, Stream sources have error but still build valid Templates object > templates = factory.newTemplates(new DOMSource(xslNode)); > BUG templates object returned is null; should have either been a valid > Templates > object or thrown an exception. See the Javadoc for this method; it > explicitly > states it will never return null. > Note that this particular xsl error is reported as fatalError, however > similar > tests with a SAXSource or StreamSource work fine, and the Templates object > can > even be used to perform transformations. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
