You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Davd Hubbard (JIRA)" <xa...@xml.apache.org> on 2005/05/13 20:21:05 UTC
[jira] Created: (XALANC-517) Probelm listener not called with stylesheet errors
Probelm listener not called with stylesheet errors
--------------------------------------------------
Key: XALANC-517
URL: http://issues.apache.org/jira/browse/XALANC-517
Project: XalanC
Type: Bug
Components: XalanC
Versions: 1.9
Environment: windows xp sp2, intel mobile pentium
Reporter: Davd Hubbard
Using xalan 1.7 and 1.9 I have added a problem listener and it is never called. The code to add is shown below with a small test to check if my listener is installed.
err = new KXMLErrorHandler();
problem = new MyProblemListener();
fXSLProcessor.setProblemListener( (ProblemListener *) problem );
fXSLProcessor.setErrorHandler( err );
retProblem = fXSLProcessor.getProblemListener();
if ( retProblem != (ProblemListener*) problem )
{
int t=0;
t++;
}
I am using the XalanTransformerProblemListener code for MyProblemListener and the method problem is never called. A snippet of the error stylesheet is shown below:
<xsl:template match="llnode">
<!-- xsl error add node name to attribute -->
<li><b><xsl:value-of select="llnode@name"/></b></li>
<ul>
<li>Created by <i><xsl:value-of select="@createdbyname"/></i></li>
</ul>
</xsl:template>
The xml node, llnode, has the attributes name and created by name. When I transform the code using xalan.exe the error is reported, but in my application the error is never reported. I have also used xalanc 1.9 and get the same results.
--
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org