[ http://nagoya.apache.org/jira/browse/XALANJ-77?page=history ]

Henry Zongaro updated XALANJ-77:
--------------------------------

    Priority: Major  (was: Blocker)

> factory.newTemplates() returns null after DOMSource error
> ---------------------------------------------------------
>
>          Key: XALANJ-77
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-77
>      Project: XalanJ2
>         Type: Bug
>   Components: JAXP
>     Versions: 2.0.1
>  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://nagoya.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]

Reply via email to