Figured this one out in the end. I was missing one little bit. My
java_app.xsl is in a sub dir and I forgot to add text/xsl. These small
things.......
xml.instruct! ''xml-stylesheet'',
{:href=>"/stylesheets/client/
java_app.xsl", :type => "text/xsl"}
Iain Adams wrote:> Hello,
>
> I have the following code:
>
> xml.instruct! :xml, :version=>"1.0"
> xml.instruct! ''xml-stylesheet'',
:href=>''/stylesheets/java_app.xsl''
> xml.blueman do
> xml.response do
> xml.code(@response.code)
> @response.url ||= ""
> xml.url(@response.url)
> @response.message ||= ""
> xml.message(@response.message)
> end
> end
>
> But when this prints out its not including my xsl in the page.
> Actually I''m displaying this in an iframe. I hope that
doesn''t matter.
>
> Any ideas why this isn''t working. I thought the xml builder would
have
> an easy link tag like javascript_include_tag etc etc, but can''t
find
> one
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---