This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
xml data islands and parameters
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] xml data islands and parameters
- From: "Gitanjali" <narsu at gitanjali dot com>
- Date: Thu, 14 Jun 2001 23:09:46 -0400
- References: <01061501223502.01154@bealtaine>
- Reply-To: xsl-list at lists dot mulberrytech dot com
I've an xml data island, can I pass the parameter to xsl file. I'm using
Microsoft Parser 3.
I know to create template object . But it's not working...whenever I call
my xsl by passing the parameter it hangs.
Eg:
<xml id="xmldso" src="data.xml">
I updated the xmldso by adding extra elements
I want to pass the parameter to xsl by using xmldso.
var xslDoc = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
xslDoc.async = false
var tem = new ActiveXObject("MSXML2.XSLTemplate");
tem.stylesheet = xslDoc;
var proc = tem.createProcessor();
//Add the parameters
proc.addParameter("id", "0");
proc.input = xmldso;
//Transform the document
proc.transform();
var str = proc.output;
Thanks
Narsu
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list