From 0484b075cb241bb57cf11b7ef58a0a79680cfa2b Mon Sep 17 00:00:00 2001 From: "peterv%netscape.com" Date: Sun, 10 Jun 2001 16:45:36 +0000 Subject: [PATCH] Fix for bug 81414 (transformiix standalone won't build, MOZ_XSL->!TX_EXE). Code by Axel Hecht, r=peterv/cls, sr=scc, a=dbaron. git-svn-id: svn://10.0.0.236/trunk@96817 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/config/autoconf.mk.in | 2 +- mozilla/config/config.mak | 2 -- mozilla/configure.in | 9 +++--- mozilla/extensions/transformiix/Makefile.in | 2 +- .../transformiix/build/makefile.win | 4 --- .../macbuild/transformiixPrefix.h | 1 - .../macbuild/transformiixPrefix_debug.h | 1 - mozilla/extensions/transformiix/makefile.win | 10 +++---- .../transformiix/source/Makefile.in | 2 +- .../transformiix/source/base/List.cpp | 5 ++-- .../transformiix/source/base/Makefile.in | 8 ++--- .../source/base/MozillaString.cpp | 2 +- .../transformiix/source/base/StringList.cpp | 4 +-- .../transformiix/source/base/TxString.h | 14 ++++----- .../transformiix/source/base/makefile.win | 8 ++--- .../transformiix/source/makefile.win | 2 +- .../transformiix/source/net/Makefile.in | 2 +- .../transformiix/source/net/URIUtils.cpp | 13 ++++----- .../transformiix/source/net/URIUtils.h | 5 ++-- .../transformiix/source/net/makefile.win | 4 +-- .../transformiix/source/xml/Makefile.in | 4 +-- .../transformiix/source/xml/XMLDOMUtils.cpp | 9 +++--- .../transformiix/source/xml/dom/Makefile.in | 2 +- .../transformiix/source/xml/dom/dom.h | 3 +- .../transformiix/source/xml/dom/makefile.win | 2 +- .../source/xml/dom/mozImpl/Makefile.in | 2 -- .../source/xml/dom/mozImpl/makefile.win | 4 --- .../source/xml/dom/standalone/makefile.win | 4 +-- .../transformiix/source/xml/makefile.win | 5 ++-- .../source/xml/parser/Makefile.in | 6 ++-- .../source/xml/parser/XMLParser.cpp | 9 +++--- .../source/xml/parser/XMLParser.h | 11 ++++--- .../source/xml/parser/makefile.win | 8 ++--- .../source/xml/printer/makefile.win | 4 +-- .../source/xml/util/DOMHelper.cpp | 4 +-- .../transformiix/source/xml/util/Makefile.in | 2 +- .../transformiix/source/xml/util/makefile.win | 4 +-- .../transformiix/source/xpath/Makefile.in | 6 ++-- .../transformiix/source/xpath/NodeSet.cpp | 5 ++-- .../transformiix/source/xpath/makefile.win | 8 ++--- .../transformiix/source/xslt/Makefile.in | 2 +- .../source/xslt/ProcessorState.cpp | 11 ++++--- .../source/xslt/XSLTProcessor.cpp | 29 +++++++++---------- .../transformiix/source/xslt/XSLTProcessor.h | 21 +++++++------- .../source/xslt/functions/Makefile.in | 2 +- .../source/xslt/functions/makefile.win | 4 +-- .../transformiix/source/xslt/makefile.win | 6 ++-- .../transformiix/source/xslt/util/Makefile.in | 2 +- .../source/xslt/util/NodeStack.cpp | 5 ++-- .../source/xslt/util/makefile.win | 4 +-- 50 files changed, 128 insertions(+), 160 deletions(-) diff --git a/mozilla/config/autoconf.mk.in b/mozilla/config/autoconf.mk.in index e3ccb4ab969..01d0e497c9f 100644 --- a/mozilla/config/autoconf.mk.in +++ b/mozilla/config/autoconf.mk.in @@ -111,7 +111,7 @@ MOZ_NATIVE_MNG = @SYSTEM_MNG@ MOZ_UPDATE_XTERM = @MOZ_UPDATE_XTERM@ MOZ_MATHML = @MOZ_MATHML@ MOZ_SVG = @MOZ_SVG@ -MOZ_XSL = @MOZ_XSL@ +TX_EXE = @TX_EXE@ MOZ_INSURE = @MOZ_INSURE@ MOZ_INSURIFYING = @MOZ_INSURIFYING@ diff --git a/mozilla/config/config.mak b/mozilla/config/config.mak index 0e87b031c25..ae2a4c7557d 100644 --- a/mozilla/config/config.mak +++ b/mozilla/config/config.mak @@ -282,8 +282,6 @@ CFLAGS=$(CFLAGS) -DMOZ_MATHML CFLAGS=$(CFLAGS) -DMOZ_SVG !endif -MOZ_XSL=1 - !ifdef MOZ_DEBUG CFLAGS=$(CFLAGS) -DMOZ_REFLOW_PERF -DMOZ_REFLOW_PERF_DSP !endif diff --git a/mozilla/configure.in b/mozilla/configure.in index a5ee57c149a..d9388009eac 100644 --- a/mozilla/configure.in +++ b/mozilla/configure.in @@ -3918,9 +3918,10 @@ MOZ_ARG_ENABLE_BOOL(svg, MOZ_SVG=1 AC_DEFINE(MOZ_SVG)) -dnl XSLT is now enabled by default. -MOZ_XSL=1 -AC_DEFINE(MOZ_XSL) +dnl To build transformiix standalone, set TX_EXE while configuring +if test "$TX_EXE"; then + AC_DEFINE(TX_EXE) +fi dnl Need the contents of config-defs.h in the build logs VERBOSE_CONFIG_DEFS=1 @@ -4063,7 +4064,7 @@ AC_SUBST(MOZ_GFX_TOOLKIT_LDFLAGS) AC_SUBST(MOZ_UPDATE_XTERM) AC_SUBST(MOZ_MATHML) AC_SUBST(MOZ_SVG) -AC_SUBST(MOZ_XSL) +AC_SUBST(TX_EXE) AC_SUBST(MOZ_MONOLITHIC_TOOLKIT) AC_SUBST(MOZ_JS_LIBS) AC_SUBST(MOZ_PSM) diff --git a/mozilla/extensions/transformiix/Makefile.in b/mozilla/extensions/transformiix/Makefile.in index 792f76ce526..9c04bf4a3ac 100644 --- a/mozilla/extensions/transformiix/Makefile.in +++ b/mozilla/extensions/transformiix/Makefile.in @@ -30,7 +30,7 @@ include $(DEPTH)/config/autoconf.mk ifneq ($(OS_ARCH),OS2) DIRS = source -ifdef MOZ_XSL +ifndef TX_EXE DIRS += build public endif diff --git a/mozilla/extensions/transformiix/build/makefile.win b/mozilla/extensions/transformiix/build/makefile.win index 35d3ce7e13e..d665ff157d4 100644 --- a/mozilla/extensions/transformiix/build/makefile.win +++ b/mozilla/extensions/transformiix/build/makefile.win @@ -22,10 +22,6 @@ DEPTH=..\..\.. include <$(DEPTH)/config/config.mak> -!ifdef MOZ_XSL -DEFINES= $(DEFINES) -DMOZ_XSL -!endif - MODULE=transformiix IS_COMPONENT = 1 diff --git a/mozilla/extensions/transformiix/macbuild/transformiixPrefix.h b/mozilla/extensions/transformiix/macbuild/transformiixPrefix.h index 10483c004dd..4f049a857a6 100755 --- a/mozilla/extensions/transformiix/macbuild/transformiixPrefix.h +++ b/mozilla/extensions/transformiix/macbuild/transformiixPrefix.h @@ -26,5 +26,4 @@ #include "MacSharedPrefix.h" -#define MOZ_XSL 1 #define HAVE_RINT 1 diff --git a/mozilla/extensions/transformiix/macbuild/transformiixPrefix_debug.h b/mozilla/extensions/transformiix/macbuild/transformiixPrefix_debug.h index def5643990b..39c997e4548 100755 --- a/mozilla/extensions/transformiix/macbuild/transformiixPrefix_debug.h +++ b/mozilla/extensions/transformiix/macbuild/transformiixPrefix_debug.h @@ -26,5 +26,4 @@ #include "MacSharedPrefix_debug.h" -#define MOZ_XSL 1 #define HAVE_RINT 1 diff --git a/mozilla/extensions/transformiix/makefile.win b/mozilla/extensions/transformiix/makefile.win index 89630b87b68..0759696e5a2 100644 --- a/mozilla/extensions/transformiix/makefile.win +++ b/mozilla/extensions/transformiix/makefile.win @@ -22,10 +22,10 @@ DEPTH=..\.. include <$(DEPTH)/config/config.mak> -!ifdef MOZ_XSL -DIRS=source build public -!else +!ifdef TX_EXE DIRS=$(DEPTH)\expat source +!else +DIRS=source build public !endif include <$(DEPTH)\config\rules.mak> @@ -33,5 +33,5 @@ include <$(DEPTH)\config\rules.mak> standalone: setenv all setenv: - @set INCS=-UMOZILLA_CLIENT -DXML_DTD=1 -DXML_UNICODE - @set MOZ_XSL= + @set INCS=-UMOZILLA_CLIENT -DXML_DTD=1 -DXML_UNICODE -DTX_EXE + @set TX_EXE=1 diff --git a/mozilla/extensions/transformiix/source/Makefile.in b/mozilla/extensions/transformiix/source/Makefile.in index 7e4af069c47..c25ebeab737 100644 --- a/mozilla/extensions/transformiix/source/Makefile.in +++ b/mozilla/extensions/transformiix/source/Makefile.in @@ -28,7 +28,7 @@ include $(DEPTH)/config/autoconf.mk DIRS = base net xml xpath xslt -ifndef MOZ_XSL +ifdef TX_EXE DIRS += main endif diff --git a/mozilla/extensions/transformiix/source/base/List.cpp b/mozilla/extensions/transformiix/source/base/List.cpp index 0fc5798bd4f..bfe74e04552 100644 --- a/mozilla/extensions/transformiix/source/base/List.cpp +++ b/mozilla/extensions/transformiix/source/base/List.cpp @@ -23,11 +23,10 @@ * Bob Miller, kbob@oblix.com * -- plugged core leak. * - * $Id: List.cpp,v 1.8 2001-06-10 13:50:46 axel%pike.org Exp $ */ #include "List.h" -#ifndef MOZ_XSL +#ifdef TX_EXE #include #endif @@ -38,7 +37,7 @@ /** * Default constructor for a List; * @author Keith Visco - * @version $Revision: 1.8 $ $Date: 2001-06-10 13:50:46 $ + * @version $Revision: 1.9 $ $Date: 2001-06-10 16:43:59 $ **/ List::List() { diff --git a/mozilla/extensions/transformiix/source/base/Makefile.in b/mozilla/extensions/transformiix/source/base/Makefile.in index deddf70cd93..3030278d8c9 100644 --- a/mozilla/extensions/transformiix/source/base/Makefile.in +++ b/mozilla/extensions/transformiix/source/base/Makefile.in @@ -26,7 +26,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -ifdef MOZ_XSL +ifndef TX_EXE MODULE = transformiix REQUIRES = string xpcom endif @@ -45,11 +45,11 @@ CPPSRCS = ArrayList.cpp \ StringList.cpp \ Tokenizer.cpp -ifdef MOZ_XSL - CPPSRCS += MozillaString.cpp -else +ifdef TX_EXE CPPSRCS += CommandLineUtils.cpp \ TxString.cpp +else + CPPSRCS += MozillaString.cpp endif include $(topsrcdir)/config/rules.mk diff --git a/mozilla/extensions/transformiix/source/base/MozillaString.cpp b/mozilla/extensions/transformiix/source/base/MozillaString.cpp index a63ffd11ace..18ad4218db6 100644 --- a/mozilla/extensions/transformiix/source/base/MozillaString.cpp +++ b/mozilla/extensions/transformiix/source/base/MozillaString.cpp @@ -35,7 +35,7 @@ #include #include #include "TxString.h" -#ifndef MOZ_XSL +#ifdef TX_EXE #include #endif diff --git a/mozilla/extensions/transformiix/source/base/StringList.cpp b/mozilla/extensions/transformiix/source/base/StringList.cpp index 9b5cbe44607..df846a3b2fb 100644 --- a/mozilla/extensions/transformiix/source/base/StringList.cpp +++ b/mozilla/extensions/transformiix/source/base/StringList.cpp @@ -23,16 +23,14 @@ * Bob Miller, kbob@oblix.com * -- plugged core leak. * - * $Id: StringList.cpp,v 1.8 2001-06-10 13:50:46 axel%pike.org Exp $ */ /** * StringList * @author Keith Visco - * @version $Revision: 1.8 $ $Date: 2001-06-10 13:50:46 $ **/ -#ifndef MOZ_XSL +#ifdef TX_EXE #include #endif #include "StringList.h" diff --git a/mozilla/extensions/transformiix/source/base/TxString.h b/mozilla/extensions/transformiix/source/base/TxString.h index de056d27142..5e1d9faaf0f 100644 --- a/mozilla/extensions/transformiix/source/base/TxString.h +++ b/mozilla/extensions/transformiix/source/base/TxString.h @@ -32,11 +32,11 @@ #include "baseutils.h" #include -#ifdef MOZ_XSL +#ifdef TX_EXE +typedef unsigned short UNICODE_CHAR; +#else #include "nsString.h" typedef PRUnichar UNICODE_CHAR; -#else -typedef unsigned short UNICODE_CHAR; #endif #ifndef NULL @@ -57,7 +57,7 @@ class String : public TxObject String(const char* source); //Create a string from the characters String(const UNICODE_CHAR* source); String(const UNICODE_CHAR* source, Int32 length); -#ifdef MOZ_XSL +#ifndef TX_EXE String(nsString* theNSString); #endif @@ -121,7 +121,7 @@ class String : public TxObject virtual MBool isEqual(const String& data) const; //Check equality between //strings -#ifdef MOZ_XSL +#ifndef TX_EXE virtual MBool isEqualIgnoreCase(const String& data) const; #endif @@ -173,7 +173,7 @@ class String : public TxObject virtual void reverse(); //Reverse the string -#ifdef MOZ_XSL +#ifndef TX_EXE virtual nsString& getNSString(); virtual const nsString& getConstNSString() const; #endif @@ -187,7 +187,7 @@ class String : public TxObject Int32 UnicodeLength(const UNICODE_CHAR* data); private: -#ifdef MOZ_XSL +#ifndef TX_EXE nsString* ptrNSString; #else Int32 strLength; diff --git a/mozilla/extensions/transformiix/source/base/makefile.win b/mozilla/extensions/transformiix/source/base/makefile.win index 951ac094faf..0bb121264c1 100644 --- a/mozilla/extensions/transformiix/source/base/makefile.win +++ b/mozilla/extensions/transformiix/source/base/makefile.win @@ -22,8 +22,8 @@ DEPTH=..\..\..\.. include <$(DEPTH)/config/config.mak> -!if defined(MOZ_XSL) -DEFINES= $(DEFINES) -DMOZ_XSL +!if defined(TX_EXE) +DEFINES= $(DEFINES) -DTX_EXE !endif CPPSRCS= \ @@ -41,7 +41,7 @@ CPPSRCS= \ StringList.cpp \ Tokenizer.cpp -!ifdef MOZ_XSL +!ifndef TX_EXE CPPSRCS = $(CPPSRCS) \ MozillaString.cpp \ $(NULL) @@ -67,7 +67,7 @@ CPP_OBJS= \ .\$(OBJDIR)\StringList.obj \ .\$(OBJDIR)\Tokenizer.obj -!ifdef MOZ_XSL +!ifndef TX_EXE CPP_OBJS = $(CPP_OBJS) \ .\$(OBJDIR)\MozillaString.obj \ $(NULL) diff --git a/mozilla/extensions/transformiix/source/makefile.win b/mozilla/extensions/transformiix/source/makefile.win index fcdab4c8d4a..1d60ce1a5a9 100644 --- a/mozilla/extensions/transformiix/source/makefile.win +++ b/mozilla/extensions/transformiix/source/makefile.win @@ -24,7 +24,7 @@ include <$(DEPTH)/config/config.mak> DIRS=base net xml xpath xslt -!ifndef MOZ_XSL +!ifdef TX_EXE DIRS = $(DIRS) main !endif diff --git a/mozilla/extensions/transformiix/source/net/Makefile.in b/mozilla/extensions/transformiix/source/net/Makefile.in index 72531c4c66b..410dedfa55c 100644 --- a/mozilla/extensions/transformiix/source/net/Makefile.in +++ b/mozilla/extensions/transformiix/source/net/Makefile.in @@ -26,7 +26,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -ifdef MOZ_XSL +ifndef TX_EXE MODULE = transformiix REQUIRES = string xpcom necko endif diff --git a/mozilla/extensions/transformiix/source/net/URIUtils.cpp b/mozilla/extensions/transformiix/source/net/URIUtils.cpp index b9a6714ca84..d1147b9a1d7 100644 --- a/mozilla/extensions/transformiix/source/net/URIUtils.cpp +++ b/mozilla/extensions/transformiix/source/net/URIUtils.cpp @@ -29,12 +29,11 @@ * -- 20000326 * -- added Mozilla integration code * - * $Id: URIUtils.cpp,v 1.13 2001-06-10 13:50:48 axel%pike.org Exp $ */ #include "URIUtils.h" -#ifdef MOZ_XSL +#ifndef TX_EXE #include "nsIServiceManager.h" #include "nsIIOService.h" #include "nsIURL.h" @@ -46,10 +45,10 @@ * URIUtils * A set of utilities for handling URIs * @author Keith Visco - * @version $Revision: 1.13 $ $Date: 2001-06-10 13:50:48 $ + * @version $Revision: 1.14 $ $Date: 2001-06-10 16:42:43 $ **/ -#ifndef MOZ_XSL +#ifdef TX_EXE //- Constants -/ const String URIUtils::HTTP_PROTOCOL = "http"; @@ -100,7 +99,7 @@ istream* URIUtils::getInputStream * @return the document base of the given href **/ void URIUtils::getDocumentBase(const String& href, String& dest) { -#ifdef MOZ_XSL +#ifndef TX_EXE String docBase(""); nsCOMPtr pURL; nsresult result = NS_OK; @@ -155,7 +154,7 @@ void URIUtils::getDocumentBase(const String& href, String& dest) { * The new resolved href will be appended to the given dest String **/ void URIUtils::resolveHref(const String& href, const String& base, String& dest) { -#ifdef MOZ_XSL +#ifndef TX_EXE nsCOMPtr pURL; nsresult result = NS_OK; @@ -238,7 +237,7 @@ void URIUtils::getDocumentURI(const String& href, String& docUri) { docUri = href; } //-- getFragmentIdentifier -#ifndef MOZ_XSL +#ifdef TX_EXE istream* URIUtils::openStream(ParsedURI* uri) { if ( !uri ) return 0; // check protocol diff --git a/mozilla/extensions/transformiix/source/net/URIUtils.h b/mozilla/extensions/transformiix/source/net/URIUtils.h index a7c86b9e096..d0daf94f7c5 100644 --- a/mozilla/extensions/transformiix/source/net/URIUtils.h +++ b/mozilla/extensions/transformiix/source/net/URIUtils.h @@ -31,7 +31,6 @@ * -- 20000326 * -- added Mozilla integration code * - * $Id: URIUtils.h,v 1.15 2001-06-10 13:50:49 axel%pike.org Exp $ */ #ifndef TRANSFRMX_URIUTILS_H @@ -39,7 +38,7 @@ #include "TxString.h" #include "baseutils.h" -#ifndef MOZ_XSL +#ifdef TX_EXE #include #endif @@ -48,7 +47,7 @@ * A utility class for URI handling * Not yet finished, only handles file URI at this point * @author Keith Visco - * @version $Revision: 1.15 $ $Date: 2001-06-10 13:50:49 $ + * @version $Revision: 1.16 $ $Date: 2001-06-10 16:42:12 $ * **/ diff --git a/mozilla/extensions/transformiix/source/net/makefile.win b/mozilla/extensions/transformiix/source/net/makefile.win index fd0c04eeab7..4ea75cc7c02 100644 --- a/mozilla/extensions/transformiix/source/net/makefile.win +++ b/mozilla/extensions/transformiix/source/net/makefile.win @@ -22,8 +22,8 @@ DEPTH=..\..\..\.. include <$(DEPTH)/config/config.mak> -!if defined(MOZ_XSL) -DEFINES= $(DEFINES) -DMOZ_XSL +!if defined(TX_EXE) +DEFINES= $(DEFINES) -DTX_EXE !endif CPPSRCS= \ diff --git a/mozilla/extensions/transformiix/source/xml/Makefile.in b/mozilla/extensions/transformiix/source/xml/Makefile.in index 7c7383f8fd8..9d060a78174 100644 --- a/mozilla/extensions/transformiix/source/xml/Makefile.in +++ b/mozilla/extensions/transformiix/source/xml/Makefile.in @@ -26,13 +26,13 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -ifdef MOZ_XSL +ifndef TX_EXE MODULE = transformiix REQUIRES = string xpcom dom layout widget endif DIRS = dom parser util -ifndef MOZ_XSL +ifdef TX_EXE DIRS += printer endif diff --git a/mozilla/extensions/transformiix/source/xml/XMLDOMUtils.cpp b/mozilla/extensions/transformiix/source/xml/XMLDOMUtils.cpp index 34061ed00c6..0e45cb7f3e8 100644 --- a/mozilla/extensions/transformiix/source/xml/XMLDOMUtils.cpp +++ b/mozilla/extensions/transformiix/source/xml/XMLDOMUtils.cpp @@ -21,13 +21,12 @@ * Keith Visco * -- original author. * - * $Id: XMLDOMUtils.cpp,v 1.15 2001-06-10 13:50:50 axel%pike.org Exp $ */ /** * XMLDOMUtils * @author Keith Visco - * @version $Revision: 1.15 $ $Date: 2001-06-10 13:50:50 $ + * @version $Revision: 1.16 $ $Date: 2001-06-10 16:42:18 $ **/ #include "XMLDOMUtils.h" @@ -63,7 +62,7 @@ Node* XMLDOMUtils::copyNode(Node* node, Document* owner, NamespaceResolver* reso Document* newDoc = new Document(); if (!newDoc) break; -#ifdef MOZ_XSL +#ifndef TX_EXE owner->addWrapper(newDoc); #endif NodeList* nl = doc->getChildNodes(); @@ -86,7 +85,7 @@ Node* XMLDOMUtils::copyNode(Node* node, Document* owner, NamespaceResolver* reso case Node::ELEMENT_NODE : { Element* element = (Element*)node; -#ifdef MOZ_XSL +#ifndef TX_EXE String name, nameSpaceURI; name = element->getNodeName(); resolver->getResultNameSpaceURI(name, nameSpaceURI); @@ -100,7 +99,7 @@ Node* XMLDOMUtils::copyNode(Node* node, Document* owner, NamespaceResolver* reso if ( attList ) { for ( i = 0; i < attList->getLength(); i++ ) { Attr* attr = (Attr*) attList->item(i); -#ifdef MOZ_XSL +#ifndef TX_EXE resolver->getResultNameSpaceURI(attr->getName(), nameSpaceURI); newElement->setAttributeNS(nameSpaceURI, attr->getName(), attr->getValue()); #else diff --git a/mozilla/extensions/transformiix/source/xml/dom/Makefile.in b/mozilla/extensions/transformiix/source/xml/dom/Makefile.in index b8d04d8a6c1..ce6fa015f1f 100644 --- a/mozilla/extensions/transformiix/source/xml/dom/Makefile.in +++ b/mozilla/extensions/transformiix/source/xml/dom/Makefile.in @@ -26,7 +26,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -ifdef MOZ_XSL +ifndef TX_EXE DIRS = mozImpl else DIRS = standalone diff --git a/mozilla/extensions/transformiix/source/xml/dom/dom.h b/mozilla/extensions/transformiix/source/xml/dom/dom.h index 4fea1d3cf9a..5513e0550f5 100644 --- a/mozilla/extensions/transformiix/source/xml/dom/dom.h +++ b/mozilla/extensions/transformiix/source/xml/dom/dom.h @@ -16,13 +16,12 @@ * Peter Van der Beken * -- original author * - * $Id: dom.h,v 1.11 2001-06-10 13:50:52 axel%pike.org Exp $ */ #ifndef __TX_DOM_WRAPPER__ #define __TX_DOM_WRAPPER__ -#ifndef MOZ_XSL +#ifdef TX_EXE #include "standalone/dom.h" #else #include "mozImpl/mozilladom.h" diff --git a/mozilla/extensions/transformiix/source/xml/dom/makefile.win b/mozilla/extensions/transformiix/source/xml/dom/makefile.win index 849ac8eb0fa..10da86e2aca 100644 --- a/mozilla/extensions/transformiix/source/xml/dom/makefile.win +++ b/mozilla/extensions/transformiix/source/xml/dom/makefile.win @@ -22,7 +22,7 @@ DEPTH=..\..\..\..\.. include <$(DEPTH)/config/config.mak> -!ifdef MOZ_XSL +!ifndef TX_EXE DIRS = mozImpl !else DIRS = standalone diff --git a/mozilla/extensions/transformiix/source/xml/dom/mozImpl/Makefile.in b/mozilla/extensions/transformiix/source/xml/dom/mozImpl/Makefile.in index e8d12b9719c..dafcc02b8e5 100644 --- a/mozilla/extensions/transformiix/source/xml/dom/mozImpl/Makefile.in +++ b/mozilla/extensions/transformiix/source/xml/dom/mozImpl/Makefile.in @@ -26,10 +26,8 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -ifdef MOZ_XSL MODULE = transformiix REQUIRES = string xpcom dom layout widget necko -endif CPPSRCS = MozillaAttr.cpp \ MozillaCDATASection.cpp \ diff --git a/mozilla/extensions/transformiix/source/xml/dom/mozImpl/makefile.win b/mozilla/extensions/transformiix/source/xml/dom/mozImpl/makefile.win index 0c6d78d2ebd..b57b83275e2 100644 --- a/mozilla/extensions/transformiix/source/xml/dom/mozImpl/makefile.win +++ b/mozilla/extensions/transformiix/source/xml/dom/mozImpl/makefile.win @@ -22,10 +22,6 @@ DEPTH=..\..\..\..\..\.. include <$(DEPTH)/config/config.mak> -!ifdef MOZ_XSL -DEFINES=$(DEFINES) -DMOZ_XSL -!endif - CPPSRCS= \ MozillaAttr.cpp \ MozillaCDATASection.cpp \ diff --git a/mozilla/extensions/transformiix/source/xml/dom/standalone/makefile.win b/mozilla/extensions/transformiix/source/xml/dom/standalone/makefile.win index b861916b723..3d4792e4afd 100644 --- a/mozilla/extensions/transformiix/source/xml/dom/standalone/makefile.win +++ b/mozilla/extensions/transformiix/source/xml/dom/standalone/makefile.win @@ -22,9 +22,7 @@ DEPTH=..\..\..\..\..\.. include <$(DEPTH)/config/config.mak> -!ifdef MOZ_XSL -DEFINES=$(DEFINES) -DMOZ_XSL -!endif +DEFINES=$(DEFINES) -DTX_EXE CPPSRCS=Attr.cpp \ CDATASection.cpp \ diff --git a/mozilla/extensions/transformiix/source/xml/makefile.win b/mozilla/extensions/transformiix/source/xml/makefile.win index bc12f79e8c8..7b541fb24fc 100644 --- a/mozilla/extensions/transformiix/source/xml/makefile.win +++ b/mozilla/extensions/transformiix/source/xml/makefile.win @@ -24,9 +24,8 @@ include <$(DEPTH)/config/config.mak> DIRS=dom parser util -!if defined(MOZ_XSL) -DEFINES=$(DEFINES) -DMOZ_XSL -!else +!if defined(TX_EXE) +DEFINES=$(DEFINES) -DTX_EXE DIRS = $(DIRS) printer !endif diff --git a/mozilla/extensions/transformiix/source/xml/parser/Makefile.in b/mozilla/extensions/transformiix/source/xml/parser/Makefile.in index 2da4d7e61e9..4f083c09198 100644 --- a/mozilla/extensions/transformiix/source/xml/parser/Makefile.in +++ b/mozilla/extensions/transformiix/source/xml/parser/Makefile.in @@ -26,13 +26,13 @@ VPATH = @srcdir@ @srcdir@/xmltok @srcdir@/xmlparse include $(DEPTH)/config/autoconf.mk -ifdef MOZ_XSL +ifndef TX_EXE MODULE = transformiix REQUIRES = string xpcom necko dom layout widget webbrwsr js docshell webshell gfx2 uriloader locale appshell xpconnect endif CPPSRCS = XMLParser.cpp -ifdef MOZ_XSL +ifndef TX_EXE CPPSRCS += nsSyncLoader.cpp else CSRCS = xmltok.c xmlrole.c xmlparse.c hashtable.c @@ -41,7 +41,7 @@ endif include $(topsrcdir)/config/rules.mk INCLUDES += -I$(srcdir)/../../base -I$(srcdir)/../../net -I$(srcdir)/../dom -ifndef MOZ_XSL +ifdef TX_EXE INCLUDES += -I$(srcdir)/xmlparse COMPILE_CFLAGS += -DXML_UNICODE -I$(srcdir)/xmltok endif diff --git a/mozilla/extensions/transformiix/source/xml/parser/XMLParser.cpp b/mozilla/extensions/transformiix/source/xml/parser/XMLParser.cpp index 05edc8062ba..33f265e4b02 100644 --- a/mozilla/extensions/transformiix/source/xml/parser/XMLParser.cpp +++ b/mozilla/extensions/transformiix/source/xml/parser/XMLParser.cpp @@ -34,11 +34,10 @@ * -- Removed a number of castings of XML_Char to DOM_CHAR since they * were not working on Windows properly * - * $Id: XMLParser.cpp,v 1.17 2001-06-10 13:50:55 axel%pike.org Exp $ */ #include "XMLParser.h" -#ifdef MOZ_XSL +#ifndef TX_EXE #include "nsSyncLoader.h" #include "URIUtils.h" #include "nsIIOService.h" @@ -69,7 +68,7 @@ **/ XMLParser::XMLParser() { -#ifndef MOZ_XSL +#ifdef TX_EXE errorState = MB_FALSE; #endif } //-- XMLParser @@ -87,7 +86,7 @@ Document* XMLParser::getDocumentFromURI String documentURL; URIUtils::resolveHref(href, baseUri, documentURL); -#ifdef MOZ_XSL +#ifndef TX_EXE nsresult rv = NS_OK; nsCOMPtr documentURI; nsCOMPtr pService(do_GetService(NS_IOSERVICE_CONTRACTID, @@ -123,7 +122,7 @@ Document* XMLParser::getDocumentFromURI } -#ifndef MOZ_XSL +#ifdef TX_EXE /** * Parses the given input stream and returns a DOM Document. * A NULL pointer will be returned if errors occurred diff --git a/mozilla/extensions/transformiix/source/xml/parser/XMLParser.h b/mozilla/extensions/transformiix/source/xml/parser/XMLParser.h index e17b22826ac..401d39537df 100644 --- a/mozilla/extensions/transformiix/source/xml/parser/XMLParser.h +++ b/mozilla/extensions/transformiix/source/xml/parser/XMLParser.h @@ -23,7 +23,6 @@ * Keith Visco * -- finished implementation * - * $Id: XMLParser.h,v 1.11 2001-06-10 13:50:56 axel%pike.org Exp $ */ #ifndef MITRE_XMLPARSER_H @@ -33,7 +32,7 @@ #ifndef XML_UNICODE #define XML_UNICODE #endif -#ifndef MOZ_XSL +#ifdef TX_EXE #include "xmlparse.h" #include "URIUtils.h" #endif @@ -49,11 +48,11 @@ typedef struct { * parsing is provided by EXPAT. * @author Tom Kneeland * @author Keith Visco - * @version $Revision: 1.11 $ $Date: 2001-06-10 13:50:56 $ + * @version $Revision: 1.12 $ $Date: 2001-06-10 16:43:13 $ **/ class XMLParser { -#ifndef MOZ_XSL +#ifdef TX_EXE /*-----------------6/18/99 12:43PM------------------ * Sax related methods for XML parsers * --------------------------------------------------*/ @@ -71,7 +70,7 @@ class XMLParser ~XMLParser(); Document* getDocumentFromURI(const String& href, const String& baseUri, String& errMsg); -#ifndef MOZ_XSL +#ifdef TX_EXE Document* parse(istream& inputStream, const String& uri); const String& getErrorString(); @@ -84,7 +83,7 @@ class XMLParser #endif }; -#ifndef MOZ_XSL +#ifdef TX_EXE /*-----------------6/18/99 12:43PM------------------ * Sax related methods for XML parsers * --------------------------------------------------*/ diff --git a/mozilla/extensions/transformiix/source/xml/parser/makefile.win b/mozilla/extensions/transformiix/source/xml/parser/makefile.win index 2682c51485f..338740cfa56 100644 --- a/mozilla/extensions/transformiix/source/xml/parser/makefile.win +++ b/mozilla/extensions/transformiix/source/xml/parser/makefile.win @@ -22,9 +22,7 @@ DEPTH=..\..\..\..\.. include <$(DEPTH)/config/config.mak> -!ifdef MOZ_XSL -DEFINES=$(DEFINES) -DMOZ_XSL - +!ifndef TX_EXE CPPSRCS= \ nsSyncLoader.cpp \ XMLParser.cpp \ @@ -35,6 +33,8 @@ CPP_OBJS= \ .\$(OBJDIR)\XMLParser.obj \ $(NULL) !else +DEFINES=$(DEFINES) -DTX_EXE + CPPSRCS= \ XMLParser.cpp \ $(NULL) @@ -48,7 +48,7 @@ EXPORTS = \ $(NULL) LINCS=-I..\..\base -I..\dom -I..\..\net -!ifdef MOZ_XSL +!ifndef TX_EXE LINCS=$(LINCS) -I$(PUBLIC)\expat !else LINCS=$(LINCS) -Ixmlparse diff --git a/mozilla/extensions/transformiix/source/xml/printer/makefile.win b/mozilla/extensions/transformiix/source/xml/printer/makefile.win index 6bc6240819c..20f683d12d3 100644 --- a/mozilla/extensions/transformiix/source/xml/printer/makefile.win +++ b/mozilla/extensions/transformiix/source/xml/printer/makefile.win @@ -22,8 +22,8 @@ DEPTH=..\..\..\..\.. include <$(DEPTH)/config/config.mak> -!if defined(MOZ_XSL) -DEFINES=$(DEFINES) -DMOZ_XSL +!if defined(TX_EXE) +DEFINES=$(DEFINES) -DTX_EXE !endif CPPSRCS= \ diff --git a/mozilla/extensions/transformiix/source/xml/util/DOMHelper.cpp b/mozilla/extensions/transformiix/source/xml/util/DOMHelper.cpp index 143cc5e1457..e3f65247d83 100644 --- a/mozilla/extensions/transformiix/source/xml/util/DOMHelper.cpp +++ b/mozilla/extensions/transformiix/source/xml/util/DOMHelper.cpp @@ -19,13 +19,11 @@ * Keith Visco, kvisco@ziplink.net * -- original author. * - * $Id: DOMHelper.cpp,v 1.11 2001-06-10 13:50:58 axel%pike.org Exp $ */ /** * A class used to overcome DOM 1.0 deficiencies * @author Keith Visco - * @version $Revision: 1.11 $ $Date: 2001-06-10 13:50:58 $ **/ #include "DOMHelper.h" @@ -116,7 +114,7 @@ Node* DOMHelper::getParentNode(Node* node) { if (node->getNodeType() != Node::ATTRIBUTE_NODE) return node->getParentNode(); -#ifdef MOZ_XSL +#ifndef TX_EXE // XXX temporary fix for 70979 nsCOMPtr attr(do_QueryInterface(node->getNSObj())); nsCOMPtr tmpParent; diff --git a/mozilla/extensions/transformiix/source/xml/util/Makefile.in b/mozilla/extensions/transformiix/source/xml/util/Makefile.in index 7426cd3552c..d5d5bb77077 100644 --- a/mozilla/extensions/transformiix/source/xml/util/Makefile.in +++ b/mozilla/extensions/transformiix/source/xml/util/Makefile.in @@ -26,7 +26,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -ifdef MOZ_XSL +ifndef TX_EXE MODULE = transformiix REQUIRES = string xpcom dom layout widget endif diff --git a/mozilla/extensions/transformiix/source/xml/util/makefile.win b/mozilla/extensions/transformiix/source/xml/util/makefile.win index 25fd3423aea..2807411e7f4 100644 --- a/mozilla/extensions/transformiix/source/xml/util/makefile.win +++ b/mozilla/extensions/transformiix/source/xml/util/makefile.win @@ -22,8 +22,8 @@ DEPTH=..\..\..\..\.. include <$(DEPTH)/config/config.mak> -!if defined(MOZ_XSL) -DEFINES=$(DEFINES) -DMOZ_XSL +!if defined(TX_EXE) +DEFINES=$(DEFINES) -DTX_EXE !endif CPPSRCS= \ diff --git a/mozilla/extensions/transformiix/source/xpath/Makefile.in b/mozilla/extensions/transformiix/source/xpath/Makefile.in index ad328f2d744..888ed63362b 100644 --- a/mozilla/extensions/transformiix/source/xpath/Makefile.in +++ b/mozilla/extensions/transformiix/source/xpath/Makefile.in @@ -26,7 +26,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -ifdef MOZ_XSL +ifndef TX_EXE MODULE = transformiix REQUIRES = string xpcom dom layout widget caps js endif @@ -65,7 +65,7 @@ CPPSRCS = AdditiveExpr.cpp \ UnionExpr.cpp \ VariableRefExpr.cpp \ XPathNames.cpp -ifdef MOZ_XSL +ifndef TX_EXE CPPSRCS += XPathProcessor.cpp \ nsNodeSet.cpp endif @@ -76,7 +76,7 @@ INCLUDES += -I$(srcdir)/../base -I$(srcdir)/../xml \ -I$(srcdir)/../xml/dom -I$(srcdir)/../xml/util \ -I$(srcdir)/../xslt -I$(srcdir)/../xslt/util \ -I$(srcdir)/../xslt/functions -ifdef MOZ_XSL +ifndef TX_EXE INCLUDES += -I$(srcdir) endif diff --git a/mozilla/extensions/transformiix/source/xpath/NodeSet.cpp b/mozilla/extensions/transformiix/source/xpath/NodeSet.cpp index 59bd9c0ca30..d92b6c8515f 100644 --- a/mozilla/extensions/transformiix/source/xpath/NodeSet.cpp +++ b/mozilla/extensions/transformiix/source/xpath/NodeSet.cpp @@ -27,12 +27,11 @@ * Olivier Gerardin, ogerardin@vo.lu * -- fixed numberValue() * - * $Id: NodeSet.cpp,v 1.8 2001-06-10 13:50:59 axel%pike.org Exp $ */ #include "NodeSet.h" #include "XMLDOMUtils.h" -#ifndef MOZ_XSL +#ifdef TX_EXE #include #endif @@ -40,7 +39,7 @@ * NodeSet
* This class was ported from XSL:P.
* @author Keith Visco - * @version $Revision: 1.8 $ $Date: 2001-06-10 13:50:59 $ + * @version $Revision: 1.9 $ $Date: 2001-06-10 16:44:10 $ **/ diff --git a/mozilla/extensions/transformiix/source/xpath/makefile.win b/mozilla/extensions/transformiix/source/xpath/makefile.win index 11f49ab1830..d7efeb990e9 100644 --- a/mozilla/extensions/transformiix/source/xpath/makefile.win +++ b/mozilla/extensions/transformiix/source/xpath/makefile.win @@ -22,8 +22,8 @@ DEPTH=..\..\..\.. include <$(DEPTH)/config/config.mak> -!if defined(MOZ_XSL) -DEFINES=$(DEFINES) -DMOZ_XSL +!if defined(TX_EXE) +DEFINES=$(DEFINES) -DTX_EXE !endif CPPSRCS= \ @@ -61,7 +61,7 @@ CPPSRCS= \ UnionExpr.cpp \ VariableRefExpr.cpp \ XPathNames.cpp \ -!if defined(MOZ_XSL) +!if !defined(TX_EXE) nsNodeSet.cpp \ XPathProcessor.cpp \ !endif @@ -102,7 +102,7 @@ CPP_OBJS= \ .\$(OBJDIR)\UnionExpr.obj \ .\$(OBJDIR)\VariableRefExpr.obj \ .\$(OBJDIR)\XPathNames.obj \ -!if defined(MOZ_XSL) +!if !defined(TX_EXE) .\$(OBJDIR)\nsNodeSet.obj \ .\$(OBJDIR)\XPathProcessor.obj \ !endif diff --git a/mozilla/extensions/transformiix/source/xslt/Makefile.in b/mozilla/extensions/transformiix/source/xslt/Makefile.in index fa44107dc36..44590a13322 100644 --- a/mozilla/extensions/transformiix/source/xslt/Makefile.in +++ b/mozilla/extensions/transformiix/source/xslt/Makefile.in @@ -28,7 +28,7 @@ include $(DEPTH)/config/autoconf.mk DIRS = functions util -ifdef MOZ_XSL +ifndef TX_EXE MODULE = transformiix REQUIRES = string xpcom dom layout widget necko xsl_doc endif diff --git a/mozilla/extensions/transformiix/source/xslt/ProcessorState.cpp b/mozilla/extensions/transformiix/source/xslt/ProcessorState.cpp index 5468a2ca1b7..967c71100d0 100644 --- a/mozilla/extensions/transformiix/source/xslt/ProcessorState.cpp +++ b/mozilla/extensions/transformiix/source/xslt/ProcessorState.cpp @@ -25,13 +25,12 @@ * -- added code in ::resolveFunctionCall to support the * document() function. * - * $Id: ProcessorState.cpp,v 1.28 2001-06-10 12:54:58 axel%pike.org Exp $ */ /** * Implementation of ProcessorState * Much of this code was ported from XSL:P - * @version $Revision: 1.28 $ $Date: 2001-06-10 12:54:58 $ + * @version $Revision: 1.29 $ $Date: 2001-06-10 16:41:35 $ **/ #include "ProcessorState.h" @@ -44,7 +43,7 @@ #include "VariableBinding.h" #include "ExprResult.h" #include "Names.h" -#ifdef MOZ_XSL +#ifndef TX_EXE // #include "nslog.h" // #define PRINTF NS_LOG_PRINTF(XPATH) // #define FLUSH NS_LOG_FLUSH(XPATH) @@ -208,7 +207,7 @@ void ProcessorState::addTemplate(Element* xslTemplate) { MBool ProcessorState::addToResultTree(Node* node) { Node* current = resultNodeStack->peek(); -#ifdef MOZ_XSL +#ifndef TX_EXE String nameSpaceURI, name, localName; #endif @@ -219,7 +218,7 @@ MBool ProcessorState::addToResultTree(Node* node) { if (current->getNodeType() != Node::ELEMENT_NODE) return MB_FALSE; Element* element = (Element*)current; Attr* attr = (Attr*)node; -#ifdef MOZ_XSL +#ifndef TX_EXE name = attr->getName(); getResultNameSpaceURI(name, nameSpaceURI); // XXX HACK (pvdb) Workaround for BUG 51656 Html rendered as xhtml @@ -246,7 +245,7 @@ MBool ProcessorState::addToResultTree(Node* node) { current->appendChild(wrapper); current = wrapper; } -#ifdef MOZ_XSL +#ifndef TX_EXE else { // Checking if we should set the output method to HTML name = node->getNodeName(); diff --git a/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.cpp b/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.cpp index 7320f3a160a..3a98c48d3ab 100644 --- a/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.cpp +++ b/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.cpp @@ -38,7 +38,6 @@ * Olivier Gerardin * -- Changed behavior of passing parameters to templates * - * $Id: XSLTProcessor.cpp,v 1.50 2001-06-10 12:54:58 axel%pike.org Exp $ */ #include "XSLTProcessor.h" @@ -51,7 +50,7 @@ #include "Numbering.h" #include "Tokenizer.h" #include "URIUtils.h" -#ifdef MOZ_XSL +#ifndef TX_EXE #include "nsIObserverService.h" #include "nsIURL.h" #include "nsIServiceManager.h" @@ -73,7 +72,7 @@ /** * XSLTProcessor is a class for Processing XSL stylesheets * @author Keith Visco - * @version $Revision: 1.50 $ $Date: 2001-06-10 12:54:58 $ + * @version $Revision: 1.51 $ $Date: 2001-06-10 16:41:19 $ **/ /** @@ -88,7 +87,7 @@ const String XSLTProcessor::NON_TEXT_TEMPLATE_WARNING = **/ XSLTProcessor::XSLTProcessor() { -#ifdef MOZ_XSL +#ifndef TX_EXE NS_INIT_ISUPPORTS(); #endif @@ -138,7 +137,7 @@ XSLTProcessor::~XSLTProcessor() { //-- currently does nothing, but added for future use } //-- ~XSLTProcessor -#ifdef MOZ_XSL +#ifndef TX_EXE // XPConnect interface list for XSLTProcessor NS_CLASSINFO_MAP_BEGIN(XSLTProcessor) @@ -166,7 +165,7 @@ void XSLTProcessor::addErrorObserver(ErrorObserver& errorObserver) { errorObservers.add(&errorObserver); } //-- addErrorObserver -#ifndef MOZ_XSL +#ifdef TX_EXE void XSLTProcessor::print (Document& document, OutputFormat* format, ostream& out) { @@ -215,7 +214,7 @@ String& XSLTProcessor::getAppVersion() { return appVersion; } //-- getAppVersion -#ifndef MOZ_XSL +#ifdef TX_EXE /** * Parses all XML Stylesheet PIs associated with the * given XML document. If any stylesheet PIs are found with @@ -555,7 +554,7 @@ void XSLTProcessor::processTopLevel } //-- process(Document, ProcessorState) -#ifndef MOZ_XSL +#ifdef TX_EXE /** * Processes the given XML Document using the given XSL document * and returns the result tree @@ -708,7 +707,7 @@ void XSLTProcessor::process delete xslDoc; } //-- process -#endif // ifndef MOZ_XSL +#endif // ifdef TX_EXE //-------------------/ //- Private Methods -/ @@ -1101,7 +1100,7 @@ void XSLTProcessor::processAction Element* element = 0; //-- check name validity if ( XMLUtils::isValidQName(name)) { -#ifdef MOZ_XSL +#ifndef TX_EXE // XXX (pvdb) Check if we need to set a new default namespace? String nameSpaceURI; ps->getResultNameSpaceURI(name, nameSpaceURI); @@ -1332,7 +1331,7 @@ void XSLTProcessor::processAction } //-- literal default: -#ifdef MOZ_XSL +#ifndef TX_EXE // Find out if we have a new default namespace MBool newDefaultNS = MB_FALSE; String nsURI = actionElement->getAttribute(XMLUtils::XMLNS); @@ -1396,7 +1395,7 @@ void XSLTProcessor::processAction tmp = tmp->getNextSibling(); } ps->getNodeStack()->pop(); -#ifdef MOZ_XSL +#ifndef TX_EXE if ( newDefaultNS ) { ps->getDefaultNSURIStack()->pop(); } @@ -1658,7 +1657,7 @@ void XSLTProcessor::xslCopy(Node* node, Element* action, ProcessorState* ps) { { Element* element = (Element*)node; String nodeName = element->getNodeName(); -#ifdef MOZ_XSL +#ifndef TX_EXE // Find out if we have a new default namespace MBool newDefaultNS = MB_FALSE; String nsURI = element->getAttribute(XMLUtils::XMLNS); @@ -1690,7 +1689,7 @@ void XSLTProcessor::xslCopy(Node* node, Element* action, ProcessorState* ps) { //-- process template processTemplate(node, action, ps); ps->getNodeStack()->pop(); -#ifdef MOZ_XSL +#ifndef TX_EXE if ( newDefaultNS ) { ps->getDefaultNSURIStack()->pop(); } @@ -1745,7 +1744,7 @@ void XSLTProcessor::xslCopyOf(ExprResult* exprResult, ProcessorState* ps) { } } //-- xslCopyOf -#ifdef MOZ_XSL +#ifndef TX_EXE //#define PRINTF NS_LOG_PRINTF(XSLT) //#define FLUSH NS_LOG_FLUSH(XSLT) NS_IMETHODIMP diff --git a/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.h b/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.h index a095b774e79..804a2c66ce9 100644 --- a/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.h +++ b/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.h @@ -21,7 +21,6 @@ * Keith Visco, kvisco@ziplink.net * -- original author. * - * $Id: XSLTProcessor.h,v 1.19 2001-06-10 12:54:58 axel%pike.org Exp $ */ @@ -29,14 +28,14 @@ #define TRANSFRMX_XSLTPROCESSOR_H #ifndef __BORLANDC__ -#ifndef MOZ_XSL +#ifdef TX_EXE #include #include #endif #endif -#ifdef MOZ_XSL +#ifndef TX_EXE #include "nsIDocumentTransformer.h" #endif @@ -49,7 +48,7 @@ #include "ErrorObserver.h" #include "List.h" -#ifdef MOZ_XSL +#ifndef TX_EXE /* bacd8ad0-552f-11d3-a9f7-000064657374 */ #define TRANSFORMIIX_XSLT_PROCESSOR_CID \ { 0xbacd8ad0, 0x552f, 0x11d3, {0xa9, 0xf7, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74} } @@ -63,16 +62,16 @@ /** * A class for Processing XSL Stylesheets * @author Keith Visco - * @version $Revision: 1.19 $ $Date: 2001-06-10 12:54:58 $ + * @version $Revision: 1.20 $ $Date: 2001-06-10 16:41:51 $ **/ class XSLTProcessor -#ifdef MOZ_XSL +#ifndef TX_EXE : public nsIDocumentTransformer #endif { public: -#ifdef MOZ_XSL +#ifndef TX_EXE // nsISupports interface NS_DECL_ISUPPORTS // nsIDocumentTransformer interface @@ -113,7 +112,7 @@ public: //--------------------------------------------/ //-- Methods that return the Result Document -/ //--------------------------------------------/ -#ifndef MOZ_XSL +#ifdef TX_EXE /** * Parses all XML Stylesheet PIs associated with the * given XML document. If any stylesheet PIs are found with @@ -152,7 +151,7 @@ public: Document* process(istream& xmlInput, String& xmlFilename, istream& xslInput, String& xslFilename); -#ifndef MOZ_XSL +#ifdef TX_EXE /** * Reads an XML document from the given XML input stream. The * XML document is processed using the associated XSL document @@ -245,7 +244,7 @@ private: ProcessorState* ps); -#ifndef MOZ_XSL +#ifdef TX_EXE /** * Prints the given XML document to the given ostream and uses @@ -299,7 +298,7 @@ private: **/ void notifyError(String& errorMessage, ErrorObserver::ErrorLevel level); -#ifndef MOZ_XSL +#ifdef TX_EXE /** * Parses the contents of data, and returns the type and href psuedo attributes **/ diff --git a/mozilla/extensions/transformiix/source/xslt/functions/Makefile.in b/mozilla/extensions/transformiix/source/xslt/functions/Makefile.in index 7016e17fbf5..18d91dea1a6 100644 --- a/mozilla/extensions/transformiix/source/xslt/functions/Makefile.in +++ b/mozilla/extensions/transformiix/source/xslt/functions/Makefile.in @@ -26,7 +26,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -ifdef MOZ_XSL +ifndef TX_EXE MODULE = transformiix REQUIRES = string xpcom dom layout widget endif diff --git a/mozilla/extensions/transformiix/source/xslt/functions/makefile.win b/mozilla/extensions/transformiix/source/xslt/functions/makefile.win index 4d83c0b946b..ab54f31f0f5 100644 --- a/mozilla/extensions/transformiix/source/xslt/functions/makefile.win +++ b/mozilla/extensions/transformiix/source/xslt/functions/makefile.win @@ -22,8 +22,8 @@ DEPTH=..\..\..\..\.. include <$(DEPTH)/config/config.mak> -!if defined(MOZ_XSL) -DEFINES=$(DEFINES) -DMOZ_XSL +!if defined(TX_EXE) +DEFINES=$(DEFINES) -DTX_EXE !endif CPPSRCS= \ diff --git a/mozilla/extensions/transformiix/source/xslt/makefile.win b/mozilla/extensions/transformiix/source/xslt/makefile.win index e8e425a91b8..73fc9a5ae1b 100644 --- a/mozilla/extensions/transformiix/source/xslt/makefile.win +++ b/mozilla/extensions/transformiix/source/xslt/makefile.win @@ -24,8 +24,8 @@ include <$(DEPTH)/config/config.mak> DIRS=util functions -!if defined(MOZ_XSL) -DEFINES= $(DEFINES) -DMOZ_XSL +!if defined(TX_EXE) +DEFINES= $(DEFINES) -DTX_EXE !endif CPPSRCS= \ @@ -49,7 +49,7 @@ CPP_OBJS= \ EXPORTS = \ $(NULL) -!ifdef MOZ_XSL +!ifndef TX_EXE LINCS=-I$(PUBLIC)\xpcom -I$(PUBLIC)\raptor -I..\xpath -I..\xml\dom -I..\xml\dom\mozImpl \ -I..\base -I ..\xml -I ..\xml\util -I .\util -I ..\net -I..\xml\parser -I.\functions !else diff --git a/mozilla/extensions/transformiix/source/xslt/util/Makefile.in b/mozilla/extensions/transformiix/source/xslt/util/Makefile.in index cfc40120960..a28e2d177e8 100644 --- a/mozilla/extensions/transformiix/source/xslt/util/Makefile.in +++ b/mozilla/extensions/transformiix/source/xslt/util/Makefile.in @@ -26,7 +26,7 @@ VPATH = @srcdir@ include $(DEPTH)/config/autoconf.mk -ifdef MOZ_XSL +ifndef TX_EXE MODULE = transformiix REQUIRES = string xpcom dom layout widget endif diff --git a/mozilla/extensions/transformiix/source/xslt/util/NodeStack.cpp b/mozilla/extensions/transformiix/source/xslt/util/NodeStack.cpp index ef857bd0e46..ece135295fe 100644 --- a/mozilla/extensions/transformiix/source/xslt/util/NodeStack.cpp +++ b/mozilla/extensions/transformiix/source/xslt/util/NodeStack.cpp @@ -24,17 +24,16 @@ * Larry Fitzpatrick, OpenText, lef@opentext.com * -- moved initialization of DEFAULT_SIZE from NodeStack.h to here * - * $Id: NodeStack.cpp,v 1.4 2001-06-10 12:55:01 axel%pike.org Exp $ */ #include "NodeStack.h" -#ifndef MOZ_XSL +#ifdef TX_EXE #include #endif /** * @author Keith Visco - * @version $Revision: 1.4 $ $Date: 2001-06-10 12:55:01 $ + * @version $Revision: 1.5 $ $Date: 2001-06-10 16:45:36 $ **/ diff --git a/mozilla/extensions/transformiix/source/xslt/util/makefile.win b/mozilla/extensions/transformiix/source/xslt/util/makefile.win index c70e7323d22..b30f74802eb 100644 --- a/mozilla/extensions/transformiix/source/xslt/util/makefile.win +++ b/mozilla/extensions/transformiix/source/xslt/util/makefile.win @@ -22,8 +22,8 @@ DEPTH=..\..\..\..\.. include <$(DEPTH)/config/config.mak> -!if defined(MOZ_XSL) -DEFINES=$(DEFINES) -DMOZ_XSL +!if defined(TX_EXE) +DEFINES=$(DEFINES) -DTX_EXE !endif CPPSRCS= \