Tecnologías XML / RSS & Atom / Referencia: elementos Atom / atom:content

(Extracto de «Newsfeeds con RSS y Atom» de Heinz Wittenbrink, publicado por Galileo Press, 2005)

Significado

Contenedor del contenido de una entrada (entry) o enlace al contenido.

Esquema

atomInlineTextContent =
   element atom:content {
      atomCommonAttributes,
      attribute type { "text" | "html" }?,
      (text)*
}


atomInlineXHTMLContent =
   element atom:content {
      atomCommonAttributes,
      attribute type { "xhtml" },
      xhtmlDiv
}


atomInlineOtherContent =
   element atom:content {
      atomCommonAttributes,
      attribute type { atomMediaType }?
      {text | anyElement}*
}

     
atomOutOfLineContent =
   element atom:content {
      atomCommonAttributes,
      attribute type { atomMediaType }?,
      attribute src { atomUri },
      empty
}

atomContent = atomInlineTextContent
 | atomInlineXHTMLContent
 | atomInlineOtherContent
 | atomOutOfLineContent

Ancestros

entry

Descendientes/contenido

Contenido textual o binario (véase El contenido como «ciudadano de primera clase»).

Atributos

Atributos comunes

Nombre

Valor

type

text, html, xhtml o un tipo de medio registrado MIME(RFC 2045) con un tipo de nivel superior discreto (RFC 2045, sección 5)

src

Referencia IRI (RFC 3987)

Ejemplo

Véase la sección Contenidos textuales 1: texto sencillo, HTML y XHTML de la página El contenido como «ciudadano de primera clase».

Notas

Si el atributo type no se indica, debe suponerse que su valor es text. El atributo src debe utilizarse cuando el contenido no se incluye en línea. El contenido binario debe codificarse en base64. El contenido textual (incluido XML) debería incluirse en línea.

Equivalentes

RSS 2.0

RSS 1.0

RSS 1.1

item

rss:item

rss:item

   

 

 

 

Licencia Creative Commons
Esta obra se distribuye bajo una licencia Creative Commons Atribución-CompartirIgual 3.0 Unported.

volver arriba