nsIDocument *document = GetCurrentDoc();
nsIDocument *document = GetOwnerDoc();
nsXMLStylesheetPI::GetStyleSheetURL(PRBool* aIsInline,                                    nsIURI** aURI){  *aIsInline = PR_FALSE;  *aURI = nsnull;  nsAutoString href;  GetAttrValue(NS_LITERAL_STRING("href"), href);  if (href.IsEmpty()) {    return;  }  nsIURI *baseURL;  nsCAutoString charset;  nsIDocument *document = GetCurrentDoc();  if (document) {    baseURL = document->GetBaseURI();    charset = document->GetDocumentCharacterSet();  } else {    baseURL = nsnull;  }  NS_NewURI(aURI, href, charset.get(), baseURL);}