NewsBlur/vendor/feedvalidator/demo/docs-xml/warning/SameDocumentReference.xml

24 lines
980 B
XML

<fvdoc>
<div xmlns='http://www.w3.org/1999/xhtml'>
<div id='message'>
<p>Same-document reference</p>
</div>
<div id='explanation'>
<p>The URI in question can be considered as a
<a href="http://www.apps.ietf.org/rfc/rfc3986.html#sec-4.4">Same-Document Reference</a>.
As the current xml:base in effect does not match the URI of the document,
this can lead to inconsistent and non-interoperable behavior between
different clients.</p>
</div>
<div id='solution'>
<p>Consider changing the xml:base to reference the either the
document itself, or the parent directory of the document referenced.</p>
<p>For example, change:</p>
<blockquote><code>&lt;link href="." xml:base="http://example.com/blog/" /&gt;</code></blockquote>
<p>to this:</p>
<blockquote><code>&lt;link href="." xml:base="http://example.com/blog/feed.atom" /&gt;</code></blockquote>
<p>or this:</p>
<blockquote><code>&lt;link href="blog/" xml:base="http://example.com/" /&gt;</code></blockquote>
</div>
</div>
</fvdoc>