![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: SetParameter in XSL >Thread Next - Re: SetParameter in XSL Re: SetParameter in XSLTo: NULL Date: 2/5/2007 7:34:00 PM
ignignokt wrote:
> I have a question. After I set up the parameter and pass it to the
> xsl file, nothing seems to show up. How do I display the results in
> the html page?
Assuming you run the script in a HTML document you need to set the
parameter, call the transform method of the processor and assign the
output to the innerHTML of some HTML element e.g.
xslproc = xslt.createProcessor();
xslproc.input = xmldoc;
xslproc.addParameter("param1", "Hello");
xslproc.transform();
document.getElementById('someDiv').innerHTML = xslproc.output;
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
