sboag       00/06/24 11:39:25

  Modified:    java/src/org/apache/xalan/xpath XPathContext.java
  Log:
  Use Strings instead of URLs.
  
  Revision  Changes    Path
  1.2       +2 -12     
xml-xalan/java/src/org/apache/xalan/xpath/XPathContext.java
  
  Index: XPathContext.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/xpath/XPathContext.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XPathContext.java 2000/06/19 16:53:25     1.1
  +++ XPathContext.java 2000/06/24 18:39:25     1.2
  @@ -60,9 +60,6 @@
   import java.io.File;
   import java.io.IOException;
   
  -import java.net.URL;
  -import java.net.MalformedURLException;
  -
   import java.util.Stack;
   
   // Xalan imports
  @@ -322,7 +319,7 @@
      * @exception XSLProcessorException thrown if the active ProblemListener 
and XPathContext decide 
      * the error condition is severe enough to halt processing.
      */
  -  public URL getURLFromString(String urlString, String base)
  +  public String getAbsoluteURI(String urlString, String base)
       throws SAXException 
     {
       InputSource inputSource;
  @@ -336,14 +333,7 @@
         throw new SAXException(ioe);
       }
       // System.out.println("url: "+url.toString());
  -    try
  -    {
  -      return new URL(inputSource.getSystemId());
  -    }
  -    catch(MalformedURLException mue)
  -    {
  -      throw new SAXException(mue);
  -    }
  +    return inputSource.getSystemId();
     }
     
     private static XSLMessages m_XSLMessages = new XSLMessages();
  
  
  

Reply via email to