Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: embedding xsl

From: Russ@-----------.---------.---
To: NULL
Date: 8/9/2005 10:51:00 AM

"Martin Honnen" wrote:

> 
> 
> Russ wrote:
> 
> 
> > I've got the xml httprequest thing down pat so know worries there. I can 
> > dynamically change the html on teh browser so thats fine .. I just want to 
> > feed the XML with XSL into variable so it updates the layer. 
> 
> > again all i am looking for is how to embed the xsl into the htmlpage and 
> > link it to the xml island so that it displays they way it should.
> 
> If you know how to use XMLHttpRequest respectively Microsoft.XMLHTTP to 
> load XML then you know how to load your XSL as XSL is XML. So all you 
> need to do is use XMLHttpRequest to load your XSL from a URL, then you 
> have responseXML and that way an XML DOM object for your XSL stylesheet 
> and then you can script an XSL transformation.
> 
> If you really want to use XML islands (these are IE/Win only) then I 
> don't understand the problem either as XSL is XML so you simply need to 
> put your XSL into an XML island as you seem to do with your XML data 
> e.g. inside the HTML document:
> 
> <xml id="stylesheet1">
> <xsl:stylesheet xmlns="http://www.w3.org/1999/XSL/Transform"
>        version="1.0">
> <!-- XSL instructions go here -->
> </xsl:stylesheet>
> </xml>
> 
> then in IE 6 you can access
>    document.getElementById('stylesheet1').XMLDocument
> and have an XML DOM document with your stylesheet which you can feed to 
> the transformNode method for instance.
> 
> 
> -- 
> 
> 	Martin Honnen --- MVP XML
> 	http://JavaScript.FAQTs.com/
> 
  ahha .. nice one thanks for the help will try it tonight. 

   cheers Russ



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