tmiller     01/06/05 06:01:27

  Modified:    java/src/org/apache/xalan/xsltc/compiler XSLTC.java
  Log:
  stylesheet compilation error listening added for
  TrAX support
  
  Revision  Changes    Path
  1.4       +16 -2     
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/XSLTC.java
  
  Index: XSLTC.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/XSLTC.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- XSLTC.java        2001/05/02 10:25:19     1.3
  +++ XSLTC.java        2001/06/05 13:01:24     1.4
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: XSLTC.java,v 1.3 2001/05/02 10:25:19 morten Exp $
  + * @(#)$Id: XSLTC.java,v 1.4 2001/06/05 13:01:24 tmiller Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -81,6 +81,8 @@
   
   import javax.xml.parsers.*;
   
  +import javax.xml.transform.ErrorListener;
  +
   import org.w3c.dom.Element;
   import org.xml.sax.*;
   
  @@ -173,8 +175,20 @@
       /**
        * Compiles the stylesheet into Java bytecode. Returns 'true' if the
        * compilation was successful - 'false' otherwise.
  +     */
  +    public boolean compile(URL stylesheet) { 
  +     return compile(stylesheet, null);   
  +    }
  +
  +    /**
  +     * Compile stylesheet into Java bytecode. Returns 'true' if compilation
  +     * is successful. - 'false' otherwise. ErrorListener arg (may be null)
  +     * added to support TrAX API.
        */
  -    public boolean compile(URL stylesheet) {
  +    public boolean compile(URL stylesheet, ErrorListener elistener) {
  +     if (elistener != null) {
  +         _parser.setErrorListener(elistener);
  +     }
        try {
            reset();
            final String name = stylesheet.getFile();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to