Existe-t-il un schéma xml de syndication d'atome défini?Existe-t-il un schéma xml de syndication d'atome défini?
RFC 4287 ne contient un schéma Relax compact NG en annexe B.
Existe-t-il un schéma xml de syndication d'atome défini?Existe-t-il un schéma xml de syndication d'atome défini?
RFC 4287 ne contient un schéma Relax compact NG en annexe B.
http://www.kbcafe.com/rss/atom.xsd.xml (Une version d'archive Web depuis le pas est d'origine plus disponible)
http://www.kbcafe.com/rss/atom.xsd.xml ne devrait pas être utilisé, car il ne détecte même pas les balises <id>
manquantes.
https://tools.oasis-open.org/version-control/browse/wsvn/cmis/trunk/SchemaProject/schema/ATOM.xsd est cassé, xmllint
signale une erreur lors de son utilisation:
type complexe 'atomPersonConstruct': Le modèle de contenu ne sont pas déterministes.
Le RFC contient une RELAX NG spécification compact: https://validator.w3.org/feed/docs/rfc4287.html#rfc.section.B
Avec l'aide de trang
ce fichier .rnc
peut être converti du format compact au fichier .rng
basé sur XML. Celui-ci peut à son tour être utilisé avec 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
Le fichier .rng est disponible sur mon blog: http://cweiske.de/tagebuch/atom -validation.htm – cweiske
Nope. Pas comme ça. Je veux un schéma Xml. Je n'ai rien compris de ce lien. –
XSD est la définition de schéma XML. Si ce n'est pas ce que vous voulez, vous voulez autre chose qu'un schéma. Cherchez-vous une DTD peut-être? – Welbog
Oups désolé, c'est google chrome bug je pense. Il n'a pas montré le xsd. Il montre juste du texte! Dans Internet Explorer, c'est OK. Merci. –