ok here it goes,
im looking to make and
RSS feed for the company i work for and i have a small problem. its not making the
RSS thats the problem, its adding a style to it, here is my code.
the sample feed.
- Code: Select all
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="rss.css"?>
<rss version="2.0">
<channel>
<title>xxxxxxxxx</title>
<link>http://www.xxx.com/</link>
<item><title>3 in 1 Sharpening System - Smith's 3-in-1 Sharpening System</title>
<description>
<![CDATA[<IMG alt="3 in 1 Sharpening System - Smith's 3-in-1 Sharpening System" hspace=0 src="http://www.xxxxx.com/uploads/images_products/424.jpg" align=baseline border=0><br>The Smith's 3-in-1 Sharpening System is a handy sharpener you can not only take anywhere but will do three jobs in one. Features pre-aligned carbides for quick edge setting, 750 grit interrupted surface diamond sharpener and pre-aligned ceramic sharpeners for sharpening standard and serrated blades. The rods easily store in the base.]]></description>
<link>http://www.xxxx.com/product.asp?P_ID=424</link>
<label>Smiths</label>
<pubDate>Tue, 12 Feb 2008 09:11:48 +0000</pubDate>
</item>
</channel>
</rss>
and the stylesheet
- Code: Select all
rss {
display: block;
font-family: verdana, arial;
background-color:#000000;
}
title {
display: block;
margin: 5px;
padding: 2px;
color: gray;
border-bottom: 1px solid silver;
}
link {
display: block;
font-size: small;
padding-left: 10px;
}
item {
display: block;
padding: 2px 30px 2px 30px;
}
docs {
display: block;
background-color: #ffffe6;
margin: 20px;
text-align: center;
padding: 5px;
color: #7f7f7f;
border: 1px solid silver;
}
/* all hidden elements */
language, lastBuildDate, ttl, guid, cataegory, description, pubDate {
display: none;
}
for some reason it wont add the style to the feed am i doing somthing wrong