[OT] Inject XML into page and tranform with XSL

Hi,

Is it possible to recieve an xml repsonse from my rails app, and then,
client side, inject the xml into the page without reloading and have it
apply an xslt? Like an AJAX call, but ajax is unavailable to me.

My very limited understanding suggests that xslt is only done at run
time in
safari at least.

If I can’t get thsi to work the other option I’ve thought of is to use
Javascript to transform the xml in very predetermined ways. This
doesn’t
appeal to me though.

Anyone have any pointers?

Cheers
Daniel

Yes, it is possible.

Joshua

Daniel ----- wrote:

Hi,

Is it possible to recieve an xml repsonse from my rails app, and then,
client side, inject the xml into the page without reloading and have it
apply an xslt? Like an AJAX call, but ajax is unavailable to me.

My very limited understanding suggests that xslt is only done at run
time in
safari at least.

If I can’t get thsi to work the other option I’ve thought of is to use
Javascript to transform the xml in very predetermined ways. This
doesn’t
appeal to me though.

Anyone have any pointers?

Cheers
Daniel

On 4/30/07, Daniel N [email protected] wrote:

Javascript to transform the xml in very predetermined ways. This doesn’t
appeal to me though.

Anyone have any pointers?

I wouldn’t rely on xsl being available in your client’s browsers,
unless you control what browser they run (in a corporation perhaps).


Rick O.
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com

On 5/2/07, Frederick C. [email protected] wrote:

Why not server-side? Could you have an after_filter that runs the xml
through Xalan or something - we’ve used that successfully (although it
was just a vanilla page load - not ajax)

Fred

That would be nice if I could do it server side, but then I would just
use
normal views and not worry about the xml at all.

Why not server-side? Could you have an after_filter that runs the xml
through Xalan or something - we’ve used that successfully (although it
was just a vanilla page load - not ajax)

Fred

On 5/1/07, Rick O. [email protected] wrote:

I wouldn’t rely on xsl being available in your client’s browsers,
unless you control what browser they run (in a corporation perhaps).

I had a feeling that would be the case. Oh well. Looks like I’ll have
to
come at it differently.

Thanx