You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@apache.org on 2001/01/11 22:43:57 UTC

cvs commit: xml-xalan/java/compat_src/org/apache/xalan/xslt StylesheetRoot.java XSLTEngineImpl.java

mmidy       01/01/11 13:43:57

  Modified:    java/compat_src/org/apache/xalan/xslt StylesheetRoot.java
                        XSLTEngineImpl.java
  Log:
  fix constructors
  
  Revision  Changes    Path
  1.2       +5 -9      xml-xalan/java/compat_src/org/apache/xalan/xslt/StylesheetRoot.java
  
  Index: StylesheetRoot.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/compat_src/org/apache/xalan/xslt/StylesheetRoot.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StylesheetRoot.java	2001/01/11 19:29:07	1.1
  +++ StylesheetRoot.java	2001/01/11 21:43:55	1.2
  @@ -97,16 +97,12 @@
                           String baseIdentifier)
       throws TransformerConfigurationException
     {   
  -    m_sRootObject = new org.apache.xalan.templates.StylesheetRoot(); 
  -    m_liaisonClassUsedToCreate = ((Object)processor.getXMLProcessorLiaison()).getClass().getName();
  +    m_sRootObject = new org.apache.xalan.templates.StylesheetRoot(processor.getTransformerFactory().getErrorListener()); 
  +    if (processor.getXMLProcessorLiaison()!= null)
  +      m_liaisonClassUsedToCreate = ((Object)processor.getXMLProcessorLiaison()).getClass().getName();
       
  -  }
  -  
  -  public StylesheetRoot()
  -    throws TransformerConfigurationException
  -  {   
  -    m_sRootObject = new org.apache.xalan.templates.StylesheetRoot();     
  -  }
  +  }  
  +
   
     /**
      * Constructor using an org.apache.xalan.templates.StylesheetRoot.
  
  
  
  1.2       +3 -2      xml-xalan/java/compat_src/org/apache/xalan/xslt/XSLTEngineImpl.java
  
  Index: XSLTEngineImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/compat_src/org/apache/xalan/xslt/XSLTEngineImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XSLTEngineImpl.java	2001/01/11 19:29:08	1.1
  +++ XSLTEngineImpl.java	2001/01/11 21:43:55	1.2
  @@ -86,6 +86,7 @@
   import javax.xml.transform.sax.SAXSource;
   import javax.xml.transform.sax.TransformerHandler;
   import javax.xml.transform.stream.StreamResult;
  +import javax.xml.transform.ErrorListener;
   
   import java.util.*;
   import java.net.*;
  @@ -535,7 +536,7 @@
     {
       try{
         if (baseIdentifier == null)
  -        return new StylesheetRoot(); //this, baseIdentifier); 
  +        return new StylesheetRoot(this, baseIdentifier); 
         
         Source inSource = new XSLTInputSource(baseIdentifier).getSourceObject();
         Templates templates = m_tfactory.newTemplates(inSource);
  @@ -810,7 +811,7 @@
         // What's the right way to do this?
   
         // Create a XPath parser.
  -      XPathParser parser = new XPathParser();
  +      XPathParser parser = new XPathParser((ErrorListener)m_problemListener.getErrorHandler(), null);
         XPathContext xpathContext = new XPathContext();
         PrefixResolverDefault nsNode = new PrefixResolverDefault(fragBase); //xpathContext.getNamespaceContext();