Java Tools

            BlogJava :: 首頁(yè) :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            83 隨筆 :: 0 文章 :: 16 評(píng)論 :: 0 Trackbacks
          RSS

          內(nèi)容目錄

          RSS Introduction [RSS介紹]
          An introduction to what RSS is and how it can be used.
          介紹什么是RSS,它的應(yīng)用。

          RSS History [RSS歷史]
          How RSS started and how it has been developed and changed
          RSS是怎么誕生的,它是怎樣發(fā)展和變化的.

          RSS Syntax [RSS語(yǔ)法]
          A brief introduction how to make RSS.
          制作RSS的簡(jiǎn)單介紹

          RSS Channel [RSS頻道]
          How to make and what can be included in the <channel> element.
          怎么完成<channel>元素里的內(nèi)容

          RSS Item [RSS內(nèi)容]- How to make and what can be included in the <item> element.
          怎樣的<item>元素才算合理的

          RSS Publishing [RSS 發(fā)布]- How to publish your RSS.
          怎樣發(fā)布的你的RSS

          RSS Readers [RSS閱讀器]- How to read other site's RSS.
          怎樣閱讀其他網(wǎng)站的RSS


          RSS介紹
          翻譯:Linyupark / 2006-04-24

          RSS was designed to share data like headlines, links and short descriptions of these.
          RSS 將數(shù)據(jù)分成像標(biāo)題,連接和簡(jiǎn)單描述的形式。(濃縮過(guò)的信息)

          RSS allows fast browsing for news and updates.
          RSS能快速瀏覽新聞和更新內(nèi)容。


          What You Should Already Know
          哪些是你應(yīng)該已經(jīng)知道的

          Before you continue you should have a basic understanding of the following:
          在繼續(xù)學(xué)習(xí)前你應(yīng)該有下面這些知識(shí)點(diǎn)的基礎(chǔ):

          • HTML / XHTML
          • XML / XML 命名空間

          What is RSS?
          什么是RSS?

          • RSS stands for Really Simple Syndication
            RSS就是 Really Simple Syndication (真正的簡(jiǎn)單聚合)
          • RSS allows you to syndicate your site content
            RSS可以聚合你網(wǎng)站上的內(nèi)容
          • RSS is a selected list of defined items on a site
            RSS是一站點(diǎn)上被選中的內(nèi)容清單
          • RSS defines an easy way to share and view headlines and content
            RSS是一種更便捷的方法去查看標(biāo)題和內(nèi)容
          • RSS files can be automatically updated
            RSS文件可以自動(dòng)的更新
          • RSS allows personalized views for different sites
            RSS允許更具人性化(個(gè)性化)的查看不同的站點(diǎn)
          • RSS is written in XML
            RSS是用XML來(lái)書(shū)寫(xiě)的

          Why Use RSS?
          為什么使用RSS?

          RSS was designed to show selected data.
          RSS 能展示被選擇的數(shù)據(jù)(針對(duì)性)

          Without RSS, users will have to check your site daily to check for new updates. This may be too time-consuming for many users. With an RSS feed (RSS is often called a News Feed or RSS Feed) they can check your site faster using an RSS aggregator (a site or program that gathers and sorts out several RSS feeds).
          沒(méi)有RSS的話,用戶將必須每天到你的站上看看有沒(méi)更新內(nèi)容。這對(duì)于一些用戶來(lái)說(shuō)是很浪費(fèi)時(shí)間的。通過(guò)一個(gè)RSS feed他們可以使用RSS閱讀器更快的查看你的站是否有更新。

          Since RSS data is small and fast-loading, it can easily be used with services like cell phones or PDA's.
          因?yàn)镽SS數(shù)據(jù)很小而且加載速度很快,它可以容易的在手機(jī)或PDA服務(wù)上使用。

          Web-rings with similar information can easily share data on their sites to make them better and more useful.
          Wb-rings通過(guò)相似的信息可以方便的共享他們站點(diǎn)的信息。


          Who Should Use RSS?
          哪些人應(yīng)該使用RSS?

          Webmasters who seldom update their sites do not need RSS.
          站長(zhǎng)如不是經(jīng)常更新站帶內(nèi)信息的話可以不使用RSS

          RSS can be useful for Web sites that are updated frequently, like:
          RSS對(duì)于那些經(jīng)常更新的站點(diǎn)來(lái)說(shuō)是和有幫助的,像:

          • News sites - Lists news with title, date and descriptions
            新聞?wù)?
          • Site changes - Lists changed pages or new pages
            站點(diǎn)改動(dòng)信息版塊
          • Companies - Lists news and new products
            公司站 - 新聞 和 新產(chǎn)品
          • Calendars - Lists upcoming events and important days
            日歷

          The Future of RSS
          展望RSS

          RSS is going to be everywhere.
          RSS將遍及每個(gè)角落

          Thousands of sites use RSS and more people understand its usefulness every day.
          數(shù)千站使用著RSS并且每天有越來(lái)越多的人明白了它的有用之處。

          By using RSS, information on the Web becomes easier to find and web developers can spread their information more easily to special interest groups.
          有了RSS,在WEB上的信息變的容易找到并且WEB開(kāi)發(fā)者能夠容易的將信息傳播給興趣小組。

          Hopefully, future RSS versions will include additional fields that will make it even easier to categorize and share.
          未來(lái)的RSS版本可能包含額外的領(lǐng)域來(lái)使分類和分享信息來(lái)的更容易。


          RSS的歷史
          翻譯:Linyupark / 2006-04-24

          RSS has been released in many different versions.
          RSS發(fā)布過(guò)一些不同的版本


          The History of RSS
          RSS的歷史

          Here is the history of RSS according to Dave Winer (key developer of most of the RSS formats):
          依據(jù)Dave Winer(RSS開(kāi)發(fā)的關(guān)鍵人物)的描述,RSS有這樣的歷史:

          • Dec. 1997 - Dave Winer developed scriptingNews
            1997年12月 Dave Winer 開(kāi)發(fā)了新聞腳本
             
          • Mar. 1999 - RSS 0.90 was developed by Netscape, which supported the scriptingNews format. This was simply XML with a RDF Header
             1999年三月 - RSS 0.90 由網(wǎng)景公司開(kāi)發(fā),支持格式化新聞腳本.
          • Jun. 1999 - scriptingNews 2.0b1 was developed by Dave Winer at UserLand. This included Netscape's RSS 0.90 features
            新聞腳本2.0b1于 1999年6月由Dave Winer開(kāi)發(fā),包含了網(wǎng)景RSS 0.90的特點(diǎn)
             
          • Jul. 1999 - RSS 0.91 was an attempt by Netscape to move towards a more standard format and included most features from scriptingNews 2.0b1 but they removed the RDF header
            1999年7月 - RSS0.91 網(wǎng)景試圖移入更多的標(biāo)準(zhǔn)格式并包含更多來(lái)自scriptingNews2.0b1的特性但是他們卻刪除了RDF頭  
          • Jul. 1999 - UserLand uses RSS 0.91 and gets rid of scriptingNews
            1999年7月 - UserLand利用了沒(méi)有scriptNews的RSS0.91
             
          • Netscape discontinues their RSS development
             網(wǎng)景中斷了他們對(duì)RSS的開(kāi)發(fā)
          • Jun. 2000 - Official RSS 0.91 specification release from UserLand
             UserLand公開(kāi)了規(guī)范文檔
          • Aug. 2000 - RSS 1.0 developed by a group lead by Rael Dornfest at O'Reilly. This format uses RDF and namespaces. Because of its name it is often confused as being a new version of 0.91, but this is a completely new format with no ties to RSS 0.91
             
          • Dec. 2000 - RSS 0.92 developed by Dave Winer at UserLand and includes optional elements
             
          • Sep. 2002 - RSS 2.0 is designed by Dave Winer after leaving Userland
             
          • Jul. 2003 - RSS 2.0 specification released through Harvard under a Creative Commons license

          What Are The differences?
          有什么區(qū)別?

          Unlike the other RSS formats, RSS 1.0 was developed using the W3C RDF (Resource Description Framework) standard.
          不像其他RSS的規(guī)格,RSS1.0使用W3C的DRF標(biāo)準(zhǔn)開(kāi)發(fā).


          What RSS Version Should I Use?
          我該用哪個(gè)版本的RSS?

          RSS 0.91 and RSS 2.0 are easiest to understand. RSS 1.0 is more complex to learn and takes more time and bandwidth to process.
          RSS0.91和RSS2.0是最容易理解的版本。1.0學(xué)起來(lái)比較復(fù)雜而且需要花更多的帶寬來(lái)運(yùn)作。

          Our tutorial is based on RSS 2.0.
          我們的教程是基于RSS2.0的


          Is There an RSS Web Standard?
          有RSS WEB標(biāo)準(zhǔn)嗎?

          There is no official standard for RSS. But about 50 % of all RSS feeds use the RSS 0.91 format. About 25 % use the RSS 1.0 format and the last 25 % is split between the other RSS 0.9x versions and RSS 2.0.
          沒(méi)有正式的RSS標(biāo)準(zhǔn)。但在所有的RSS feeds中大約有50% 使用RSS 0.91規(guī)格. 25%使用RSS1.0規(guī)格并且至少有25%使用 RSS 0.9x 和 RSS 2.0之間的版本。


          RSS語(yǔ)法
          翻譯:Linyupark / 2006-04-24

          The syntax rules of RSS 2.0 are very simple and very strict.
          RSS2.0的語(yǔ)法規(guī)則非常簡(jiǎn)單并十分的嚴(yán)格。

          This tutorial teaches how to create your own RSS feed and maintain it.
          這個(gè)教程會(huì)教你如何建立你自己的RSS feed并維護(hù)它。


          An Example RSS document
          一個(gè)RSS文檔的例子

          RSS documents use a self-describing and simple syntax.
          RSS文檔使用了簡(jiǎn)單的自描述語(yǔ)法。

          <?xml version="1.0" encoding="ISO-8859-1" ?>

          <rss version="2.0">
          <channel>

          <title>W3Schools</title>
          <link>http://www.w3schools.com</link>
          <description>W3Schools Web Tutorials </description>
          <item>
          <title>RSS Tutorial</title>

          <link>http://www.w3schools.com/rss</link>
          <description>Check out the RSS tutorial
          on W3Schools.com</description>
          </item>
          </channel>
          </rss>

          The first line in the document - the XML declaration - defines the XML version and the character encoding used in the document. In this case the document conforms to the 1.0 specification of XML and uses the ISO-8859-1 (Latin-1/West European) character set.
          文檔內(nèi)的第一行為XML聲明-定義了XML的版本和文檔使用的字符編碼。這個(gè)例子里文檔使用的是XML1.0版本,編碼為 ISO-8859-1.

          The next line describes the RSS element of the document (like it was saying: "this is an RSS document - version 2.0"):
          下面的一行描述RSS文檔元素(這個(gè)就像在說(shuō):"這是一份RSS2.0版本的文檔")

          <rss version="2.0">

          The next line describes the <channel> element of the document:
          再下面的一行描述了文檔的<channel>元素:

          <channel>

          The next three lines describe three child elements of the <channel> element (<title>, <link> and <description>):
          接下來(lái)的三行描述了<channel>的三個(gè)子元素(<title>,<link>,<description>)

          <title>W3Schools</title>
          <link>http://www.w3schools.com</link>

          <description>W3Schools Web Tutorials</description>

          Then there is an <item> element. The <item> element contains the information you would like your RSS feed to show (<title>, <link> and <description>). You can add multiple <item> elements:
          然后就是<item>元素,<item>元素包含了RSS展示的一些信息(<title>, <link> 和 <description>)你可以添加數(shù)個(gè)<item>元素:

          <item>
          <title>RSS Tutorial</title>
          <link>http://www.w3schools.com/rss</link>
          <description>Check out the RSS tutorial
          on W3Schools.com</description>
          </item>

          Finally, the two last lines close the <channel> and <rss> elements:
          最后的兩行關(guān)閉<channel> 和 <rss> 元素:

          </channel>
          </rss>

          Did you understand that this was an RSS feed from W3Schools? Don't you agree that RSS is pretty self-descriptive?
          你明白這是個(gè)來(lái)自W3S的RSSfeed了不?難道你不認(rèn)為這是個(gè)很好的RSS自我描述?


          RSS is an XML Dialect
          RSS 是一種XML的方言

          Because RSS is XML, there are a couple of things you must remember.
          因?yàn)镽SS是XML,有一些事你必須了解

          • All XML elements must have a closing tag
            所有XML元素必須有關(guān)閉標(biāo)簽
          • XML tags are case sensitive
            XML標(biāo)簽區(qū)分大小寫(xiě)
          • All XML elements must be properly nested
            所有XML元素必須合理嵌套
          • Attribute values must always be quoted
            屬性值必須在引號(hào)內(nèi)

          Comments in RSS
          RSS注釋

          The syntax for writing comments in RSS is similar to that of HTML:
          書(shū)寫(xiě)RSS注釋的語(yǔ)法和HTML十分相似:

          <!-- This is a comment -->


          RSS channel元素
          翻譯:Linyupark / 2006-04-24

          The <channel> element is where you describe your RSS feed.
          <channel>元素內(nèi)是描述RSS feed的地方

          With RSS 2.0 there are a lot of different options for the channel element.
          對(duì)于channel元素來(lái)說(shuō)RSS2.0有很多不同的選擇(指內(nèi)部可選擇的元素有很多種)


          The <channel> Element
          <channel>元素

          The RSS <channel> element is where items are displayed. It is like an RSS headline. Channel elements normally do not change very often.
          RSS的<channel>元素是項(xiàng)目?jī)?nèi)容顯示的地方。它就像RSS的標(biāo)題。一般來(lái)講它不會(huì)頻繁的改動(dòng)。

          There are three required elements inside the <channel> element: <title>, <link>, and <description>.
          有三個(gè)內(nèi)部元素是必須有的:<title>, <link>, 和 <description>.

          The <title> element should contain a short description of your site and your RSS feed:
          <title>元素里應(yīng)該包含你的站和你的RSS feed簡(jiǎn)短的說(shuō)明:

          <title>W3Schools News Update</title>

          The <link> element should define the link to your site's main page:
          <link>元素應(yīng)該定義你網(wǎng)站主頁(yè)的鏈界:

          <link>http://www.w3schools.com</link>

          The final required element is <description>. This element should describe your RSS feed.
          最后必須有的元素就是 <description>,這個(gè)元素應(yīng)該描述你的RSS feed.

          <description>W3Schools Web Tutorials</description>


          Optional Elements in <channel>
          <channel>內(nèi)的可選元素

          Element 元素 Description 描述
          <category> Defines one or more categories the channel belongs to
          定義一個(gè)或多個(gè)頻道分類
          <cloud> Allows notification of updates.
          允許更新通告
          <copyright> Notifies about copyrighted material
          提醒有關(guān)版權(quán)
          <docs> An URL to documentation on the RSS version the channel is using
          頻道所使用的RSS版本文檔URL
          <generator> If the channel is created using an automatic generator, this is defined here
          如果頻道是自動(dòng)生成器產(chǎn)生的,就在這里定義
          <image> Inserts a picture to the channel.
          給頻道加圖片
          <language> Describes what language the channel uses. By using this tag it is possible for RSS aggregators to group sites based on language.
          描述了頻道所使用的語(yǔ)言。
          <lastBuildDate> Defines the last date the channel was modified
          定義頻道最新一次改動(dòng)的時(shí)間
          <managingEditor> Defines an e-mail address for the editor of the site
          定義編輯站點(diǎn)人員的E-mail地址
          <pubDate> Defines the last publication date for the channel
          定義頻帶最新的發(fā)布時(shí)間
          <rating> Parental control rating of the page
          頁(yè)面評(píng)估
          <skipDays> Defines days where it is unnecessary for RSS aggregators to update the feed
          <skipHours> Defines hours where it is unnecessary for RSS aggregators to update the feed
          <textInput> Creates a text input for the channel
          <ttl> (ttl = time to live) Defines how many minutes the channel can stay cached before refreshing
          存活的有效時(shí)間
          <webMaster> Defines an e-mail address for the webmaster of the site
          定義站張的郵件地址

          RSS item 元素
          翻譯:Linyupark / 2006-04-24

          The <item> element is where you link to and describe the update on your site.
          <item>元素內(nèi)是你網(wǎng)站連接和描述更新內(nèi)容的地方。

          With RSS 2.0 there are a lot of different options for the item element.
          在RSS 2.0 item元素里有很多不同的可選內(nèi)容


          The <item> Element
          <item>元素

          The RSS <item> is where updates are displayed. It is kind of like a headline for an article. <item> elements are created every time there is an update on your site that you would like displayed in your RSS feed.
          <item>是顯示RSS更新內(nèi)容的地方。它像是文章的標(biāo)題。當(dāng)你的站點(diǎn)有更新時(shí)RSSfeed中的<item>元素就會(huì)被建立起來(lái)。

          There are several optional <item> elements, but either the <title> or the <description> are required.
          <item>元素里有幾個(gè)可選的元素,但<title> 或是<description>是必須有的。

          A RSS <item> should include the <title>, <link> and <description> elements.
          一個(gè)RSS的<item>應(yīng)該包括 <title>, <link> 和 <description>元素

          The first element is your news item's title. This should be a very short description of your site and your RSS feed:
          第一個(gè)元素是項(xiàng)目的題目。應(yīng)該用十分簡(jiǎn)短的描述:

          <title>W3Schools New RSS Tutorial</title>

          The next element is the link to the part of your site the item is referring to:
          接下來(lái)的元素項(xiàng)目所關(guān)聯(lián)的連接:

          <link>http://www.w3schools.com/rss</link>

          The next line is the RSS feed description. This should describe your RSS feed item.
          再下面的一行就是RSS feed的描述部分,這應(yīng)該是描述你的RSS feed項(xiàng)目的。

          <description>W3Schools RSS Tutorial</description>


          Optional Elements in <item>
          可選的<item>元素

          Tag Description
          <author> Defines the author of the item.
          定義作者
          <category> Places the item in one or more of the channel categories.
          類別
          <comments> An URL to a comment's page for the item.
          針對(duì)項(xiàng)目的評(píng)論頁(yè)URL
          <enclosure> Describes a media object related to the item
          描述一個(gè)與項(xiàng)目有關(guān)的媒體對(duì)象
          <guid> GUID = Globally Unique Identifier. Defines a unique identifier to the item.針對(duì)項(xiàng)目定義獨(dú)特的標(biāo)志
          <pubDate> The publication date for the item.
          項(xiàng)目發(fā)布時(shí)間
          <source> Is used to define a third party source.
          轉(zhuǎn)載地址(源地址)

          RSS發(fā)布
          翻譯:Linyupark / 2006-04-24

          Having a RSS feed is no good unless other people can see it.
          光有RSS feed還是不夠的,應(yīng)該讓別人能看到它


          Publish Your RSS Feed
          發(fā)布你的RSS feed

          Publishing and getting people to notice your RSS feed is as important as making one.
          發(fā)布并讓人們注意到的你RSS就和你制作它一樣重要

          First, put your rss.xml file on the internet. You can place it on the same server as your site.
          首先,將你的RSS.xml文件放到你的站點(diǎn)服務(wù)器上。

          Next, let people know you have a RSS feed. Register your feed with an aggregator.
          然后,讓人們知道你有一個(gè)RSSfeed.到相關(guān)的目錄站上注冊(cè)你的RSS(下面是一些國(guó)外知名的RSS發(fā)布站)

          • Syndic8: The largest RSS directory. Syndicate has over 300,000 feeds listed. Register your feed here.
          • Daypop: A large news oriented RSS aggregator. Over 50,000 news oriented feeds. Register your feed here.
          • Newsisfree: A news oriented RSS aggregator. Over 18,000 feeds. Register your feed here.

          Then, place this RSS Logo and this XML Logo with URL's to a page that explains briefly how other people can view your RSS feed.
          接著, 將這兩個(gè)含有連接到你RSS地址的圖片放到你站點(diǎn)的頁(yè)面上,人們就可以看到你的RSS feed了


          Can I Manage my RSS Feed Myself?
          我可以自行管理RSS feed嗎?

          The best way to be sure your RSS feed includes the things you want, and works the way you want, is to manage it yourself. But this can be very time consuming, especially for pages with a lot of updates.
          如你想讓RSS里包括一些你想要的東西或是想按你的想法來(lái)做,最好的辦法就是你自己來(lái)管理它,但是這將是非常煩瑣的,因?yàn)楹芏囗?yè)有不同的東西要更新。

          Your other alternative is to use a third party automated RSS.
          還有種選擇就是使用第三方的RSS自動(dòng)生成器


          Automated RSS
          RSS自動(dòng)生成

          If you don't want to update your RSS feed yourself, there are tools and services you can use to automate it.
          如果你不想自己來(lái)更新RSS,這有些工具可以為你服務(wù)。
          ===== 以下是幾個(gè)工具的官方地址=====

          One such service is MyRSSCreator (featured in "RSS for dummies"), who can offer an automated, reliable RSS service in just 10 minutes.

          There are also free services such as FeedFire, who offers free creation and distribution of RSS feeds.

          For users who just need an easy RSS feed for their personal website, some of the most popular blog (Web Log) managers (like Blogger and Radio) offers built in automated RSS services.


          Validate
          校驗(yàn)

          You can validate your RSS feed here[校驗(yàn)地址]. This validator supports all RSS versions.


           

          RSS閱讀器
          翻譯:Linyupark / 2006-04-24

          A RSS reader gathers your news for you.
          一個(gè)RSS閱讀器可以為你收集新聞

          RSS readers are available for many different devices and OS.
          RSS閱讀器可以在很多不同的設(shè)備和操作系統(tǒng)上運(yùn)作


          RSS Readers
          [下面是國(guó)外的幾款閱讀器]

          There are a lot of different RSS readers. Some work as web services, and some are limited to windows (or Mac, PDA or UNIX). Here are a few I have tried and liked:

          • NewsGator Online - An free online based RSS aggregator. NewsGator Online also includes synchronization with Outlook Edition, viewing content on TV with Media Center Edition, as well as the publication of blogs and headlines.
             
          • RssReader - A free Windows based RSS aggregator. RssReader supports RSS versions 0.9x, 1.0 and 2.0 as well as Atom 0.1, 0.2 and 0.3.
             
          • FeedDemon - A great Windows based RSS aggregator. This is very easy to use and has a very orderly interface. But this is not freeware.
             
          • blogbot - A RSS aggregator plugin for your Outlook or Internet Explorer. The lite version for Internet Explorer is free.

          There are a lot of other RSS readers out there. http://www.ourpla.net/cgi-bin/pikie.cgi?RssReaders has a big list of RSS readers, you can even add your own readers to this page or comment on the existing ones.



          Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=704849

          posted on 2007-07-14 00:37 和田雨 閱讀(569) 評(píng)論(0)  編輯  收藏 所屬分類: XML

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 湖州市| 毕节市| 沁水县| 张家口市| 炉霍县| 丰顺县| 惠来县| 赣榆县| 那坡县| 北海市| 克东县| 洪泽县| 南城县| 花垣县| 会宁县| 舒城县| 博野县| 平定县| 浦北县| 报价| 香港 | 惠来县| 莒南县| 溆浦县| 巴塘县| 新泰市| 建水县| 平和县| 军事| 博白县| 彭州市| 临漳县| 正阳县| 黔西县| 尉犁县| 文成县| 修武县| 墨竹工卡县| 固安县| 太保市| 馆陶县|