blog-post-feed-equivalence-fr

From Microformats Wiki
Revision as of 09:42, 25 May 2009 by ChristopheDucamp (talk | contribs) (New page: == Billet de Blog - Equivalence de Feed == Suggéré par [http://www.downes.ca/ Stephen Downes] sur la [http://microformats.org/discuss/mail/microformats-discuss/2005-August/000670.html l...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Billet de Blog - Equivalence de Feed

Suggéré par Stephen Downes sur la liste de discussion Microformats :

This (and similar comments about what RSS "can't do") is simply false. 
Anything XHTML can do, RSS can do.

RSS is a type of XML (so is Atom, and all my comments apply to both 
equally). Crucially:

   RSS + XSLT = XHTML

And for that matter,

   XHTML + XSLT = RSS

So what's the difference? Specifically: XHTML uses elements (such as 
'p', 'h1', etc) that are interpreted automatically by your browser, 
while RSS uses elements (such as 'item','title', etc) that your browser 
requires XSLT in order to interpret. Today's browsers can all do this; 
they can easily display XML using XSLT (here is an example: 
http://www.downes.ca/news/OLDaily.xml ) but the kicker is, the XSLT 
declaration needs to be contained in the RSS file and the XSLT must be 
located in the same domain as the RSS (for the browser; on the server 
side, any XSLT may be applied without restraint).

*What this means* is that any XHTML definition of 'blog posts' should 
*map* to existing RSS (or Atom) elements.

Notes

Le mot "feed" est en train d'être utilisé en tant que terme plus général pour RSS, Atom ou ce que vous voudrez.

Cette sorte d'idée platonique sur la façon dont les choses peuvent fonctionner. Par exemple, toutes les copies d'une entrée de weblog ont toute le contenu immédiatement disponible, Atom spécifie mieux le sens des éléments que RSS 2.0, quelques fils incluent des métadonnées qui ne sont pas disponibles sur la page HTML, et ainsi de suite.