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/5/2005 10:18:00 AM Thanks For ur reply
So u mean there is no way to keep a particular template alone.
I will have to include the same xsl as xml island.
Nothing can be done like this?? By mentioning the template name...
<xsl:value-of
select="document('')/xsl:stylesheet/xsl:template[@name='mytemplate']"/>
praveen
"Martin Honnen" <mahotrash@y...> wrote in message
news:ukdMotIsFHA.260@T......
>
>
> 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 | |||
|
