This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
javascript problem
- From: "stevenson" <stevenson at epr dot footman-walker dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 14 Mar 2002 15:09:17 +0300
- Subject: [xsl] javascript problem
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi all,
I have a javascript below:
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);
oRoot.appendChild( oChildNewnode );
oChildNode = oTempXML.nextNode;
}
document.all.callDiv.innerHTML = oFilteredXML.documentElement.xml;
document.all.callDiv.innerHTML = oFilteredXML.transformNode(
oCallsXSL.documentElement );
What i want to do is add some code in here before appending.
That is (pseudo-code below):
//is oChildNode a DJ
//is oChildNode's djDRID(attribute of DJ) in oTempXML
//do not append
//else
//append
//end if
//else
//append
//end
How can i achieve it? If possible just write the code which perfomes the
pseudo-code above.
Thanks in advance
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list