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 stringTo: NULL Date: 9/3/2005 7:08:00 AM Let me explain my requirement properly. I have an xsl. And I have an <xsl:template name="PageDetails"> inside this xsl. My GUI is for displaying some contents pagewise. When i click next page/Previous page button I dont want to load the asp page again. Because there is a lot of contents which are not going to change. Instead I make an xmlhttp request for getting a smalll xml, that is nothing but the dat which is to be changed. Using this small xml I want to do a transform in JS. And get the html tags.And change the contents of a span .For transforming I need <xsl:template name="PageDetails"> inside JS as a string. So I want the same <xsl:template name="PageDetails"> to be used for transforming while loading and transforming in JS. "Martin Honnen" <mahotrash@y...> wrote in message news:%23Bfah5%23rFHA.2880@T...... > > > Praveen wrote: > >> I have an xsl:template which is called inside a loop. > > Inside of an XSLT loop, e.g. <xsl:for-each>? Or are you using some > programming language outside of XSLT to repeatedly run a transformation? > >> The same template I want to keep as a string in a textarea /input field / >> xsl:variable. > > A textarea or input field does not exist in XSLT but in HTML. It is > certainly possible the have XSLT source code as the content of a textarea > in an HTML document. > If you then want to run an XSLT transformation with that source code you > need to have a way to load it, if you are using MSXML with IE 6 then you > create a DOM document as usual e.g. > var xsltDocument = new ActiveXObject('Msxml2.DOMDocument.3.0'); > and then call the loadXML method e.g. > xsltDocument.loadXML(someTextareaObject.value); > > > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
