Is there any defined atom syndication xml schema?
是否有任何已定义的原子联合xml架构?
RFC 4287 only contains a Relax NG compact schema in appendix B.
RFC 4287在附录B中仅包含Relax NG紧凑模式。
2 个解决方案
#1
http://www.kbcafe.com/rss/atom.xsd.xml (A Web Archive version since the original is no longer available)
http://www.kbcafe.com/rss/atom.xsd.xml(自原始版本不再可用以来的Web Archive版本)
#2
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.
不应使用http://www.kbcafe.com/rss/atom.xsd.xml,因为它甚至不会检测到缺少的
https://tools.oasis-open.org/version-control/browse/wsvn/cmis/trunk/SchemaProject/schema/ATOM.xsd is broken, xmllint
reports an error when using it:
https://tools.oasis-open.org/version-control/browse/wsvn/cmis/trunk/SchemaProject/schema/ATOM.xsd已损坏,xmllint在使用时报告错误:
complex type 'atomPersonConstruct': The content model is not determinist.
复杂类型'atomPersonConstruct':内容模型不是决定论者。
What does work
The RFC contains a relax ng compact specification: https://validator.w3.org/feed/docs/rfc4287.html#rfc.section.B
RFC包含一个松弛的紧凑规范: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
:
在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
#1
http://www.kbcafe.com/rss/atom.xsd.xml (A Web Archive version since the original is no longer available)
http://www.kbcafe.com/rss/atom.xsd.xml(自原始版本不再可用以来的Web Archive版本)
#2
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.
不应使用http://www.kbcafe.com/rss/atom.xsd.xml,因为它甚至不会检测到缺少的
https://tools.oasis-open.org/version-control/browse/wsvn/cmis/trunk/SchemaProject/schema/ATOM.xsd is broken, xmllint
reports an error when using it:
https://tools.oasis-open.org/version-control/browse/wsvn/cmis/trunk/SchemaProject/schema/ATOM.xsd已损坏,xmllint在使用时报告错误:
complex type 'atomPersonConstruct': The content model is not determinist.
复杂类型'atomPersonConstruct':内容模型不是决定论者。
What does work
The RFC contains a relax ng compact specification: https://validator.w3.org/feed/docs/rfc4287.html#rfc.section.B
RFC包含一个松弛的紧凑规范: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
:
在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