rem: var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver); complexType = complexType_result.iterateNext(); BX_elements[name]["allowedElements"] = ""; if (complexType) { if (complexType.getAttribute("mixed") == "true") { BX_elements[name]["allowedElements"] = "#PCDATA | "; } var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver); 
add:  var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver); while (appinfo_node = appinfo_result.iterateNext()) { if (appinfo_node.namespaceURI == "http: switch(appinfo_node.localName) { case "returnelement": BX_elements[name]["returnElement"] = appinfo_node.firstChild.data; break; case "name": BX_elements[name]["name"] = appinfo_node.firstChild.data; break; case "noaddparas": BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data; break; case "originalname": BX_elements[name]["originalName"] = appinfo_node.firstChild.data; break; case "requiredattributes": BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data; break; case "addalso": BX_elements[name]["addAlso"] = appinfo_node.firstChild.data; break; case "altmenu": BX_elements[name]["altMenu"] = appinfo_node.firstChild.data; break; 
context: function BX_schema_loaded() {	BX_xml_removeWhiteSpaceNodes(BX_schema.documentElement);	if (BX_schema.documentElement.localName != "schema" || 	BX_schema.documentElement.namespaceURI != "http://www.w3.org/2001/XMLSchema" )	{		alert ("Schema file "+BX_schemafile +" seems not to be a valid schema document. Check for example your namespaces.\n localName is " + BX_schema.documentElement.localName + "\n namespaceURI is " + BX_schema.documentElement.namespaceURI);		return false;	}	var nsResolver = BX_schema.createNSResolver(BX_schema.documentElement);	var result = BX_xml_getChildNodesByXpath("/xs:schema/xs:element","/*[name() = 'xs:schema']/*[name() = 'xs:element']", BX_schema.documentElement,nsResolver);	while (node = result.iterateNext()) {		var name = node.getAttribute("name");		BX_elements[name] = new Array();				// do appinfo stuff			var appinfo_result = BX_xml_getChildNodesByXpath("xs:annotation/xs:appinfo/*","*[name() = 'xs:annotation']/*[name() = 'xs:appinfo']/*",node,nsResolver);		while (appinfo_node = appinfo_result.iterateNext()) {			if (appinfo_node.namespaceURI == "http://bitfluxeditor.org/schema/1.0")			{			    switch(appinfo_node.localName) {							case "returnelement":						BX_elements[name]["returnElement"] = appinfo_node.firstChild.data;						break;					case "name":						BX_elements[name]["name"] = appinfo_node.firstChild.data;						break;					case "noaddparas":						BX_elements[name]["noAddParas"] = appinfo_node.firstChild.data;						break;					case "originalname":						BX_elements[name]["originalName"] = appinfo_node.firstChild.data;						break;						case "requiredattributes":						BX_elements[name]["requiredAttributes"] = appinfo_node.firstChild.data;						break;																case "addalso":						BX_elements[name]["addAlso"] = appinfo_node.firstChild.data;						break;																case "altmenu":						BX_elements[name]["altMenu"] = appinfo_node.firstChild.data;						break;																case "insertafter":						insertafter_result = BX_xml_getChildNodesByTagName("bxe:element",appinfo_node,nsResolver);						if ( insertafter_node = insertafter_result.iterateNext())						{							var inserttext = insertafter_node.firstChild.data;														while (insertafter_node = insertafter_result.iterateNext())							{								inserttext += " | " + insertafter_node.firstChild.data;							}						BX_elements[name]["insertAfter"] = inserttext;						}					}			}		}		var complexType_result = BX_xml_getChildNodesByTagName("xs:complexType",node,nsResolver);		complexType = complexType_result.iterateNext();		BX_elements[name]["allowedElements"] = "";		if (complexType)		{			if (complexType.getAttribute("mixed") == "true")			{				BX_elements[name]["allowedElements"] = "#PCDATA | ";			}			var elements_result = BX_xml_getChildNodesByXpath("xs:choice/xs:element","*[name() = 'xs:choice']/*[name() = 'xs:element']",complexType,nsResolver);			while (element = elements_result.iterateNext()) {					BX_elements[name]["allowedElements"] +=  element.getAttribute("ref") + " | "; 			}			BX_elements[name]["allowedElements"] = BX_elements[name]["allowedElements"].replace(/ \| $/,"");		}		else		{		}	}		return;/*		var name = element_nodes[i].getAttribute("name");		BX_elements[name] = new Array();	}	var first_nodes = element_nodes[i].childNodes;		for (var j = 0; j < first_nodes.length; j++ )	{	    switch(first_nodes[j].nodeName) {				case "xs:annotation":			if(BX_mozilla_version >= 1.1) {				var result = BX_schema.evaluate("xs:documentation", first_nodes[j], nsResolver, 0, null);			}			else {				var result = BX_schema.evaluate("*[name() = 'xs:documentation']", first_nodes[j], null, 0, null);			}			node = result.iterateNext();			alert (node.nodeName);			break;		}					}return;}*/}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js