rv = gRDFService->GetResource(RDF_NAMESPACE_URI "type", &kRDF_type);
rv = gRDFService->GetResource(RDF_NAMESPACE_URI "type",       &kRDF_type); rv = gRDFService->GetResource(RDF_NAMESPACE_URI "instanceOf", &kRDF_instanceOf); rv = gRDFService->GetResource(RDF_NAMESPACE_URI "Alt",        &kRDF_Alt); rv = gRDFService->GetResource(RDF_NAMESPACE_URI "Bag",        &kRDF_Bag); rv = gRDFService->GetResource(RDF_NAMESPACE_URI "Seq",        &kRDF_Seq); rv = gRDFService->GetResource(RDF_NAMESPACE_URI "nextVal",    &kRDF_nextVal);
RDFContentSinkImpl::RDFContentSinkImpl()    : mText(nsnull),      mTextLength(0),      mTextSize(0),      mConstrainSize(PR_TRUE),      mNameSpaceStack(nsnull),      mRDFNameSpaceID(kNameSpaceID_Unknown),      mState(eRDFContentSinkState_InProlog),      mContextStack(nsnull),      mDocumentURL(nsnull),      mGenSym(0){    NS_INIT_REFCNT();    if (gRefCnt++ == 0) {        nsresult rv;        rv = nsServiceManager::GetService(kRDFServiceCID,                                          kIRDFServiceIID,                                          (nsISupports**) &gRDFService);        NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get RDF service");        if (NS_SUCCEEDED(rv)) {            rv = gRDFService->GetResource(RDF_NAMESPACE_URI "type", &kRDF_type);        }        rv = nsServiceManager::GetService(kRDFContainerUtilsCID,                                          nsIRDFContainerUtils::GetIID(),                                          (nsISupports**) &gRDFContainerUtils);        kAboutAtom       = NS_NewAtom("about");        kIdAtom          = NS_NewAtom("ID");        kAboutEachAtom   = NS_NewAtom("aboutEach");        kResourceAtom    = NS_NewAtom("resource");        kRDFAtom         = NS_NewAtom("RDF");        kDescriptionAtom = NS_NewAtom("Description");        kBagAtom         = NS_NewAtom("Bag");        kSeqAtom         = NS_NewAtom("Seq");        kAltAtom         = NS_NewAtom("Alt");        kLiAtom          = NS_NewAtom("li");    }#ifdef PR_LOGGING    if (! gLog)        gLog = PR_NewLogModule("nsRDFContentSink");#endif}