return NS_OK;
return GetResource(aNameSpaceID, attr, aResult);
nsXULContentUtils::GetResource(PRInt32 aNameSpaceID, const nsString& aAttribute, nsIRDFResource** aResult){    // construct a fully-qualified URI from the namespace/tag pair.    // XXX should we allow nodes with no namespace???    //NS_PRECONDITION(aNameSpaceID != kNameSpaceID_Unknown, "no namespace");    //if (aNameSpaceID == kNameSpaceID_Unknown)    //    return NS_ERROR_UNEXPECTED;    nsresult rv;    PRUnichar buf[256];    nsAutoString uri(CBufDescriptor(buf, PR_TRUE, sizeof(buf) / sizeof(PRUnichar), 0));    if (aNameSpaceID != kNameSpaceID_Unknown && aNameSpaceID != kNameSpaceID_None) {        rv = gNameSpaceManager->GetNameSpaceURI(aNameSpaceID, uri);        // XXX ignore failure; treat as "no namespace"    }    // XXX check to see if we need to insert a '/' or a '#'. Oy.    if (uri.Length() > 0 && uri.Last() != '#' && uri.Last() != '/' && aAttribute.First() != '#')        uri.Append('#');    uri.Append(aAttribute);    rv = gRDF->GetUnicodeResource(uri.GetUnicode(), aResult);    NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get resource");    if (NS_FAILED(rv)) return rv;    return NS_OK;}