Not part of the build, a=leaf
Bringing Makefiles uptodate with String changes Get testcase going into new chrome structure. git-svn-id: svn://10.0.0.236/trunk@70916 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -49,7 +49,7 @@ OBJS =../source/base/ArrayList.o \
|
||||
../source/base/StringComparator.o \
|
||||
../source/base/StringList.o \
|
||||
../source/base/Tokenizer.o \
|
||||
../source/base/TxString.o \
|
||||
../source/base/MozillaString.o \
|
||||
../source/net/URIUtils.o \
|
||||
../source/xml/dom/mozImpl/MozillaAttr.o \
|
||||
../source/xml/dom/mozImpl/MozillaCDATASection.o \
|
||||
@@ -111,8 +111,6 @@ OBJS =../source/base/ArrayList.o \
|
||||
../source/xml/parser/xmlrole.o \
|
||||
../source/xml/parser/xmlparse.o \
|
||||
../source/xml/parser/xmltok.o \
|
||||
../source/xml/printer/XMLPrinter.o \
|
||||
../source/xml/printer/HTMLPrinter.o \
|
||||
../source/xslt/OutputFormat.o \
|
||||
../source/xslt/Names.o \
|
||||
../source/xslt/Numbering.o \
|
||||
|
||||
@@ -30,6 +30,8 @@ DIRS = base net xml xpath xslt
|
||||
|
||||
ifndef MOZ_XSL
|
||||
DIRS += main
|
||||
else
|
||||
DIRS += examples
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -38,11 +38,15 @@ CPPSRCS = ArrayList.cpp \
|
||||
NamedMap.cpp \
|
||||
SimpleErrorObserver.cpp \
|
||||
Stack.cpp \
|
||||
TxString.cpp \
|
||||
StringComparator.cpp \
|
||||
StringList.cpp \
|
||||
Tokenizer.cpp
|
||||
|
||||
ifdef MOZ_XSL
|
||||
CPPSRCS += MozillaString.cpp
|
||||
else
|
||||
CPPSRCS += TxString.cpp
|
||||
endif
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifdef MOZ_XSL
|
||||
|
||||
@@ -19,13 +19,13 @@
|
||||
# Axel Hecht <axel@pike.org>
|
||||
#
|
||||
|
||||
DEPTH = ..
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = junksss
|
||||
DIRS = mozilla
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -19,13 +19,13 @@
|
||||
# Axel Hecht <axel@pike.org>
|
||||
#
|
||||
|
||||
DEPTH = ..
|
||||
DEPTH = ../../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = junksss
|
||||
DIRS = Transformiix
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is Transformiix XSLT Processor.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Axel Hecht.
|
||||
# Portions created by Axel Hecht are Copyright (C) Axel Hecht.
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Axel Hecht <axel@pike.org>
|
||||
#
|
||||
|
||||
DEPTH = ../../../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = content
|
||||
|
||||
CHROME_DIR = packages/transformiix
|
||||
CHROME_MISC_DIR = .
|
||||
CHROME_TYPE = content skin
|
||||
|
||||
CHROME_MISC = \
|
||||
manifest.rdf \
|
||||
$(NULL)
|
||||
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -0,0 +1,4 @@
|
||||
simple.xml
|
||||
simplexsl.xml
|
||||
transformiix.js
|
||||
transformiix.xul
|
||||
@@ -19,13 +19,21 @@
|
||||
# Axel Hecht <axel@pike.org>
|
||||
#
|
||||
|
||||
DEPTH = ..
|
||||
DEPTH = ../../../../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = junksss
|
||||
CHROME_DIR=packages/transformiix
|
||||
CHROME_CONTENT_DIR=transformiix/content
|
||||
|
||||
CHROME_CONTENT = \
|
||||
transformiix.xul \
|
||||
transformiix.js \
|
||||
simple.xml \
|
||||
simplexsl.xml \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -25,32 +25,34 @@
|
||||
|
||||
var xmlLoaded, xslLoaded;
|
||||
var xmlDocument, xslDocument, resultDocument;
|
||||
var theXMLURL = "chrome://transformiix/content/simple.xml";
|
||||
var theXSLURL = "chrome://transformiix/content/simplexsl.xml";
|
||||
|
||||
function onLoadTransformiix()
|
||||
{
|
||||
var theXMLURL = "chrome://Transformiix/content/simple.xml";
|
||||
var theXSLURL = "chrome://Transformiix/content/simplexsl.xml";
|
||||
onTransform();
|
||||
}
|
||||
|
||||
var docShellElement = document.getElementById("xml-source");
|
||||
var docShell = docShellElement.docShell;
|
||||
docShell.viewMode = Components.interfaces.nsIDocShell.viewSource;
|
||||
var webNav = docShell.QueryInterface(Components.interfaces.nsIWebNavigation);
|
||||
webNav.loadURI(theXMLURL);
|
||||
|
||||
docShellElement = document.getElementById("xsl-source");
|
||||
docShell = docShellElement.docShell;
|
||||
docShell.viewMode = Components.interfaces.nsIDocShell.viewSource;
|
||||
webNav = docShell.QueryInterface(Components.interfaces.nsIWebNavigation);
|
||||
webNav.loadURI(theXSLURL);
|
||||
|
||||
docShellElement = document.getElementById("result-doc");
|
||||
resultDocument = docShellElement.contentDocument;
|
||||
xmlDocument = resultDocument.implementation.createDocument("", "", null);
|
||||
xmlDocument.addEventListener("load", xmlDocumentLoaded, false);
|
||||
xmlDocument.load(theXMLURL, "text/xml");
|
||||
xslDocument = resultDocument.implementation.createDocument("", "", null);
|
||||
xslDocument.addEventListener("load", xslDocumentLoaded, false);
|
||||
xslDocument.load(theXSLURL, "text/xml");
|
||||
function onTransform()
|
||||
{
|
||||
var docShellElement = document.getElementById("xml-source");
|
||||
var docShell = docShellElement.docShell;
|
||||
docShell.viewMode = Components.interfaces.nsIDocShell.viewSource;
|
||||
var webNav = docShell.QueryInterface(Components.interfaces.nsIWebNavigation);
|
||||
webNav.loadURI(theXMLURL);
|
||||
docShellElement = document.getElementById("xsl-source");
|
||||
docShell = docShellElement.docShell;
|
||||
docShell.viewMode = Components.interfaces.nsIDocShell.viewSource;
|
||||
webNav = docShell.QueryInterface(Components.interfaces.nsIWebNavigation);
|
||||
webNav.loadURI(theXSLURL);
|
||||
docShellElement = document.getElementById("result-doc");
|
||||
resultDocument = webNav.document;
|
||||
xmlDocument = resultDocument.implementation.createDocument("", "", null);
|
||||
xmlDocument.addEventListener("load", xmlDocumentLoaded, false);
|
||||
xmlDocument.load(theXMLURL, "text/xml");
|
||||
xslDocument = resultDocument.implementation.createDocument("", "", null);
|
||||
xslDocument.addEventListener("load", xslDocumentLoaded, false);
|
||||
xslDocument.load(theXSLURL, "text/xml");
|
||||
}
|
||||
|
||||
function xmlDocumentLoaded(e) {
|
||||
@@ -64,20 +66,23 @@ function xslDocumentLoaded(e) {
|
||||
}
|
||||
|
||||
function tryToTransform() {
|
||||
if (xmlLoaded && xslLoaded) {
|
||||
try {
|
||||
var xsltProcessor = null;
|
||||
var xmlDocumentNode = xmlDocument.documentElement;
|
||||
var xslDocumentNode = xslDocument.documentElement;
|
||||
|
||||
xsltProcessor = Components.classes["component://netscape/document-transformer?type=text/xsl"].getService();
|
||||
if (xsltProcessor) xsltProcessor = xsltProcessor.QueryInterface(Components.interfaces.nsIDocumentTransformer);
|
||||
}
|
||||
catch (ex) {
|
||||
dump("failed to get transformiix service!\n");
|
||||
xsltProcessor = null;
|
||||
}
|
||||
var newDocument = resultDocument.implementation.createDocument("", "", null);
|
||||
xsltProcessor.transformDocument(xmlDocumentNode, xslDocumentNode, newDocument, null);
|
||||
}
|
||||
if (xmlLoaded && xslLoaded) {
|
||||
try {
|
||||
var xsltProcessor = null;
|
||||
var xmlDocumentNode = xmlDocument.documentElement;
|
||||
var xslDocumentNode = xslDocument.documentElement;
|
||||
|
||||
xsltProcessor = Components.classes["component://netscape/document-transformer?type=text/xsl"].getService();
|
||||
if (xsltProcessor) xsltProcessor = xsltProcessor.QueryInterface(Components.interfaces.nsIDocumentTransformer);
|
||||
}
|
||||
catch (ex) {
|
||||
dump("failed to get transformiix service!\n");
|
||||
xsltProcessor = null;
|
||||
}
|
||||
dump("Mal sehen, "+xsltProcessor+"\n");
|
||||
var outDocument = resultDocument.implementation.createDocument("", "", null);
|
||||
xsltProcessor.TransformDocument(xmlDocumentNode, xslDocumentNode, outDocument, null);
|
||||
DumpDOM(outDocument.documentElement);
|
||||
DumpDOM(xmlDocument.documentElement);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,20 +21,22 @@
|
||||
|
||||
Contributor(s):
|
||||
Peter Van der Beken, peter.vanderbeken@pandora.be
|
||||
-- original author.
|
||||
- original author.
|
||||
|
||||
-->
|
||||
|
||||
<!DOCTYPE window>
|
||||
|
||||
<!--
|
||||
<?xml-stylesheet href="chrome://Transformiix/skin" type="text/css"?>
|
||||
-->
|
||||
<?xul-overlay href="chrome://global/content/globalOverlay.xul"?>
|
||||
|
||||
<window xmlns:html="http://www.w3.org/TR/REC-html40"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
align="vertical" onload="onLoadTransformiix();">
|
||||
|
||||
<html:script src="chrome://Transformiix/content/transformiix.js"/>
|
||||
<script language="javascript" src="chrome://Transformiix/content/transformiix.js"/>
|
||||
<script language="javascript" src="resource:/res/samples/DumpDOM.js"/>
|
||||
|
||||
<box id="tool-box" flex="1" align="horizontal">
|
||||
</box>
|
||||
@@ -43,7 +45,7 @@
|
||||
<iframe id="xml-source" class="doc-container" align="horizontal" src="about:blank" flex="1"/>
|
||||
<iframe id="xsl-source" class="doc-container" align="horizontal" src="about:blank" flex="1"/>
|
||||
</box>
|
||||
<html:iframe id="result-doc" class="doc-container" align="vertical" src="about:blank" flex="50"/>
|
||||
<iframe id="result-doc" class="doc-container" align="vertical" src="about:blank" flex="50"/>
|
||||
</box>
|
||||
|
||||
</window>
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:chrome="http://www.mozilla.org/rdf/chrome#">
|
||||
|
||||
<!-- list all the packages being supplied by this jar -->
|
||||
<RDF:Seq about="urn:mozilla:package:root">
|
||||
<RDF:li resource="urn:mozilla:package:transformiix"/>
|
||||
</RDF:Seq>
|
||||
<RDF:Seq about="urn:mozilla:skin:root">
|
||||
<RDF:li resource="urn:mozilla:skin:modern/1.0" />
|
||||
</RDF:Seq>
|
||||
|
||||
<!-- package information -->
|
||||
<RDF:Description about="urn:mozilla:package:transformiix"
|
||||
chrome:displayName="Transformiix"
|
||||
chrome:author="Peter Van der Beken"
|
||||
chrome:name="Transformiix">
|
||||
</RDF:Description>
|
||||
|
||||
</RDF:RDF>
|
||||
@@ -0,0 +1 @@
|
||||
transformiix.css
|
||||
@@ -19,13 +19,21 @@
|
||||
# Axel Hecht <axel@pike.org>
|
||||
#
|
||||
|
||||
DEPTH = ..
|
||||
DEPTH = ../../../../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = junksss
|
||||
CHROME_DIR=packages/Transformiix
|
||||
CHROME_CONTENT_DIR=Transformiix/content
|
||||
|
||||
CHROME_CONTENT = \
|
||||
transformiix.xul \
|
||||
transformiix.js \
|
||||
simple.xml \
|
||||
simplexsl.xml \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
Reference in New Issue
Block a user