[XSL-LIST Mailing List Archive Home]
[xsl] Opening XSL output in a new window through browser
Subject: [xsl] Opening XSL output in a new window through browser|
From: "Vishnu Vardhan P" <pv.vardhan@xxxxxxxxx>
Date: Thu, 17 May 2007 15:37:28 -0400
page depends on the user selection of menu(Menu is written in
XSL for page rendering. The value has been passed successfully to XSL
and I can see the result.
Please see the below code..
function SelectedMenu(menu_selected, toplevel)
Menu_Selection = toplevel;
if(toplevel != 1) // If toplevel=1 it should not go anywhere
var xslt = new ActiveXObject(" Msxml2.XSLTemplate");
var xslDoc = new ActiveXObject("Msxml2.FreeThreadedDOMDocument");
xslDoc.async = false;
xslDoc.resolveExternals = false;
xslt.stylesheet = xslDoc;
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument");
xmlDoc.async = false;
xmlDoc.resolveExternals = false;
xslProc = xslt.createProcessor();
xslProc.input = xmlDoc;
and XSL code is as follows..
and somewhere in the code I am using menuselected variable as follows.
Based on the menuselected value particular page details will display.
If I click on menu link the result is fine.The problem is that, if I
open link in another window through browser functionality "Open in New
Window" I am not able to see the result. Somehow I pointed out the
problem is because of document.write. If I remove that stement from js
file the result is completely gone. not even seen in the same page
Can any one please help me to fix this issue. I am very much thankful
if any one could point out the problem and let me know the process.