官方播客 DTD 在哪里?
Apple 网站上的 播客指南 显示了一个示例 XML 文件,该文件引用了播客 DTD:podcast-1.0.dtd
。遗憾的是,该地址无法获取 DTD。我听说您可以使用 feedvalidator.org 验证 feed,但这只是一项服务。是否有其他位置可以提供官方播客 DTD?
DTD 的形式为 xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
。该 URL 实际上并未解析为 DTD。
The podcast howto on the Apple website shows a sample XML file, which refers to a podcast DTD: podcast-1.0.dtd
. The DTD is not available at this address, unfortunately. I heard you can validate a feed using feedvalidator.org, but it's only a service. Is there any other location where the official podcast DTD is available?
The DTD is given as xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
. This URL does not actually resolve to a DTD.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不相信有一个可以访问的“官方”播客 DTD。
运行播客目录的各种私营公司/组织(例如苹果、谷歌、Spotify)制定了非官方规范。但是,目前(2020 年 3 月)似乎还没有任何此类已发布的播客 DTD。
以下资源可能会有所帮助...
官方通用 RSS 规范
有关通用 rss feed 规范的信息,请参阅以下内容:
官方 RSS 规范
非官方商业规范
有关特定于播客的 rss feed 规范的信息,请参阅以下内容:
Apple Podcasts Connect 帮助
Google Feed 要求
Spotify 播客传送规范
您还可以通过在线服务将 URL 发布到您的播客 rss馈送并检查它们是否符合上述一些规格......
我最近发布了此答案中有关此类验证器的详细信息。
I don't believe there is an 'official' podcast DTD that is accessible.
There are unofficial specs put out by various private companies/organisations that run podcast directories (e.g. Apple, Google, Spotify). But, at this time (March 2020), there doesn't appear to be any such published podcast DTD.
The following resources may help...
Official Generic RSS Spec
For information about the general rss feed specification, see the following:
Official RSS Spec
Unofficial Commercial Specs
For information about podcast-specific rss feed specifications, see the following:
Apple Podcasts Connect Help
Google Feed Requirements
Spotify Podcast Delivery Specification
There are also online services where you can post a URL to your podcast rss feed and check they are valid against some of the above-mentioned specs...
I recently posted details about such validators in this answer.
无 dtd 由您引用的 xml 属性引用。相反,它只是一个(抽象)名称空间声明 - 从语法上讲,它可以是任何有效的 uri,因为本地名称 (
itunes
) 可以是任何 id(请参阅 此处 获取正式定义)。从语义上讲,它代表特定的标记词汇。不需要通过 URI 访问具体资源。dtd 引用必须作为 xml 文档开头的 doctype 声明的一部分,请参阅 正式规范或更温和的解释。
请注意,尽管示例的讨论仅限于 (x)html 相关文档,但任何 xml 文档都可以定义 dtd。
问候
no dtd is referenced by the xml attribute you are quoting. instead it is but a (abstract) namespace declaration - syntactically it could be any valid uri as the local name (
itunes
) could be any id (see here for a formal definition). semantically it represents a particular markup vocabulary. no concrete resource needs to be accessible through the uri.a dtd reference would have to come as part of a doctype declaration at the beginning of your xml doc, see the formal spec or a gentler explanation.
note that though the examples' discussion limits itself on (x)html-related documents, any xml doc may have a dtd defined.
regards