[OT] Inject XML into page and tranform with XSL

4 views
Skip to first unread message

Daniel N

unread,
Apr 30, 2007, 11:55:57 PM4/30/07
to rubyonra...@googlegroups.com
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

Guest

unread,
May 1, 2007, 3:15:32 AM5/1/07
to rubyonra...@googlegroups.com
Yes, it is possible.

Joshua


--
Posted via http://www.ruby-forum.com/.

Rick Olson

unread,
May 1, 2007, 7:37:58 AM5/1/07
to rubyonra...@googlegroups.com

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 Olson
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com

Frederick Cheung

unread,
May 1, 2007, 12:45:59 PM5/1/07
to rubyonra...@googlegroups.com
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

Daniel N

unread,
May 1, 2007, 7:50:29 PM5/1/07
to rubyonra...@googlegroups.com
On 5/2/07, Frederick Cheung <rails-mai...@andreas-s.net> 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.

Daniel N

unread,
May 1, 2007, 7:51:28 PM5/1/07
to rubyonra...@googlegroups.com


On 5/1/07, Rick Olson <techno...@gmail.com> 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
Reply all
Reply to author
Forward
0 new messages