- Home
- Categorie
- Digital Marketing
- Posizionamento Nei Motori di Ricerca
- image sitemap, quale struttura più corretta ?
-
image sitemap, quale struttura più corretta ?
Spulciando in giro i protocolli per le sitemap di immagini mi sono imbattuto in due strutture
<image:image> <image:loc>xxxxxxxxx</image:loc> <image:title>xxxxxxxxxxxxxxxx</image:title> <image:caption>xxxxxxxxxxxxxx</image:caption> </image:image>
e
<xsd:element name="image">
xsd:annotation
xsd:documentation
Encloses all information about a single image. Each URL (<loc> tag) can include up to 1,000 image:image tags.
</xsd:documentation></xsd:annotation>
xsd:complexType
xsd:sequence
<xsd:element name="loc" type="xsd:anyURI">
xsd:annotation
xsd:documentationThe URL of the image.</xsd:documentation></xsd:annotation>
</xsd:element>
<xsd:element name="caption" type="xsd:string" minOccurs="0">
xsd:annotation
xsd:documentationThe caption of the image.</xsd:documentation></xsd:annotation>
</xsd:element>
<xsd:element name="geo_location" type="xsd:string" minOccurs="0">
xsd:annotation
xsd:documentation
The geographic location of the image. For example, "Limerick, Ireland".
</xsd:documentation></xsd:annotation>
</xsd:element>
<xsd:element name="title" type="xsd:string" minOccurs="0">
xsd:annotation
xsd:documentationThe title of the image.</xsd:documentation></xsd:annotation>
</xsd:element>
<xsd:element name="license" type="xsd:anyURI" minOccurs="0">
xsd:annotation
xsd:documentationA URL to the license of the image.</xsd:documentation></xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Qual'è il più corretto ?
-
Quello corretto è quello che si basa sulle specs di sitemaps.org http://www.sitemaps.org/protocol.html
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"> <url> <loc>http://example.com/sample.html</loc> <image:image> <image:loc>http://example.com/image.jpg</image:loc> </image:image> <image:image> <image:loc>http://example.com/photo.jpg</image:loc> </image:image> </url> </urlset>
-
Grazie
chiedevo in quanto avevo trovato sugli schemas di google la seconda versione.