[RSS]多个< item> s [英] [RSS] Multiple <items>s

查看:60
本文介绍了[RSS]多个< item> s的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在手工制作一个非常简单的RSS 2.0提要

< http://www.bookstacks.org/rss.xml>并更换鞋底

< item>< / item>每天的部分。这是完成

RSS提要的一般方式吗?我故意试图避免使用软件

来生成/管理Feed。


Ian

-
http://sundry.ws/

I''m doing a very simple RSS 2.0 feed by hand
<http://www.bookstacks.org/rss.xml> and changing the sole
<item></item> section for each day. Is this the general way in which
RSS feeds are done? I''m intentionally trying to avoid using software
to generate / manage the feed.

Ian
--
http://sundry.ws/

推荐答案

2006年3月15日星期三00:10:05 GMT,Ian Rastall< ia*@bookstacks.org>

写道:
On Wed, 15 Mar 2006 00:10:05 GMT, Ian Rastall <ia*@bookstacks.org>
wrote:
这是RSS提要的一般方式吗?


你为什么问?它是_feel_对吗?


好​​吧,我承认我这样做了。我有几个小网站,我在字面上确实

将目录手工编码为RSS。一个XSLT转换使页面,一个

生成索引,另一个将最新的文章放入RSS

订阅源。但那时我是一个极客,我很自然地手工编写代码

RSS - 我绝不会要求用户这样做。

我故意试图避免使用软件生成/管理Feed。
Is this the general way in which RSS feeds are done?
Why are you asking? Does it _feel_ right ?

OK, I admit I do it. I have a couple of small sites where I do literally
hand-code the catalogue as RSS. One XSLT transform makes the pages, one
makes the indexes and another puts the most recent articles into an RSS
feed. But then I''m a geek and it''s perfectly natural for me to hand-code
RSS - I''d never ask a user to do this.
I''m intentionally trying to avoid using software
to generate / manage the feed.




为什么?软件是你的朋友!


一般来说,RSS是从同一个数据库支持的CMS中喷出的,它在页面上提供了
。有时候你先编写静态页面,然后将它们写入RSS中。你真的需要把网站视为一项整体任务,

并不像RSS是孤立的东西。



Why? Software is your friend!

In general RSS is spewed out of the same database-backed CMS that serves
up the pages. Sometimes you write static pages first and then scrape
them into RSS. You really need to look at the site as an overall task,
not as the RSS being something isolated.


2006年3月15日星期三01:15:05 +0000,Andy Dingley

< di ***** @ codesmiths.com>写道:
On Wed, 15 Mar 2006 01:15:05 +0000, Andy Dingley
<di*****@codesmiths.com> wrote:
你为什么问?它是_feel_对吗?
Why are you asking? Does it _feel_ right ?




嗨Andy。至少在目前,这根饲料并不多。

我给它添加了一个链接,所以人们可以看到它是什么,但它很容易

只需将其粘贴在此处:


<?xml version =" 1.0"?>

< rss version =" ; 2.0">

< channel>

< title> Bookstacks< / title>

< ttl> 15< / ttl>

< description>每日有用知识位< / description>

< link> http://www.bookstacks.org/< / link>

< copyright>无权保留。< / copyright>

< language> zh< / language>

< item>

< guid> http://www.bookstacks.org/rss/past/0001.html< / guid>

< title> PG Encyclopedia - " A" (第1部分)< / title>

< description> A.我们的这封信对应[... snip ...]

Athenaeus x。 453 d。< / description>

< pubDate>星期二,2006年3月14日15:48:00 -0500< / pubDate>

< link> http: //www.bookstacks.org/rss/rss.xml</link>

< / item>

< / channel>

< / rss>


我所要做的就是替换< description>带有新

段的部分,并更改< title>和< guid>。这很容易手工完成。


我想我担心的是如果我更改< item>部分

每天,而不是添加新的< item>在它下面的部分,一些

RSS阅读器(软件,介意你,而不是人)可能会窒息,或者

认为它是每次打开它时的新饲料。是标准做法,

IOW,只需要一件商品并每天更换,或者继续在< item>中添加

部分,很像博客?每次检查页面时,RSS阅读器都会下载每个项目吗?


这是我的错,因为我制作了页面,进行了验证,

只是继续进行直播并没有看到会发生什么

如果我添加了< item>,或者更改了< item> ......无论哪个。现在我是b / b
试图在没有我的读者的情况下主动做正确的事情

在我解决问题时从我那里得到一个奇怪的反馈。


TIA,


Ian

-
http://sundry.ws/


2006年3月15日星期三01: 15:05 +0000,Andy Dingley

< di ***** @ codesmiths.com>写道:
On Wed, 15 Mar 2006 01:15:05 +0000, Andy Dingley
<di*****@codesmiths.com> wrote:
你真的需要将网站视为一项总体任务,而不是将RSS视为孤立的东西。
You really need to look at the site as an overall task,
not as the RSS being something isolated.



这个网站没有任何东西可以提供。我以前试过了。如果有人想要阅读其中一本书,他们就会得到所有的东西。

没有新闻,除了最新的书籍,而且''不是我会的东西

打开我的聚合器来查看。但是今天我正在看Gutenberg项目

百科全书,认为将它放在

网站上并不是一个好主意,但是我认为这样做会很好RSS订阅。 Feed没有提供网站内容,而是它b / b $ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


Ian

-
http://sundry.ws/


这篇关于[RSS]多个&lt; item&gt; s的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆