In article <>, one of infinite monkeys
at the keyboard of Jeen Broekstra <> wrote:
>> It could, however, look for links with the
>> type="application/rdf+xml" attribute. It would find a couple
>> in my pages, for instance.
>
> That would, however, only work if the web server from which the
> file is hosted is aware of this mime type.
Nope. I said attribute.
<link rel="metadata" type="application/rdf+xml" href="metadata-for-page.html">
> I don't know if Apache
> comes preconfigured with it these days but I'll bet that older
Neither do I; in any case it wouldn't do anything for the above example
which I deliberately (and perfectly legitimately) ended with .html
The server should of course serve it with the correct MIME type,
but that's another issue.
> You're right that this is the correct way of processing it, but
> for now, being slightly more opportunistic and looking for
> extensions (as well as trying to parse text/xml files) would
> probably give much better results.
Even if .rdf gets something, it'll miss out on lots of .cgi, .php,
..xml and other things. It's simply broken.
Relying on the attribute will also miss out on many instances.
It's no more than a more correct thing than ".rdf" to look for
in (x)html links.
--
Nick Kew
In urgent need of paying work - see
http://www.webthing.com/~nick/cv.html