// // http://www.unterstein.net/ML/xslt.js // http://www.unterstein.net/ML/xslt.html // /* XSLTransfactory Bugs, Oddities, Problems JavaScript Interfaces/Methods/XML-Objects (some are emulated or conditional compiled equivalents) XMLDocument + xml [IE] + transformNode() [IE] - transformNodeToObject() [IE] * childNodes of resulting DOMDocument not accessible if seems outputting in DOMDocument prevents proper parsing + load() [IE+Moz] XMLHttpRequest + responseXML [IE+Moz] + responseText [IE+Moz] + getAllResponseHeaders() [IE+Moz] - open(), send() [IE+Moz] * howto use one request-instance for multiple requests ? * call open() from inside onreadystatechange *and* reset it ? * if only one request-instance and if a fnOpenXSL() redefs a qXML.onreadystatechange user's evToDoXML cannot be the last action in change-event-chain XMLSerializer + serializeToStream() [Moz] - serializeToString() [Moz] * IE-Emu: some xml-property-alternatives are redundant node-types only available in xmlDocs always have the xml-property XSLTProcessor - importStylesheet() [Moz] * IE-NOOP !?: some xsl with internal DTD subset not convertible to free threaded dom * IE-NOOP !?: prevents proper (re-)parsing + transformToDocument() [Moz] - transformToFragment() [Moz] * IE-NOOP !?: howto "fragment" a document ? DOMParser + parseFromBuffer() [Moz] + parseFromStream() [Moz] + parseFromString() [Moz] AXO + objPID + getPID() + setPID() - [tokens] * Usage Options: AXO.setPID('DOMDocument'); // use internal token AXO.setPID('DOMDoc_PID','DOMDocument'); // def individual token AXO.setPID(); // init all with internal tokens var aDOMDocument = new ActiveXObject(AXO.DOMDoc_PID); // usage after definition var aDOMDocument = new ActiveXObject(AXO.DOMDocument); // usage after initialisation var aDOMDoc_PID = AXO.getPID(AXO.objPID.DOMDocument); // get latest PID directly XSLTransfactory + evToDoXML, evToDoXSL + readyStatesXML, readyStatesXSL + readyState4XML, readyState4XSL + fnLoadXML(), fnLoadXSL() + fnOpenXML(), fnOpenXSL() + fnFormXML() + fXML, oXML, hXML + fXSL, oXSL, hXSL + pXSL, pSER, qXML, qXSL - rDoc, rDFr, rSrc * IE-NOOP !?: inner nodes of resulting DOMDocument not available if included by transformation * IE-NOOP !?: then howto "fragment" a document ? * IE-NOOP !?: then howto "analyse" and output document ? - putResult2ID() * Moz-Wanted: XMLDocument; but targetWin.document.open() always creates an instanceof HTMLDocument * IE-NOOP !?: resultSrc-"parsing" only method to analyse resultDoc for proper output ? * IE-NOOP !?: targetWin.document.write(resultSrc) only method to output document ? + getSourceXML() + getSourceXSL() + getSourceStr() + updateReport() + returnReport() - setXMLPI2XSL() * useless until now + getXMLPI4XSL() */ // [msxml.dll, IE:] res://msxml.dll/defaultss.xsl // [toolkit.jar, FFx:] chrome://global/content/xml/XMLPrettyPrint.xsl // [comm.jar, Moz:] chrome://communicator/content/xml/XMLPrettyPrint.xsl