是否有任何已定义的原子联合 xml 模式?

发布于 2024-07-12 01:26:11 字数 151 浏览 6 评论 0 原文

是否有任何已定义的原子联合 xml 模式?

RFC 4287 仅包含附录 B 中的 Relax NG 紧凑模式。

Is there any defined atom syndication xml schema?

RFC 4287 only contains a Relax NG compact schema in appendix B.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

信愁 2024-07-19 01:26:11

http://www.kbcafe.com/rss/atom.xsd.xml" kbcafe.com/rss/atom.xsd.xml(网络存档版本,因为原始版本不再可用)

http://www.kbcafe.com/rss/atom.xsd.xml (A Web Archive version since the original is no longer available)

他夏了夏天 2024-07-19 01:26:11

什么不起作用

http:不应使用 //www.kbcafe.com/rss/atom.xsd.xml,因为它甚至无法检测丢失的 标签。

https://tools. oasis-open.org/version-control/browse/wsvn/cmis/trunk/SchemaProject/schema/ATOM.xsd 已损坏,xmllint 使用时报告错误:

复杂类型“atomPersonConstruct”:内容模型不是确定性的。

什么有效

RFC 包含relax ng 紧凑规范: https: //validator.w3.org/feed/docs/rfc4287.html#rfc.section.B

trang的帮助下,.rnc文件可以从紧凑格式转换为基于 XML 的 .rng 文件。 这又可以与 xmllint 一起使用:

$ xmllint --noout --relaxng atom.rng feed.atom
feed.atom:4: element feed: Relax-NG validity error : Expecting an element updated, got nothing
feed.atom:16: element entry: Relax-NG validity error : Invalid sequence in interleave
feed.atom:16: element entry: Relax-NG validity error : Element feed failed to validate content
feed.atom fails to validate

What does not work

http://www.kbcafe.com/rss/atom.xsd.xml should not be used, since it does not even detect missing <id> tags.

https://tools.oasis-open.org/version-control/browse/wsvn/cmis/trunk/SchemaProject/schema/ATOM.xsd is broken, xmllint reports an error when using it:

complex type 'atomPersonConstruct': The content model is not determinist.

What does work

The RFC contains a relax ng compact specification: https://validator.w3.org/feed/docs/rfc4287.html#rfc.section.B

With the help of trang that .rnc file can be converted from the compact format to the XML-based .rng file. This in turn can be used with xmllint:

$ xmllint --noout --relaxng atom.rng feed.atom
feed.atom:4: element feed: Relax-NG validity error : Expecting an element updated, got nothing
feed.atom:16: element entry: Relax-NG validity error : Invalid sequence in interleave
feed.atom:16: element entry: Relax-NG validity error : Element feed failed to validate content
feed.atom fails to validate
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文