rname.html"><code>&lt;dirname&gt;</code></a> takes its
directory. This technique also allows <code>imported.xml</code> to be
used as a standalone file (without being imported in other
project).</p>

<p>The above description only works for imported files that actually
  are imported from files and not from URLs.  For files imported from
  URLs using resources relative to the imported file requires you to
  use tasks that can work on non-file resources in the first place.
  To create a relative resource you'd