if (NS_CONTENT_ATTR_HAS_VALUE == GetAttribute(kNameSpaceID_RDF, kIdAtom, uri)) {
if (NS_CONTENT_ATTR_HAS_VALUE == GetAttribute(kNameSpaceID_None, kIdAtom, uri)) {    if (nsnull != mDocument) { nsIURL* docURL = nsnull; mDocument->GetBaseURL(docURL); if (docURL) { const char* url; docURL->GetSpec(&url); rdf_PossiblyMakeAbsolute(url, uri); NS_RELEASE(docURL); } }
RDFElementImpl::GetResource(nsIRDFResource** aResource){    nsAutoString uri;    if (NS_CONTENT_ATTR_HAS_VALUE == GetAttribute(kNameSpaceID_RDF, kIdAtom, uri)) {        return gRDFService->GetUnicodeResource(uri, aResource);    }    *aResource = nsnull;    return NS_OK;}