From 1fb49fa1e582d83e890f6ceeda44996e8690d989 Mon Sep 17 00:00:00 2001 From: "axel%pike.org" Date: Sun, 10 Jun 2001 11:30:48 +0000 Subject: [PATCH] bug 81414, build standalone transformiix, MOZ_XSL->!TX_EXE, r=peterv,cls, sr=scc, a=dbaron (on behalf of drivers) git-svn-id: svn://10.0.0.236/trunk@96804 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 | 6 ++-- .../transformiix/source/base/Makefile.in | 8 ++--- .../source/base/MozillaString.cpp | 2 +- .../transformiix/source/base/StringList.cpp | 6 ++-- .../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 | 14 ++++----- .../transformiix/source/net/URIUtils.h | 6 ++-- .../transformiix/source/net/makefile.win | 4 +-- .../transformiix/source/xml/Makefile.in | 4 +-- .../transformiix/source/xml/XMLDOMUtils.cpp | 10 +++---- .../transformiix/source/xml/dom/Makefile.in | 2 +- .../transformiix/source/xml/dom/dom.h | 4 +-- .../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 | 6 ++-- .../source/xml/parser/Makefile.in | 6 ++-- .../source/xml/parser/XMLParser.cpp | 10 +++---- .../source/xml/parser/XMLParser.h | 12 ++++---- .../source/xml/parser/makefile.win | 8 ++--- .../source/xml/printer/makefile.win | 4 +-- .../source/xml/util/DOMHelper.cpp | 6 ++-- .../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 | 6 ++-- .../transformiix/source/xpath/makefile.win | 8 ++--- .../transformiix/source/xslt/Makefile.in | 2 +- .../source/xslt/ProcessorState.cpp | 12 ++++---- .../source/xslt/XSLTProcessor.cpp | 30 +++++++++---------- .../transformiix/source/xslt/XSLTProcessor.h | 22 +++++++------- .../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 | 6 ++-- .../source/xslt/util/makefile.win | 4 +-- 50 files changed, 145 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 b3ee3a6e701..a87de5a4f2f 100644 --- a/mozilla/extensions/transformiix/source/base/List.cpp +++ b/mozilla/extensions/transformiix/source/base/List.cpp @@ -23,11 +23,11 @@ * Bob Miller, kbob@oblix.com * -- plugged core leak. * - * $Id: List.cpp,v 1.6 2001-04-03 12:37:53 peterv%netscape.com Exp $ + * $Id: List.cpp,v 1.7 2001-06-10 11:30:24 axel%pike.org Exp $ */ #include "List.h" -#ifndef MOZ_XSL +#ifdef TX_EXE #include #endif @@ -38,7 +38,7 @@ /** * Default constructor for a List; * @author Keith Visco - * @version $Revision: 1.6 $ $Date: 2001-04-03 12:37:53 $ + * @version $Revision: 1.7 $ $Date: 2001-06-10 11:30:24 $ **/ 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 a73ae94fc49..8cc99dabb01 100644 --- a/mozilla/extensions/transformiix/source/base/StringList.cpp +++ b/mozilla/extensions/transformiix/source/base/StringList.cpp @@ -23,16 +23,16 @@ * Bob Miller, kbob@oblix.com * -- plugged core leak. * - * $Id: StringList.cpp,v 1.6 2001-04-03 12:37:57 peterv%netscape.com Exp $ + * $Id: StringList.cpp,v 1.7 2001-06-10 11:30:25 axel%pike.org Exp $ */ /** * StringList * @author Keith Visco - * @version $Revision: 1.6 $ $Date: 2001-04-03 12:37:57 $ + * @version $Revision: 1.7 $ $Date: 2001-06-10 11:30:25 $ **/ -#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 2f96193f348..213fbe9bc58 100644 --- a/mozilla/extensions/transformiix/source/net/URIUtils.cpp +++ b/mozilla/extensions/transformiix/source/net/URIUtils.cpp @@ -29,12 +29,12 @@ * -- 20000326 * -- added Mozilla integration code * - * $Id: URIUtils.cpp,v 1.11 2001-04-12 10:13:15 peterv%netscape.com Exp $ + * $Id: URIUtils.cpp,v 1.12 2001-06-10 11:30:28 axel%pike.org Exp $ */ #include "URIUtils.h" -#ifdef MOZ_XSL +#ifndef TX_EXE #include "nsIServiceManager.h" #include "nsIIOService.h" #include "nsIURL.h" @@ -46,10 +46,10 @@ * URIUtils * A set of utilities for handling URIs * @author Keith Visco - * @version $Revision: 1.11 $ $Date: 2001-04-12 10:13:15 $ + * @version $Revision: 1.12 $ $Date: 2001-06-10 11:30:28 $ **/ -#ifndef MOZ_XSL +#ifdef TX_EXE //- Constants -/ const String URIUtils::HTTP_PROTOCOL = "http"; @@ -100,7 +100,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 +155,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 +238,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 595e61903e2..460058d6ad2 100644 --- a/mozilla/extensions/transformiix/source/net/URIUtils.h +++ b/mozilla/extensions/transformiix/source/net/URIUtils.h @@ -31,7 +31,7 @@ * -- 20000326 * -- added Mozilla integration code * - * $Id: URIUtils.h,v 1.13 2001-04-12 10:13:12 peterv%netscape.com Exp $ + * $Id: URIUtils.h,v 1.14 2001-06-10 11:30:29 axel%pike.org Exp $ */ #ifndef TRANSFRMX_URIUTILS_H @@ -39,7 +39,7 @@ #include "TxString.h" #include "baseutils.h" -#ifndef MOZ_XSL +#ifdef TX_EXE #include #endif @@ -48,7 +48,7 @@ * A utility class for URI handling * Not yet finished, only handles file URI at this point * @author Keith Visco - * @version $Revision: 1.13 $ $Date: 2001-04-12 10:13:12 $ + * @version $Revision: 1.14 $ $Date: 2001-06-10 11:30:29 $ * **/ 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 85b332d4015..b97f6adac72 100644 --- a/mozilla/extensions/transformiix/source/xml/XMLDOMUtils.cpp +++ b/mozilla/extensions/transformiix/source/xml/XMLDOMUtils.cpp @@ -21,13 +21,13 @@ * Keith Visco * -- original author. * - * $Id: XMLDOMUtils.cpp,v 1.13 2001-05-14 14:22:41 axel%pike.org Exp $ + * $Id: XMLDOMUtils.cpp,v 1.14 2001-06-10 11:30:30 axel%pike.org Exp $ */ /** * XMLDOMUtils * @author Keith Visco - * @version $Revision: 1.13 $ $Date: 2001-05-14 14:22:41 $ + * @version $Revision: 1.14 $ $Date: 2001-06-10 11:30:30 $ **/ #include "XMLDOMUtils.h" @@ -63,7 +63,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 +86,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 +100,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 561539fd629..4246608cafc 100644 --- a/mozilla/extensions/transformiix/source/xml/dom/dom.h +++ b/mozilla/extensions/transformiix/source/xml/dom/dom.h @@ -16,13 +16,13 @@ * Peter Van der Beken * -- original author * - * $Id: dom.h,v 1.9 2001-04-08 14:34:22 peterv%netscape.com Exp $ + * $Id: dom.h,v 1.10 2001-06-10 11:30:32 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..d4d4a733034 100644 --- a/mozilla/extensions/transformiix/source/xml/makefile.win +++ b/mozilla/extensions/transformiix/source/xml/makefile.win @@ -24,10 +24,10 @@ include <$(DEPTH)/config/config.mak> DIRS=dom parser util -!if defined(MOZ_XSL) -DEFINES=$(DEFINES) -DMOZ_XSL -!else +!if defined(TX_EXE) DIRS = $(DIRS) printer +!else +DEFINES=$(DEFINES) -DTX_EXE !endif CPPSRCS= \ 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 9eee6640f6f..cba2b0c147c 100644 --- a/mozilla/extensions/transformiix/source/xml/parser/XMLParser.cpp +++ b/mozilla/extensions/transformiix/source/xml/parser/XMLParser.cpp @@ -34,11 +34,11 @@ * -- Removed a number of castings of XML_Char to DOM_CHAR since they * were not working on Windows properly * - * $Id: XMLParser.cpp,v 1.15 2001-04-12 10:13:07 peterv%netscape.com Exp $ + * $Id: XMLParser.cpp,v 1.16 2001-06-10 11:30:37 axel%pike.org Exp $ */ #include "XMLParser.h" -#ifdef MOZ_XSL +#ifndef TX_EXE #include "nsSyncLoader.h" #include "URIUtils.h" #include "nsIIOService.h" @@ -69,7 +69,7 @@ **/ XMLParser::XMLParser() { -#ifndef MOZ_XSL +#ifdef TX_EXE errorState = MB_FALSE; #endif } //-- XMLParser @@ -87,7 +87,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 +123,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 affec14f50f..6a2ca7c276c 100644 --- a/mozilla/extensions/transformiix/source/xml/parser/XMLParser.h +++ b/mozilla/extensions/transformiix/source/xml/parser/XMLParser.h @@ -23,7 +23,7 @@ * Keith Visco * -- finished implementation * - * $Id: XMLParser.h,v 1.9 2001-04-08 14:34:53 peterv%netscape.com Exp $ + * $Id: XMLParser.h,v 1.10 2001-06-10 11:30:37 axel%pike.org Exp $ */ #ifndef MITRE_XMLPARSER_H @@ -33,7 +33,7 @@ #ifndef XML_UNICODE #define XML_UNICODE #endif -#ifndef MOZ_XSL +#ifdef TX_EXE #include "xmlparse.h" #include "URIUtils.h" #endif @@ -49,11 +49,11 @@ typedef struct { * parsing is provided by EXPAT. * @author Tom Kneeland * @author Keith Visco - * @version $Revision: 1.9 $ $Date: 2001-04-08 14:34:53 $ + * @version $Revision: 1.10 $ $Date: 2001-06-10 11:30:37 $ **/ class XMLParser { -#ifndef MOZ_XSL +#ifdef TX_EXE /*-----------------6/18/99 12:43PM------------------ * Sax related methods for XML parsers * --------------------------------------------------*/ @@ -71,7 +71,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 +84,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 82d717be536..bbe67684106 100644 --- a/mozilla/extensions/transformiix/source/xml/util/DOMHelper.cpp +++ b/mozilla/extensions/transformiix/source/xml/util/DOMHelper.cpp @@ -19,13 +19,13 @@ * Keith Visco, kvisco@ziplink.net * -- original author. * - * $Id: DOMHelper.cpp,v 1.9 2001-04-12 14:12:11 peterv%netscape.com Exp $ + * $Id: DOMHelper.cpp,v 1.10 2001-06-10 11:30:40 axel%pike.org Exp $ */ /** * A class used to overcome DOM 1.0 deficiencies * @author Keith Visco - * @version $Revision: 1.9 $ $Date: 2001-04-12 14:12:11 $ + * @version $Revision: 1.10 $ $Date: 2001-06-10 11:30:40 $ **/ #include "DOMHelper.h" @@ -116,7 +116,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 32481565719..559b7e0c397 100644 --- a/mozilla/extensions/transformiix/source/xpath/NodeSet.cpp +++ b/mozilla/extensions/transformiix/source/xpath/NodeSet.cpp @@ -27,12 +27,12 @@ * Olivier Gerardin, ogerardin@vo.lu * -- fixed numberValue() * - * $Id: NodeSet.cpp,v 1.6 2001-02-15 09:21:00 axel%pike.org Exp $ + * $Id: NodeSet.cpp,v 1.7 2001-06-10 11:30:42 axel%pike.org Exp $ */ #include "NodeSet.h" #include "XMLDOMUtils.h" -#ifndef MOZ_XSL +#ifdef TX_EXE #include #endif @@ -40,7 +40,7 @@ * NodeSet
* This class was ported from XSL:P.
* @author Keith Visco - * @version $Revision: 1.6 $ $Date: 2001-02-15 09:21:00 $ + * @version $Revision: 1.7 $ $Date: 2001-06-10 11:30:42 $ **/ diff --git a/mozilla/extensions/transformiix/source/xpath/makefile.win b/mozilla/extensions/transformiix/source/xpath/makefile.win index 11f49ab1830..10349f7f4c3 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 undefined(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 undefined(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 193a2d174c3..9ce58e5c9ea 100644 --- a/mozilla/extensions/transformiix/source/xslt/ProcessorState.cpp +++ b/mozilla/extensions/transformiix/source/xslt/ProcessorState.cpp @@ -25,13 +25,13 @@ * -- added code in ::resolveFunctionCall to support the * document() function. * - * $Id: ProcessorState.cpp,v 1.26 2001-05-14 14:22:49 axel%pike.org Exp $ + * $Id: ProcessorState.cpp,v 1.27 2001-06-10 11:30:44 axel%pike.org Exp $ */ /** * Implementation of ProcessorState * Much of this code was ported from XSL:P - * @version $Revision: 1.26 $ $Date: 2001-05-14 14:22:49 $ + * @version $Revision: 1.27 $ $Date: 2001-06-10 11:30:44 $ **/ #include "ProcessorState.h" @@ -44,7 +44,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 +208,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 +219,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 +246,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 61e4492317f..89269cf7afb 100644 --- a/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.cpp +++ b/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.cpp @@ -38,7 +38,7 @@ * Olivier Gerardin * -- Changed behavior of passing parameters to templates * - * $Id: XSLTProcessor.cpp,v 1.48 2001-05-16 11:18:18 peterv%netscape.com Exp $ + * $Id: XSLTProcessor.cpp,v 1.49 2001-06-10 11:30:44 axel%pike.org Exp $ */ #include "XSLTProcessor.h" @@ -51,7 +51,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 +73,7 @@ /** * XSLTProcessor is a class for Processing XSL stylesheets * @author Keith Visco - * @version $Revision: 1.48 $ $Date: 2001-05-16 11:18:18 $ + * @version $Revision: 1.49 $ $Date: 2001-06-10 11:30:44 $ **/ /** @@ -88,7 +88,7 @@ const String XSLTProcessor::NON_TEXT_TEMPLATE_WARNING = **/ XSLTProcessor::XSLTProcessor() { -#ifdef MOZ_XSL +#ifndef TX_EXE NS_INIT_ISUPPORTS(); #endif @@ -138,7 +138,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 +166,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 +215,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 +555,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 +708,7 @@ void XSLTProcessor::process delete xslDoc; } //-- process -#endif // ifndef MOZ_XSL +#endif // ifdef TX_EXE //-------------------/ //- Private Methods -/ @@ -1101,7 +1101,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 +1332,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 +1396,7 @@ void XSLTProcessor::processAction tmp = tmp->getNextSibling(); } ps->getNodeStack()->pop(); -#ifdef MOZ_XSL +#ifndef TX_EXE if ( newDefaultNS ) { ps->getDefaultNSURIStack()->pop(); } @@ -1658,7 +1658,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 +1690,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 +1745,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 a2d270052c2..f134ef944e3 100644 --- a/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.h +++ b/mozilla/extensions/transformiix/source/xslt/XSLTProcessor.h @@ -21,7 +21,7 @@ * Keith Visco, kvisco@ziplink.net * -- original author. * - * $Id: XSLTProcessor.h,v 1.17 2001-05-15 06:13:02 axel%pike.org Exp $ + * $Id: XSLTProcessor.h,v 1.18 2001-06-10 11:30:44 axel%pike.org Exp $ */ @@ -29,14 +29,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 +49,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 +63,16 @@ /** * A class for Processing XSL Stylesheets * @author Keith Visco - * @version $Revision: 1.17 $ $Date: 2001-05-15 06:13:02 $ + * @version $Revision: 1.18 $ $Date: 2001-06-10 11:30:44 $ **/ 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 +113,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 +152,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 +245,7 @@ private: ProcessorState* ps); -#ifndef MOZ_XSL +#ifdef TX_EXE /** * Prints the given XML document to the given ostream and uses @@ -299,7 +299,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 86f2799b505..29b728459c6 100644 --- a/mozilla/extensions/transformiix/source/xslt/util/NodeStack.cpp +++ b/mozilla/extensions/transformiix/source/xslt/util/NodeStack.cpp @@ -24,17 +24,17 @@ * Larry Fitzpatrick, OpenText, lef@opentext.com * -- moved initialization of DEFAULT_SIZE from NodeStack.h to here * - * $Id: NodeStack.cpp,v 1.2 2001-01-12 20:06:48 axel%pike.org Exp $ + * $Id: NodeStack.cpp,v 1.3 2001-06-10 11:30:47 axel%pike.org Exp $ */ #include "NodeStack.h" -#ifndef MOZ_XSL +#ifdef TX_EXE #include #endif /** * @author Keith Visco - * @version $Revision: 1.2 $ $Date: 2001-01-12 20:06:48 $ + * @version $Revision: 1.3 $ $Date: 2001-06-10 11:30:47 $ **/ 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= \