nsCAutoString str; aDocument->GetDocumentURL()->GetSpec(str);
NS_PRECONDITION(aDocument, "Must have a document!");
nsresult NS_NewXBLDocumentInfo(nsIDocument* aDocument, nsIXBLDocumentInfo** aResult){  nsCAutoString str;  aDocument->GetDocumentURL()->GetSpec(str);  *aResult = new nsXBLDocumentInfo(str.get(), aDocument);    NS_IF_ADDREF(*aResult);  return NS_OK;}