nsCOMPtr<nsIURI> url; aDocument->GetDocumentURL(getter_AddRefs(url));
nsresult NS_NewXBLDocumentInfo(nsIDocument* aDocument, nsIXBLDocumentInfo** aResult){  nsCOMPtr<nsIURI> url;  aDocument->GetDocumentURL(getter_AddRefs(url));    nsCAutoString str;  url->GetSpec(str);  *aResult = new nsXBLDocumentInfo(str.get(), aDocument);    NS_IF_ADDREF(*aResult);  return NS_OK;}