Validité du RSS #4799

Closed
opened 1 year ago by marcimat · 2 comments
marcimat commented 1 year ago
Owner

Marc, sur https://discuter.spip.net/t/rss-atom-enclosures-et-w3c/152922 signale quelques points de validité à améliorer sur le RSS de la dist

backend.html

  • balise rss : rajout d’un lien xmlns:atom="http://www.w3.org/2005/Atom"
  • balise channel : rajout de <atom:link href="[(#SELF|url_absolue)]" rel="self" type="application/rss+xml" />
  • réf : Missing atom:link with rel="self"

squelette rss-item.html (ou inc-rss.html)

  • enclosures multiples : item contains more than one enclosure
  • suggestion (discutable) rajouter un critère {0,1} dans la boucle document de rss-item.html

<BOUCLE_documents(DOCUMENTS){id_article}{mode=document}{doublons}{0,1}>[
<enclosure url="(#URL_DOCUMENT|url_absolue|unique)"[ length="(#TAILLE)"][ type="(#MIME_TYPE)"] />]
</BOUCLE_documents>
Marc, sur https://discuter.spip.net/t/rss-atom-enclosures-et-w3c/152922 signale quelques points de validité à améliorer sur le RSS de la dist ### backend.html * balise rss : rajout d’un lien `xmlns:atom="http://www.w3.org/2005/Atom"` * balise channel : rajout de `<atom:link href="[(#SELF|url_absolue)]" rel="self" type="application/rss+xml" />` * réf : Missing atom:link with rel="self" ### squelette rss-item.html (ou inc-rss.html) * enclosures multiples : item contains more than one enclosure * suggestion (discutable) rajouter un critère `{0,1}` dans la boucle document de rss-item.html ``` <BOUCLE_documents(DOCUMENTS){id_article}{mode=document}{doublons}{0,1}>[ <enclosure url="(#URL_DOCUMENT|url_absolue|unique)"[ length="(#TAILLE)"][ type="(#MIME_TYPE)"] />] </BOUCLE_documents> ```
b_b commented 1 year ago
Owner

PR envoyée #11
Statut changé à En cours

PR envoyée https://git.spip.net/spip/dist/pulls/11 **Statut changé à En cours**
b_b commented 1 year ago
Owner

C'est intégré, je ferme car amha le point sur les multiples enclosures est négligeable, cf :

According to the RSS Advisory Board's Best Practices Profile, support for the enclosure element in RSS software varies significantly because of disagreement over whether the specification permits more than one enclosure per item. Although the author intended to permit no more than one enclosure in each item, this limit is not explicit in the specification.

For best support in the widest number of aggregators, an item should not contain more than one enclosure.
Meanwhile, be aware that multiple-enclosure support varies widely from tool tool to tool, and therefore should be avoided if at all possible.
Statut changé à Fermé

C'est intégré, je ferme car amha le point sur les multiples enclosures est négligeable, cf : > According to the RSS Advisory Board's Best Practices Profile, support for the enclosure element in RSS software varies significantly because of disagreement over whether the specification permits more than one enclosure per item. Although the author intended to permit no more than one enclosure in each item, *this limit is not explicit in the specification*. >For best support in the widest number of aggregators, an item should not contain more than one enclosure. >Meanwhile, be aware that multiple-enclosure support varies widely from tool tool to tool, and therefore *should be avoided if at all possible*. **Statut changé à Fermé**
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.