Forum: Ruby including XSL sheet in rss feed in rxml...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
krishna.Mundra (Guest)
on 2007-01-29 15:15

 Hi every one,

  I just want to know, how to include XSL style sheet in rss feed
generation in rxml.......

i wrote the code to generate a rss feed like this ...

xml.instruct! :xml, :version => "1.0"
xml.rss(:version=>"2.0"){
xml.channel{
   xml.language('en-gb')
   xml.link('http://220.225.228.163')
   xml.description('Playlist details')
   xml.title('title')
  for items in @playlist
      # getting contents from database
       #subtags
  for contids in @contnetslist
      xml.item do
          path=""
          if(@contents[0].user_id==1)
            path= path we are printing
          else
              path= path
          end
      xml.title(@contents[0].title)
      xml.link('http://192.168.200.25:3001/user')
      xml.description(items.playlist_name)
      xml.link("public_html/contentObjects"+@contents[0].media_file)

}
}

in this code i want to include sytle sheet catalog.XSL to to display the
rss feed of user's choice.....

can anyone help me in this .. .....

also i want to generate a RSS feed in a way, the XML tags in rss sshould
display as hyperlinks like for example
http://feeds.feedburner.com/rubyonrailspodcast.....

 please help me in this

 thanking you....
krishna.Mundra
This topic is locked and can not be replied to.