Warning, /frameworks/syndication/autotests/atom/atom10_relative_uris.xml is written in an unsupported language. File is not indexed.
0001 <!-- Copyright: Frank Osterfeld (libsyndication). See LICENSE.UNITTESTS for details. --> 0002 <feed xmlns="http://www.w3.org/2005/Atom" xml:base="http://example.com/feed/"> 0003 <generator uri="generator.html">This generator's uri is relative, and must be completed to http://example.com/feed/generator.html, using xml:base</generator> 0004 0005 <category term="some category" scheme="schemes/localSchemeName" label="This is a category from scheme schemes/localSchemeName. We do not complete the scheme IRI, being an IRI, not an IRI reference."/> 0006 0007 <logo>someicon.png</logo> 0008 0009 <title>This test feeds contains relative URIs of all kinds, which should be completed using xml:base. 0010 Affected are: Attributes: generator uri, content src, link href. Elements: <uri> and <logo>. 0011 XHTML in text constructs and content. Exceptions: category scheme, and the <id> element, 0012 they are expected to contain absolute IRIs.</title> 0013 0014 <entry xml:base="http://example.com/test/"> 0015 <title type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">Example <a href="test.html">test</a>. 0016 The link must point to http://example.com/test/test.html.</div></title> 0017 </entry> 0018 0019 <entry xmlns="http://www.w3.org/2005/Atom" xml:base="http://example.com/parent/"> 0020 <title type="xhtml" xml:base="http://example.com/test/"><div xmlns="http://www.w3.org/1999/xhtml">Example <a href="test.html">test</a>. The link must point to http://example.com/test/test.html. (not .../parent/test.html)</div></title> 0021 </entry> 0022 0023 <entry> 0024 <title>This is item's <content> has a src attribute pointing to http://example.com/feed/somesrc.html</title> 0025 <content src="somesrc.html"/> 0026 </entry> 0027 0028 <entry xml:base="http://example.com/test/"> 0029 <title>This entry's link and author uri point to test.html. Both must be completed to http://example.com/test/test.html</title> 0030 <author> 0031 <name>Test</name> 0032 <uri>test.html</uri> 0033 </author> 0034 <link type="text/html" href="test.html"/> 0035 </entry> 0036 0037 <entry> 0038 <title>Although this entry's id contains a relative URL, libsyndication should not complete it, as 0039 IDs are expected to be absolute IRIs.</title> 0040 <id>test/someRelativeUri.html</id> 0041 </entry> 0042 </feed>