官方播客DTD在哪里? [英] Where is the official podcast DTD?
问题描述
Apple网站上的播客方法显示了一个示例XML文件,该文件引用了播客DTD :podcast-1.0.dtd
.不幸的是,DTD在此地址不可用.听说您可以使用feedvalidator.org验证供稿,但这只是一项服务.可以使用官方播客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?
DTD用xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
给出.该网址实际上并未解析为DTD.
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.
推荐答案
没有dtd .相反,它只是一个(抽象的)名称空间声明-语法上它可以是任何有效的uri,因为本地名称(itunes
)可以是任何id(请参见
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.
dtd引用必须作为xmltype开头的doctype声明的一部分,请参见绅士解释.
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.
请注意,尽管示例的讨论只限于(x)html相关文档,但任何xml文档都可能定义了dtd.
note that though the examples' discussion limits itself on (x)html-related documents, any xml doc may have a dtd defined.
致谢
这篇关于官方播客DTD在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!