kde-extraapps/syndication/tests/atom/atom10_entry_link.xml

64 lines
3.3 KiB
XML

<!-- Copyright: Mark Pilgrim (feed parser test suite). See LICENSE.UNITTESTS for details. -->
<feed xmlns="http://www.w3.org/2005/Atom">
<entry>
<title>alternate link of type &quot;text/html&quot; pointing to &quot;http://www.example.com&quot;/</title>
<link rel="alternate" type="text/html" href="http://www.example.com/"/>
</entry>
<entry>
<title>alternate link of type &quot;text/html&quot; pointing to &quot;http://www.example.com/&quot;, with a title</title>
<link rel="alternate" type="text/html" title="Example title" href="http://www.example.com/"/>
</entry>
<entry>
<title>a link without &quot;rel&quot; attribute. rel defaults to &quot;alternate&quot;</title>
<link type="text/html" href="http://www.example.com/"/>
</entry>
<entry>
<title>&quot;related&quot; link of type &quot;text/html&quot; pointing to &quot;http://www.example.com/&quot;</title>
<link rel="related" type="text/html" href="http://www.example.com/"/>
</entry>
<entry>
<title>&quot;via&quot; link of type &quot;text/html&quot; pointing to &quot;http://www.example.com/&quot;</title>
<link rel="via" type="text/html" href="http://www.example.com/"/>
</entry>
<entry>
<title>&quot;self&quot; link of type &quot;text/html&quot; pointing to &quot;http://www.example.com/&quot;</title>
<link rel="self" type="text/html" href="http://www.example.com/"/>
</entry>
<entry>
<title>rel=&quot;http://feedparser.org/rel/test&quot;</title>
<link rel="http://feedparser.org/rel/test" type="text/html" href="http://www.example.com/"/>
</entry>
<entry>
<title>An enclosure link pointing to a website</title>
<link rel="enclosure" type="text/html" href="http://www.example.com/"/>
</entry>
<entry>
<title>Enclosure link to a mpeg4 file without &quot;length&quot; attribute. This should be mapped to an Enclosure!</title>
<link rel="enclosure" type="video/mpeg4" href="http://www.example.com/movie.mp4"/>
</entry>
<entry>
<title>Enclosure link to a mpeg4 file with &quot;length&quot; attribute. This should be mapped to an Enclosure!</title>
<link rel="enclosure" type="video/mpeg4" href="http://www.example.com/movie.mp4" length="42301"/>
</entry>
<entry>
<title>two links, one &quot;alternate&quot;/&quot;application/xhtml+xml&quot;, one &quot;service.post&quot;/&quot;application/atom+xml&quot;</title>
<link rel="alternate" type="application/xhtml+xml" href="http://www.example.com/"/>
<link rel="service.post" type="application/atom+xml" href="http://www.example.com/post"/>
</entry>
<entry>
<title>An &quot;alternate&quot; link with title and language information</title>
<link rel="alternate" type="text/html" title="Example title" href="http://www.example.com/" hreflang="en"/>
</entry>
<entry>
<title>multiple links with rel values of &quot;alternate&quot;, &quot;related&quot; and &quot;via&quot;</title>
<link rel="alternate" href="http://www.example.com/alternate"></link>
<link rel="related" type="text/html" href="http://www.example.com/related"></link>
<link rel="via" type="text/html" href="http://www.example.com/via"></link>
</entry>
<entry>
<title>&quot;alternate&quot; link of type &quot;application/xhtml+xml&quot;</title>
<link rel="alternate" type="application/xhtml+xml" href="http://www.example.com/"/>
</entry>
</feed>