nsAutoString newEmptyStr(empty ? trueStr : falseStr); nsAutoString emptyStr;
Value containerval; aMatch.mInstantiation.mBindings.GetBindingFor(aMatch.mRule->GetContainerVariable(), &containerval);
nsXULTemplateBuilder::SetEmpty(nsIContent *element, PRBool empty){    nsresult rv;    nsAutoString newEmptyStr(empty ? trueStr : falseStr);    nsAutoString emptyStr;    rv = element->GetAttribute(kNameSpaceID_None, nsXULAtoms::empty, emptyStr);    if (NS_FAILED(rv)) return rv;    if ((rv != NS_CONTENT_ATTR_HAS_VALUE) || (! emptyStr.Equals(newEmptyStr))) {        rv = element->SetAttribute(kNameSpaceID_None, nsXULAtoms::empty, newEmptyStr, PR_TRUE);        if (NS_FAILED(rv)) return rv;    }    return NS_OK;}