зеркало из https://github.com/mozilla/pjs.git
bug 199484, xml pretty printing regressed, fix the contract ID for XSLT document transformer, r/sr=peterv
This commit is contained in:
Родитель
92be0f5be9
Коммит
2f3d5baa00
|
@ -784,7 +784,7 @@ nsresult
|
|||
nsXMLContentSink::LoadXSLStyleSheet(nsIURI* aUrl)
|
||||
{
|
||||
mXSLTProcessor =
|
||||
do_CreateInstance("@mozilla.org/document-transformer;1?type=text/xslt");
|
||||
do_CreateInstance("@mozilla.org/document-transformer;1?type=xslt");
|
||||
if (!mXSLTProcessor) {
|
||||
// No XSLT processor available, continue normal document loading
|
||||
return NS_OK;
|
||||
|
|
|
@ -148,7 +148,7 @@ nsXMLPrettyPrinter::PrettyPrint(nsIDocument* aDocument)
|
|||
|
||||
// Transform the document
|
||||
nsCOMPtr<nsIXSLTProcessor> transformer =
|
||||
do_CreateInstance("@mozilla.org/document-transformer;1?type=text/xsl", &rv);
|
||||
do_CreateInstance("@mozilla.org/document-transformer;1?type=xslt", &rv);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
rv = transformer->ImportStylesheet(xslDocument);
|
||||
|
|
|
@ -64,7 +64,7 @@ class nsIXMLContentSink;
|
|||
{ 0xbacd8ad0, 0x552f, 0x11d3, {0xa9, 0xf7, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74} }
|
||||
|
||||
#define TRANSFORMIIX_XSLT_PROCESSOR_CONTRACTID \
|
||||
"@mozilla.org/document-transformer;1?type=text/xslt"
|
||||
"@mozilla.org/document-transformer;1?type=xslt"
|
||||
|
||||
class txVariable : public txIGlobalParameter
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче