The following include should work:
<pre><code><ui:include src="/layouts/includes/Footer.xhtml" />
</code></pre></code></pre>
To download an "xhtml resource" directly is not allowed, because then you could download the "source" of a xhtml. So with the resource framework you can only access images and script files.