[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xalan-j-users
Subject:    Re: ErrorListener
From:       "Santiago Pericas-Geertsen" <Santiago.PericasGeertsen () sun ! com>
Date:       2002-11-26 19:05:09
[Download RAW message or body]

Ranjit:

 I don't think the JAXP specification says anything about xsl:message reporting \
messages as warnings. The warning() callback is used exclusively to report \
compile-time warnings in XSLTC. You can always submit a bug/enhancement here:

http://nagoya.apache.org/bugzilla/

 Hope this helps.

-- Santiago
  ----- Original Message ----- 
  From: Ranjit Gopalan 
  To: xalan-j-users@xml.apache.org 
  Sent: Tuesday, November 26, 2002 12:23 PM
  Subject: ErrorListener


  Hi all,

  I am using xsltc. I am trying to implement a custom errorlistener implementing \
errorlistener  ErrorListener customerrorListener = new \
CxTransformationErrorListener();

  transformer.setErrorListener(customeerrorListener);


  It works for <xsl:message terminate="yes">, it is able to execute the error method \
in my customerrorlistener,  but when i use xsl:message without terminate="yes" it is \
not able to execute the implementation in warning method of my customerrorlistener. \
any body who could provide me insights into this problem.

  thanks in advance

  Ranjit


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2719.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Ranjit:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;I don't think the JAXP specification says anything about 
xsl:message reporting messages as warnings. The warning() callback is used 
exclusively to report compile-time warnings in XSLTC. You can always submit a 
bug/enhancement here:</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2><A 
href="http://nagoya.apache.org/bugzilla/">http://nagoya.apache.org/bugzilla/</A></FONT></DIV>
 <DIV>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp;Hope this helps.</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>-- Santiago</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 \
2px solid; MARGIN-RIGHT: 0px">  <DIV style="FONT: 10pt arial">----- Original Message \
----- </DIV>  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=RGopalan@SELECTICA.com href="mailto:RGopalan@SELECTICA.com">Ranjit 
  Gopalan</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=xalan-j-users@xml.apache.org 
  href="mailto:xalan-j-users@xml.apache.org">xalan-j-users@xml.apache.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, November 26, 2002 12:23 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> ErrorListener</DIV>
  <DIV><BR></DIV>
  <DIV><SPAN class=929172017-26112002><FONT face=Arial size=2>Hi 
  all,</FONT></SPAN></DIV>
  <DIV><SPAN class=929172017-26112002><FONT face=Arial 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=929172017-26112002><FONT face=Arial size=2>I am using xsltc. 
  I am trying to implement&nbsp;a custom errorlistener implementing 
  errorlistener</FONT></SPAN></DIV>
  <DIV><SPAN class=929172017-26112002>
  <P><FONT size=2>ErrorListener<SPAN class=929172017-26112002> 
  custom</SPAN>errorListener = <B><FONT color=#7f0055>new</B></FONT></FONT><FONT 
  size=2> CxTransformationErrorListener();</FONT></P>
  <P></SPAN><SPAN class=929172017-26112002><FONT size=2><SPAN 
  class=929172017-26112002>transformer</SPAN>.setErrorListener(customeerrorListener);</FONT></SPAN></P></DIV>
  <DIV><SPAN class=929172017-26112002><FONT size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=929172017-26112002><FONT size=2>It works for &lt;xsl:message 
  terminate="yes"&gt;, it is able to execute the error method in my 
  customerrorlistener,&nbsp; but when i use xsl:message without terminate="yes" 
  it is not able to execute the implementation in warning method of my 
  customerrorlistener. any body who could provide me insights into this 
  problem.</FONT></SPAN></DIV>
  <DIV><SPAN class=929172017-26112002><FONT size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=929172017-26112002><FONT size=2>thanks in 
  advance</FONT></SPAN></DIV>
  <DIV><SPAN class=929172017-26112002><FONT size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=929172017-26112002><FONT size=2>Ranjit</FONT></DIV>
  <P><FONT size=2></FONT>&nbsp;</P></BLOCKQUOTE></SPAN></BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic