Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSL Template as string

From: "Praveen" <praveen@---------.------>
To: 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/ 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent