This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Calling 'transformNode' inside xsl - problems
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: Calling 'transformNode' inside xsl - problems
- From: Richard Lander <rlander at microsoft dot com>
- Date: Tue, 12 Sep 2000 11:01:27 -0700
- Reply-To: xsl-list at mulberrytech dot com
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@PRAC.com]
Sent: Tuesday, September 12, 2000 8:12 AM
To: 'xsl-list@mulberrytech.com'
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