xs->RegisterExceptionProvider(sXPathExceptionProvider,
xs->RegisterExceptionProvider(gXPathExceptionProvider,
Initialize(nsIModule* aSelf){    NS_PRECONDITION(!gInitialized, "module already initialized");    if (gInitialized)        return NS_OK;    gInitialized = PR_TRUE;    sXPathExceptionProvider = new nsXPathExceptionProvider();    if (!sXPathExceptionProvider)        return NS_ERROR_OUT_OF_MEMORY;    NS_ADDREF(sXPathExceptionProvider);    nsCOMPtr<nsIExceptionService> xs =        do_GetService(NS_EXCEPTIONSERVICE_CONTRACTID);    if (xs)        xs->RegisterExceptionProvider(sXPathExceptionProvider,                                      NS_ERROR_MODULE_DOM_XPATH);    if (!txXSLTProcessor::txInit()) {        return NS_ERROR_OUT_OF_MEMORY;    }    nsresult rv = CallGetService(NS_SCRIPTSECURITYMANAGER_CONTRACTID,                                 &gTxSecurityManager);    if (NS_FAILED(rv)) {        gTxSecurityManager = nsnull;        return rv;    }    TX_LG_CREATE;    return NS_OK;}