Experts Round Table Network

Clientside Technology => Javascript => Topic started by: Srirangan on November 15, 2007, 10:21:06 PM



Title: Applying Xsl Transforms On Xml String
Post by: Srirangan on November 15, 2007, 10:21:06 PM
I have written an engine of a web service that returns custom Xml data. I am building a web based client for it (after building a cleint app in Flex). I've written generic Ajax functions and am able to ping, send and get results from the web service. Is there any way to directly add Xsl Transforms on the Xml result I'm getting from the web service?

Thanks,
Sri


Title: Re: Applying Xsl Transforms On Xml String
Post by: GrandSchtroumpf on November 23, 2007, 09:40:51 AM
Web services are not designed to be accessed by browsers.

If you need to apply an XSLT client-side, it looks like it's possible to do so using browser-specific code.

Mozilla:
http://developer.mozilla.org/en/docs/Using_the_Mozilla_JavaScript_interface_to_XSL_Transformations

IE:
http://msdn2.microsoft.com/en-us/library/ms761399.aspx