nsresult result=OpenContainer(aNode,aTag,aContext,aSink); if(NS_SUCCEEDED(result)) { PRInt32   theCount=aContext->GetCount(); eHTMLTags theGrandParentTag=aContext->TagAt(theCount-2); PRInt32   theCounter=aContext->IncrementCounter(theGrandParentTag);  nsString  theNumber; theNumber.AppendInt(theCounter); CTextToken theToken(theNumber); PRInt32 theLineNumber=0; nsCParserNode theNode(&theToken,theLineNumber); result=aSink->AddLeaf(theNode); } return result;
return NS_OK;
  virtual nsresult OpenContainerInContext(nsIParserNode *aNode,eHTMLTags aTag,nsDTDContext *aContext,nsIHTMLContentSink *aSink) {        OpenContext(aNode,aTag,aContext,aSink);    nsresult result=OpenContainer(aNode,aTag,aContext,aSink);    if(NS_SUCCEEDED(result)) {      PRInt32   theCount=aContext->GetCount();      eHTMLTags theGrandParentTag=aContext->TagAt(theCount-2);      PRInt32   theCounter=aContext->IncrementCounter(theGrandParentTag);      nsString  theNumber;      theNumber.AppendInt(theCounter);      CTextToken theToken(theNumber);      PRInt32 theLineNumber=0;      nsCParserNode theNode(&theToken,theLineNumber);      result=aSink->AddLeaf(theNode);    }    return result;  }