[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] AW: javascript access to XML DOM in IE5+
Hello Steve, yes, it function´s well, i am using since a while these methods to access by DOM the XML-Source and XSl-Stylesheet. I am loading it in an external javascript-sheet and perform dynamically some operations by user input at the client side. For example: function showDarkontrakt(darkontrakt){ xmlDoc = document.XMLDocument; xslDoc = document.XSLDocument; var where = "[@num = '" + darkontrakt + "']"; var xmlFilter = xmlDoc.documentElement.selectNodes("/root/filter/darlehen" + where).item(0); divdarkontrakt.innerHTML = xmlFilter.transformNode(xslDoc); } I don´t know if the DOM XML and XSL are the same Object as the DOM produced by the output (X)HTML, Either i have not being successful to code the buildin innerHTML method in pureley DOM. It will be quite useful and nice, if someone here could forward an mini-example to start with replacing thew innerHTML with DOM, besides that is an limit topic issue. Thanks, Hans Braumüller -- + -- Networking Artist http://crosses.net http://kunstserie.com > -----Ursprüngliche Nachricht----- > Von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Im Auftrag von Steve > Rosenberry > Gesendet: Montag, 22. April 2002 17:55 > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Betreff: Re: javascript access to XML DOM in IE5+ > > > > > "Thomas B. Passin" wrote: > > > > I don't know if this has been saved or whether IE > > reloads the source to show it, but it suggests that there > might be a way to > > get at it. I don't know how, though. > > > > Well, golly gee. After searching for 3 days, the answer is > (of course:) > -- XMLDocument! It's a property of the javascript 'document' object. > Fancy that... > > I haven't finished checking it out completely, but > document.XMLDocument > appears to be the equivalent of an "Msxml.DOMDocument" object and > supporting the XML Reference as defined at: > > http://msdn.microsoft.com/library/en-us/xmlsdk30/htm/xmmscxmlr eference.asp -- Steve Rosenberry Sr. Partner Electronic Solutions Company -- For the Home of Integration http://ElectronicSolutionsCo.com http://BetterGoBids.com -- The Premier Overture (formerly GoTo) Bid Management Tool (610) 670-1710 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|