Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: embedding xsl [Thread Next] Re: embedding xslTo: 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
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
