Subject: [xsl] javascript problem From: "stevenson" <stevenson@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 15 Mar 2002 10:53:22 +0300 |
In the JavaScript below, there is a pseudo-code in comments. Can someone help me translate the pseudo code to javascript code? Please assist. var oFilteredXML = new ActiveXObject( "Msxml2.DOMDocument.4.0" ); var oTempXML = new ActiveXObject( "Msxml2.DOMDocument.4.0" ); bSuccess = oFilteredXML.loadXML( "<calls></calls>" ); var oRoot = oFilteredXML.firstChild; oTempXML = oCallsXML.selectNodes( sFilterString ); oChildNode = oTempXML.nextNode; while( oChildNode != null ) { oChildNewnode = oChildNode.cloneNode(true); //is oChildNode a DJ //is oChildNode's djDRID in oTempXML //do not append //else //append //end if //else //append //end oRoot.appendChild( oChildNewnode ); oChildNode = oTempXML.nextNode; } window.status = "Applying call stylesheet..."; document.all.callDiv.innerHTML = oFilteredXML.documentElement.xml; document.all.callDiv.innerHTML = oFilteredXML.transformNode( oCallsXSL.documentElement ); window.status = "Done"; XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
<- Previous | Index | Next -> |
---|---|---|
[xsl] javascript problem, stevenson | Thread | RE: [xsl] javascript problem----- I, stevenson |
RE: [xsl] Key function using key st, Gennady Loskutov | Date | [xsl] Re: Displaying Descriptions B, Dimitre Novatchev |
Month |