<?xml version="1.0" encoding="ISO-8859-1" ?>
[text]myHOSTNAME=[GETMIMEHEADER name=Host][/text][text]myCOMPANY=[lookup db=^ContentToolKit/-MasterSitePrefs.db&lookinfield=P_Hostname&value=[myHOSTNAME]&returnfield=P_Company][/text][text]myEMAIL=[lookup db=^contenttoolkit/-MasterSitePrefs.db&lookInField=P_HOSTNAME&value=[myHOSTNAME]&returnField=P_Email][/text][FileInfo file=/templateimages/rssLogo.gif][text]myPicWIDTH=[ImageWidth][/text][text]myPicHEIGHT=[ImageHeight][/text][/FileInfo][search db=admin/-pages.db&eqSTYLEdatarq=news][founditems][text]myNEWSPAGE=[PageName][/text][/founditems][/search]
<rss version="0.91">
  <channel>
    <title>[myCOMPANY]</title>
    <link>http://[myHOSTNAME]/[myNewsPage].xml</link>
    <description>This is an up to date newsfeed for [myCOMPANY]</description>
    <language>en-gb</language>
    <lastBuildDate>[date %c]</lastBuildDate>
    <image>
      <url>http://[myHOSTNAME]/templateimages/RSSLogo.gif</url>
      <title>[myCOMPANY] Logo</title>
      <link>http://[myHOSTNAME]</link>
      <width>[myPicWIDTH]</width>
      <height>[myPicHeight]</height>
    </image>
    <copyright>Copyright&#169;; [date %Y] [myCOMPANY], Inc. All rights reserved.</copyright>
    <webMaster>[myEMAIL]</webMaster>
		[search db=/admin/-News.db&leSTARTDATEdatarq=[date]&geENDDATEdatarq=[date]&deSTARTDATEsort=1&STARTDATEtype=date&ENDDATEtype=date] [founditems][text]myMainStory=[grep search=%0B&replace=][RemoveHTML][MAINSTORY][/RemoveHTML][/grep][/text]
		<item>
      <title>[Headline]</title>
      <description>[if [countchars][myMAINSTORY][/countchars]>250][then][listwords delimiters= &words=[url][getchars start=1&end=250][myMAINSTORY][/getchars][/url]][text]word[math][index]+1[/math]=[word][/text][text]word[index][/text] [/listwords]...[/then][else][myMAINSTORY][/else][/if]</description>
      <link>http://[myHostName]/[myNewsPage].html?page=news&action=FullStory&NewsID=[NewsID]</link>
    </item>
    [/founditems][/search]
  </channel>
</rss>
