Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: XSL Template as string >Thread Next - Re: XSL Template as string Re: XSL Template as stringTo: NULL Date: 9/3/2005 3:29:00 PM Praveen wrote: > my asp do a transform of xml/xsl. So you have the XSLT stylesheet on the server and it generates HTML which is sent to the browser. > Onclick of a button in GUI Im calling a JS function to do a client side > transform of xml/xsl. > I have the xml ready for transform in JS. > I need the above mentioned template "DataTemp" for using as part of a new > xsl again. And then in the HTML document you now have client-side script that also needs the XSLT stylesheet or at least a template of it? Then you need to load the stylesheet from the server I am afraid. Or you need to rewrite your server-side ASP so that it already includes the XSLT in the generated HTML. One way to do that is to use an XML island as long as you only need to have that work with IE/Win. Inside of the HTML you generate in the XSLT you would simply add an <xml id="stylesheet1" src="stylesheet.xsl"></xml> and then the client-side script can simply access document.all.stylesheet1.XMLDocument to have the whole XSLT stylesheet as a DOM document. Of course that also loads the stylesheet from the server but does not need script to load it then. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
