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="[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.


-- 
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]

Reply via email to