r1676 - branches/bxe_2_0/relaxng
[email protected] Mon, 14 May 2007 15:36:08 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Mon May 14 15:36:08 2007
New Revision: 1676
Log:
replace dump with bxe_dump
Modified:
branches/bxe_2_0/relaxng/ElementVAL.js
branches/bxe_2_0/relaxng/NodeVAL.js
branches/bxe_2_0/relaxng/NodeVDOM.js
branches/bxe_2_0/relaxng/RelaxNG.js
Modified: branches/bxe_2_0/relaxng/ElementVAL.js
==============================================================================
--- branches/bxe_2_0/relaxng/ElementVAL.js (original)
+++ branches/bxe_2_0/relaxng/ElementVAL.js Mon May 14 15:36:08 2007
@@ -169,7 +169,7 @@
}
return ac;
} catch(e){
- dump("end with catch get allowed nextSibling for " + this.nodeName);
+ bxe_dump("end with catch get allowed nextSibling for " + this.nodeName);
bxe_catch_alert(e);
return ac;
}
Modified: branches/bxe_2_0/relaxng/NodeVAL.js
==============================================================================
--- branches/bxe_2_0/relaxng/NodeVAL.js (original)
+++ branches/bxe_2_0/relaxng/NodeVAL.js Mon May 14 15:36:08 2007
@@ -48,7 +48,7 @@
}
Attr.prototype._isNodeValid = function(wFValidityCheckLevel ) {
- //dump("Attr Check: " + this.name + "\n");
+ //bxe_dump("Attr Check: " + this.name + "\n");
}
XMLNode.prototype._isNodeValid = function(deep,wFValidityCheckLevel ) {
@@ -71,10 +71,10 @@
return false;
}
- } catch (e) { dump ("couldn't make new context..\n");}
+ } catch (e) { bxe_dump("couldn't make new context..\n");}
if (ctxt && ctxt.node) {
do {
- //dump(ctxt.node + "\n");
+ //bxe_dump(ctxt.node + "\n");
var nodeType = ctxt.node._node.nodeType
if (nodeType == 3 && ctxt.node.isWhitespaceOnly) {
continue;
@@ -88,8 +88,8 @@
}
if ( ctxt.isValid()) {
- /*dump(ctxt.node.parentNode.nodeName + " -> " +ctxt.node.nodeName + " is valid and has ");
- dump(ctxt.node.hasChildNodes() + " childNodes \n");*/
+ /*bxe_dump(ctxt.node.parentNode.nodeName + " -> " +ctxt.node.nodeName + " is valid and has ");
+ bxe_dump(ctxt.node.hasChildNodes() + " childNodes \n");*/
var _node = ctxt.node._node;
if(_node.hasChildNodes() ) {
if (deep) {
@@ -191,7 +191,7 @@
}
ContextVDOM.prototype.dumpErrorMessages = function() {
- dump("Error :\n" + this.getErrorMessagesAsText());
+ bxe_dump("Error :\n" + this.getErrorMessagesAsText());
}
ContextVDOM.prototype.nextVDOM = function() {
@@ -213,7 +213,7 @@
return this.vdom.isValid(this);
} else {
if (this.node._node.hasChildNodes()) {
- //dump(this.node.nodeName + " is not allowed to have children \n");
+ //bxe_dump(this.node.nodeName + " is not allowed to have children \n");
this.setErrorMessage(this.node.nodeName + " is not allowed to have children")
return false;
} else {
Modified: branches/bxe_2_0/relaxng/NodeVDOM.js
==============================================================================
--- branches/bxe_2_0/relaxng/NodeVDOM.js (original)
+++ branches/bxe_2_0/relaxng/NodeVDOM.js Mon May 14 15:36:08 2007
@@ -55,7 +55,7 @@
}
}
NodeVDOM.prototype.isValid = function(node) {
- //dump("\n---NodeVDOM.prototype.isValid----\n");
+ //bxe_dump("\n---NodeVDOM.prototype.isValid----\n");
return true;
}
Modified: branches/bxe_2_0/relaxng/RelaxNG.js
==============================================================================
--- branches/bxe_2_0/relaxng/RelaxNG.js (original)
+++ branches/bxe_2_0/relaxng/RelaxNG.js Mon May 14 15:36:08 2007
@@ -30,18 +30,18 @@
//setup nsResolver
rng_nsResolver = new bxe_RelaxNG_nsResolver(this.xmldoc.documentElement);
//do includes
- dump ("Start parseIncludes " + (new Date()- startTimer)/1000 + " sec\n");
+ bxe_dump("Start parseIncludes " + (new Date()- startTimer)/1000 + " sec\n");
this.parseIncludes();
- dump ("Start derefAttributes " + (new Date() - startTimer)/1000 + " sec\n");
+ bxe_dump("Start derefAttributes " + (new Date() - startTimer)/1000 + " sec\n");
this.dereferenceAttributes();
var endTimer = new Date();
- dump ("Start parsing RNG " + (endTimer - startTimer)/1000 + " sec\n");
+ bxe_dump("Start parsing RNG " + (endTimer - startTimer)/1000 + " sec\n");
if (DebugOutput) {
- //dump(this.xmldoc.saveXML(this.xmldoc));
+ //bxe_dump(this.xmldoc.saveXML(this.xmldoc));
}
- //dump(this.xmldoc.saveXML(this.xmldoc));
+ //bxe_dump(this.xmldoc.saveXML(this.xmldoc));
var rootChildren = this.xmldoc.documentElement.childNodes;
var startExists = false;
@@ -55,7 +55,7 @@
if (!startExists) {
alert("No <start> element found.");
}
- dump ("End parsing RNG " + (new Date() - startTimer)/1000 + " sec\n");
+ bxe_dump("End parsing RNG " + (new Date() - startTimer)/1000 + " sec\n");
return true;
}
@@ -306,9 +306,9 @@
startElement.previousSibling = null;
}
// debug(startNode );
- //dump("before parseChildren");
+ //bxe_dump("before parseChildren");
startElement.parseChildren();
- //dump("RelaxNG is parsed\n");
+ //bxe_dump("RelaxNG is parsed\n");
}
@@ -393,7 +393,7 @@
)
Node.prototype.isRelaxNGElement = function(nodename) {
-// dump ("isRelaxNGElement" + this.nodeType + " " + this.nodeName + " " + this.hasRelaxNGNamespace + "\n");
+// bxe_dump("isRelaxNGElement" + this.nodeType + " " + this.nodeName + " " + this.hasRelaxNGNamespace + "\n");
if (this.nodeType == Node.ELEMENT_NODE && this.nodeName == nodename && this.hasRelaxNGNamespace) {
return true;
} else {
@@ -651,10 +651,10 @@
var nextSib = this.nextSibling;
/*
for (var i = 0; i < ctxt.refs.length; i++) {
- dump (".");
+ bxe_dump(".");
}
- dump ("NodeName: " + this.nodeName + " " + this.name + " Node: " + ctxt.node.nodeName);
- dump ("\n");*/
+ bxe_dump("NodeName: " + this.nodeName + " " + this.name + " Node: " + ctxt.node.nodeName);
+ bxe_dump("\n");*/
if (!nextSib && this.parentNode && this.parentNode.nodeName == "RELAXNG_DEFINE") {
return this.parentNode.getNextSibling(ctxt);
}
@@ -922,7 +922,7 @@
}
TextVDOM.prototype.isValid = function(ctxt) {
- //dump("TextVDOM.isValid :" + ctxt.node.data + ":\n");
+ //bxe_dump("TextVDOM.isValid :" + ctxt.node.data + ":\n");
if (ctxt.node._node.nodeType == Node.TEXT_NODE) {
return true;
} else {
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs