# Including XSL sheet in rss feed in rxml

**URL:** <https://www.ruby-forum.com/t/including-xsl-sheet-in-rss-feed-in-rxml/83748>\
**Category:** Ruby\
**Created:** [January 29, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/including-xsl-sheet-in-rss-feed-in-rxml/83748 "2007-01-29T14:15:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishna.Mundra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/ac8455/32.png) [@krishna.Mundra](https://www.ruby-forum.com/u/krishna.Mundra)\
**Post date:** [January 29, 2007, 2:15pm UTC](https://www.ruby-forum.com/t/including-xsl-sheet-in-rss-feed-in-rxml/83748/1 "2007-01-29T14:15:47Z")

</div>

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](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](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  
[Peak Obsession](http://feeds.feedburner.com/rubyonrailspodcast)…

please help me in this

thanking you…  
krishna.Mundra
