xslURL = getXSLURLfromDoc(xmlSource, STYLESHEET_ATTRIBUTE, getMedia(request), processor);
xslURL = getXSLURLfromDoc(xmlSource, STYLESHEET_ATTRIBUTE, getMedia(request), tFactory);
  protected InputSource getStylesheet(Processor processor,									  HttpServletRequest request,                                      InputSource xmlSource,                                      ApplyXSLTListener listener)    throws ApplyXSLTException  {    try    {      //stylesheet URL from request      String xslURL = ((DefaultApplyXSLTProperties) ourDefaultParameters).getXSLRequestURL(request);      if (xslURL != null)        listener.out.println("Parsing XSL Stylesheet Document from request parameter: "                             + xslURL);      else      {        // find stylesheet from XML Document, Media tag preference        if (xmlSource != null){          listener.out.println("calling getXSLURLfromDoc and getMedia " + getMedia(request) );          xslURL = getXSLURLfromDoc(xmlSource, STYLESHEET_ATTRIBUTE, getMedia(request), processor);        }        if (xslURL != null)          listener.out.println("Parsing XSL Stylesheet Document from XML Document tag: " + xslURL);        else          // Configuration Default          if ((xslURL = ourDefaultParameters.getXSLurl(null)) != null)            listener.out.println("Parsing XSL Stylesheet Document from configuration: " + xslURL);      }      return new InputSource(xslURL);    }    catch (IOException ioe)    {      throw new ApplyXSLTException(ioe, HttpServletResponse.SC_NOT_FOUND);    }    catch (Exception e)    {      throw new ApplyXSLTException(e, HttpServletResponse.SC_INTERNAL_SERVER_ERROR);    }  }