context.getTransformer().getMsgMgr().error(elem,
context.getTransformer().getMsgMgr().error(elem, elem,
  private String getFilename(XSLProcessorContext context, ElemExtensionCall elem)    throws java.net.MalformedURLException,    java.io.FileNotFoundException,    java.io.IOException,    javax.xml.transform.TransformerException  {    String fileName;    String fileNameExpr       = ((ElemExtensionCall)elem).getAttribute ("select",                                                 context.getContextNode(),                                                 context.getTransformer());    if(null != fileNameExpr)    {      org.apache.xpath.XPathContext xctxt         = context.getTransformer().getXPathContext();      XPath myxpath = new XPath(fileNameExpr, elem, xctxt.getNamespaceContext(), XPath.SELECT);      XObject xobj = myxpath.execute(xctxt, context.getContextNode(), xctxt.getNamespaceContext());      fileName = xobj.str();      if((null == fileName) || (fileName.length() == 0))      {        fileName = elem.getAttribute ("file",                                       context.getContextNode(),                                       context.getTransformer());      }    }    else    {      fileName = elem.getAttribute ("file", context.getContextNode(),                                                                context.getTransformer());    }    if(null == fileName)    {      context.getTransformer().getMsgMgr().error(elem,                                      context.getContextNode(),                                      XSLTErrorResources.ER_REDIRECT_COULDNT_GET_FILENAME);                              //"Redirect extension: Could not get filename - file or select attribute must return vald string.");    }    return fileName;  }