[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Calling 'transformNode' inside xsl - problems
Hello, I see. You must try something like the following. function element(path) { var locpath= "/Schema/ElementType[@name='" + path + "']"; var d = document.XMLDocument.selectSingleNode(locpath); document.all['body'].innerHTML = d.transformNode(document.XSLDocument); } In my resultant HTML, I have something like: <DIV id="body"></DIV> That's where all my content goes, so whenenever I update document.all['body'].innerHTML, everything that was previously in it disappears ... HTH, Rich -----Original Message----- From: Krishnamurthy, Rama [mailto:RKrishnamurthy@xxxxxxxx] Sent: Tuesday, September 12, 2000 8:12 AM To: 'xsl-list@xxxxxxxxxxxxxxxx' Subject: Calling 'transformNode' inside xsl - problems Hi, I'm doing a web page where the search results are carried across several pages. I have included all the 'HTML' inside the XSL file. Everytime a page number is clicked the Javascript function(inside xsl) calls for the xmldoc.transformNode(xsldoc) method. But instead of displaying the new page in a fresh screen the page is appended below the old page. What should I do? Thanks in advance. Rama. 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
|