nsAutoPtr<txPattern> match(new txRootPattern(MB_TRUE));
nsAutoPtr<txPattern> match(new txRootPattern());
txFnStartLREStylesheet(PRInt32 aNamespaceID,                       nsIAtom* aLocalName,                       nsIAtom* aPrefix,                       txStylesheetAttr* aAttributes,                       PRInt32 aAttrCount,                       txStylesheetCompilerState& aState){    txStylesheetAttr* attr;    nsresult rv = getStyleAttr(aAttributes, aAttrCount, kNameSpaceID_XSLT,                               txXSLTAtoms::version, PR_TRUE, &attr);    NS_ENSURE_SUCCESS(rv, rv);    txExpandedName nullExpr;    double prio = Double::NaN;    nsAutoPtr<txPattern> match(new txRootPattern(MB_TRUE));    NS_ENSURE_TRUE(match, NS_ERROR_OUT_OF_MEMORY);    nsAutoPtr<txTemplateItem> templ(new txTemplateItem(match, nullExpr,                                                       nullExpr, prio));    NS_ENSURE_TRUE(templ, NS_ERROR_OUT_OF_MEMORY);    aState.openInstructionContainer(templ);    rv = aState.addToplevelItem(templ);    NS_ENSURE_SUCCESS(rv, rv);    templ.forget();    rv = aState.pushHandlerTable(gTxTemplateHandler);    NS_ENSURE_SUCCESS(rv, rv);        return txFnStartLRE(aNamespaceID, aLocalName, aPrefix, aAttributes,                        aAttrCount, aState);}