xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sb...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/transformer TransformerImpl.java
Date Wed, 27 Mar 2002 22:14:13 GMT
sboag       02/03/27 14:14:13

  Modified:    java/src/org/apache/xalan/transformer TransformerImpl.java
  Log:
  Fix problem with the SAXSourceLocator not getting the line number info.
  
  Revision  Changes    Path
  1.128     +9 -1      xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java
  
  Index: TransformerImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/transformer/TransformerImpl.java,v
  retrieving revision 1.127
  retrieving revision 1.128
  diff -u -r1.127 -r1.128
  --- TransformerImpl.java	24 Mar 2002 13:50:12 -0000	1.127
  +++ TransformerImpl.java	27 Mar 2002 22:14:13 -0000	1.128
  @@ -1205,8 +1205,16 @@
             {
               if(se instanceof org.xml.sax.SAXParseException)
                 m_resultTreeHandler.fatalError((org.xml.sax.SAXParseException)se);
  +            else if(se instanceof TransformerException)
  +            {
  +              TransformerException te = ((TransformerException)se);
  +              SAXSourceLocator sl = new SAXSourceLocator( te.getLocator() );
  +              m_resultTreeHandler.fatalError(new org.xml.sax.SAXParseException(te.getMessage(),
sl, te)); 
  +            }
               else
  -              m_resultTreeHandler.fatalError(new org.xml.sax.SAXParseException(se.getMessage(),
new SAXSourceLocator(), se));              
  +            {
  +              m_resultTreeHandler.fatalError(new org.xml.sax.SAXParseException(se.getMessage(),
new SAXSourceLocator(), se)); 
  +            }             
             }
             catch (Exception e){}
           }        
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message