The following issue has been updated:
Updater: Brian Minchau (mailto:[EMAIL PROTECTED])
Date: Sat, 4 Sep 2004 10:51 AM
Changes:
assignee changed from Xalan Developers Mailing List
description changed from 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. to 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.
environment changed from Operating System: All
Platform: PC to Operating System: All
Platform: PC
priority changed to Blocker
Component changed to JAXP
Component changed from Xalan-interpretive parser
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/XALANJ-77?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XALANJ-77
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XALANJ-77
Summary: factory.newTemplates() returns null after DOMSource error
Type: Bug
Status: Unassigned
Priority: Blocker
Project: XalanJ2
Components:
JAXP
Versions:
2.0.1
Assignee:
Reporter: Shane Curcuru
Created: Wed, 21 Mar 2001 7:21 AM
Updated: Sat, 4 Sep 2004 10:51 AM
Environment: Operating System: All
Platform: PC
Description:
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.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]