No problem. I was hoping I was doing
something wrong.
From: Dmitry Hayes
[mailto:[EMAIL PROTECTED]
Sent: Friday, May 13, 2005 10:19
AM
To: [email protected]
Subject: Re: problem with
setProblemListener
Sounds like a defect . Can you pls open a JIRA issue .
Thanks!
Dmitry
Hayes
XSLT Development
IBM Toronto Lab
Phone: 905-413-3820
E-mail: [EMAIL PROTECTED]
|
"David Hubbard"
<[EMAIL PROTECTED]>
05/13/2005 11:09 AM
|
Please
respond to
xalan-c-users
|
|
|
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
|