filePath = aURL.getFile();
aURL.getFile(filePath);
TX_CompileStylesheetPath(const txParsedURL& aURL, txStylesheet** aResult){    *aResult = nsnull;    nsAutoString errMsg, filePath;    filePath = aURL.getFile();    PR_LOG(txLog::xslt, PR_LOG_ALWAYS,           ("TX_CompileStylesheetPath: %s\n",            NS_LossyConvertUCS2toASCII(filePath).get()));    istream* xslInput = URIUtils::getInputStream(filePath, errMsg);    if (!xslInput) {        return NS_ERROR_FAILURE;    }    nsRefPtr<txDriver> driver = new txDriver();    if (!driver) {        return NS_ERROR_OUT_OF_MEMORY;    }    nsAutoString spec = filePath;    if (!aURL.mRef.IsEmpty()) {        spec.Append(PRUnichar('#'));        spec.Append(aURL.mRef);    }    driver->mCompiler =  new txStylesheetCompiler(spec, driver);    if (!driver->mCompiler) {        return NS_ERROR_OUT_OF_MEMORY;    }    nsresult rv = driver->parse(*xslInput, filePath);    if (NS_FAILED(rv)) {        return rv;    };    *aResult = driver->mCompiler->getStylesheet();    NS_ADDREF(*aResult);    return NS_OK;}