You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by tm...@apache.org on 2001/06/05 15:02:12 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/runtime TransformerFactoryImpl.java

tmiller     01/06/05 06:02:12

  Modified:    java/src/org/apache/xalan/xsltc/runtime
                        TransformerFactoryImpl.java
  Log:
  stylesheet compilation error listening added for
  TrAX support
  
  Revision  Changes    Path
  1.4       +14 -5     xml-xalan/java/src/org/apache/xalan/xsltc/runtime/TransformerFactoryImpl.java
  
  Index: TransformerFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/runtime/TransformerFactoryImpl.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TransformerFactoryImpl.java	2001/05/15 18:53:31	1.3
  +++ TransformerFactoryImpl.java	2001/06/05 13:02:10	1.4
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: TransformerFactoryImpl.java,v 1.3 2001/05/15 18:53:31 tmiller Exp $
  + * @(#)$Id: TransformerFactoryImpl.java,v 1.4 2001/06/05 13:02:10 tmiller Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -156,14 +156,20 @@
       ////////////////////////////////////////////////////// 
       // TransformerFactory
       //
  -    public ErrorListener getErrorListener() { /*TBD*/ return null; }
  +    public ErrorListener getErrorListener() { 
  +	/*TBD*/ 
  +        /* return null;  */
  +	return _errorListener;
  +    }
       public void setErrorListener(ErrorListener listener) 
   	throws IllegalArgumentException
       {
  +	_errorListener = listener;
   	/*TBD*/   
  -        throw new IllegalArgumentException(
  +        /*throw new IllegalArgumentException(
               "TransformerFactoryImpl:setErrorListener(ErrorListener) " +
               "not implemented yet.");
  +	*/
       }
       public Object getAttribute(String name) 
   	throws IllegalArgumentException
  @@ -232,7 +238,8 @@
   	try {
   	    File file = new File(stylesheetName);
   	    URL url = file.toURL();
  -	    isSuccessful = xsltc.compile(url);
  +	    // GTM isSuccessful = xsltc.compile(url);
  +	    isSuccessful = xsltc.compile(url, _errorListener); // GTM
   	} catch (MalformedURLException e) {
   	    throw new TransformerConfigurationException(
   		"URL for stylesheet '" + stylesheetName + 
  @@ -267,5 +274,7 @@
          TransformerConfigurationException 
       {
   	return new TransletTemplates(stylesheet);
  -    } 
  +    }
  +
  +    private ErrorListener _errorListener = null; 
   }
  
  
  

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