|
Using xalan 1.7 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="[EMAIL PROTECTED]"/></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. Does anyone know what the problem
might be? Thanks any help would be appreciated David Hubbard |
- Re: problem with setProblemListener David Hubbard
- Re: problem with setProblemListener Dmitry Hayes
- RE: problem with setProblemListener David Hubbard
