tree->SetAttribute(kNameSpaceID_RDF, kResource2Atom, sortResource2, PR_FALSE); else	tree->UnsetAttribute(kNameSpaceID_RDF, kResource2Atom, PR_FALSE);
tree->SetAttribute(kNameSpaceID_None, kResource2Atom, sortResource2, PR_FALSE); else	tree->UnsetAttribute(kNameSpaceID_None, kResource2Atom, PR_FALSE);
XULSortServiceImpl::SetSortHints(nsIContent *tree, const nsString &sortResource, const nsString &sortDirection,				const nsString &sortResource2, PRBool inbetweenSeparatorSort, PRBool found){	if (found == PR_TRUE)	{		// set hints on tree root node		tree->SetAttribute(kNameSpaceID_None, kSortActiveAtom, trueStr, PR_FALSE);		tree->SetAttribute(kNameSpaceID_None, kSortDirectionAtom, sortDirection, PR_FALSE);		tree->SetAttribute(kNameSpaceID_RDF, kResourceAtom, sortResource, PR_FALSE);		if (sortResource2.Length() > 0)			tree->SetAttribute(kNameSpaceID_RDF, kResource2Atom, sortResource2, PR_FALSE);		else	tree->UnsetAttribute(kNameSpaceID_RDF, kResource2Atom, PR_FALSE);	}	else	{		tree->UnsetAttribute(kNameSpaceID_None, kSortActiveAtom, PR_FALSE);		tree->UnsetAttribute(kNameSpaceID_None, kSortDirectionAtom, PR_FALSE);		tree->UnsetAttribute(kNameSpaceID_RDF, kResourceAtom, PR_FALSE);		tree->UnsetAttribute(kNameSpaceID_RDF, kResource2Atom, PR_FALSE);	}	// optional hint	if (inbetweenSeparatorSort == PR_TRUE)		tree->SetAttribute(kNameSpaceID_None, kSortSeparatorsAtom, trueStr, PR_FALSE);	else	tree->UnsetAttribute(kNameSpaceID_None, kSortSeparatorsAtom, PR_FALSE);	return(NS_OK);}