Make sure the ifdef XSLT is present for Panther.
authorhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Aug 2004 20:39:38 +0000 (20:39 +0000)
committerhyatt <hyatt@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 24 Aug 2004 20:39:38 +0000 (20:39 +0000)
        * khtml/xml/xml_tokenizer.cpp:
        (khtml::XMLTokenizer::insertErrorMessageBlock):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7341 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/xml/xml_tokenizer.cpp

index 74a24e8db6e28e4e4511b2f6dc39f11f2eb940c7..10545716bd8694841fbde83ad7e55b6155329934 100644 (file)
@@ -1,3 +1,10 @@
+2004-08-24  David Hyatt  <hyatt@apple.com>
+
+       Make sure the ifdef XSLT is present for Panther.
+       
+        * khtml/xml/xml_tokenizer.cpp:
+        (khtml::XMLTokenizer::insertErrorMessageBlock):
+
 2004-08-24  David Hyatt  <hyatt@apple.com>
 
        Polish the XML error message so that it indicates when a document is the result of an XSL transformation
index b69fcebf73e6ca4210ea84d6dcf69278693c3523..721cebb27e059d2e3dd11d0f1b1518731387db4c 100644 (file)
@@ -624,12 +624,14 @@ void XMLTokenizer::insertErrorMessageBlock()
     reportDiv->appendChild(h3, exceptioncode);
     
     h3->appendChild(doc->createTextNode("Below is a rendering of the page up to the first error."), exceptioncode);
+#ifdef KHTML_XSLT
     if (doc->transformSourceDocument()) {
         ElementImpl* par = doc->createElementNS(XHTML_NAMESPACE, "p", exceptioncode);
         reportDiv->appendChild(par, exceptioncode);
         par->setAttribute(ATTR_STYLE, "white-space: normal");
         par->appendChild(doc->createTextNode("This document was created as the result of an XSL transformation. The line and column numbers given are from the transformed result."), exceptioncode);
     }
+#endif
     root->insertBefore(reportDiv, root->firstChild(), exceptioncode);
 
     doc->updateRendering();