W3C home > Mailing lists > Public > xml-uri@w3.org > May 2000

Re: The "data:" URI scheme considered helpful

From: John Cowan <jcowan@reutershealth.com>
Date: Fri, 19 May 2000 17:18:11 -0400
Message-ID: <3925AF93.BCBA74B@reutershealth.com>
To: "Simon St.Laurent" <simonstl@simonstl.com>, "xml-uri@w3.org" <xml-uri@w3.org>
"Simon St.Laurent" wrote:
> 
> At 04:53 PM 5/19/00 -0400, John Cowan wrote:
> >The "data:" URI scheme can be used to serve the purpose of ephemeral
> >namespace names quite nicely.  In its simplest form, it is "data:,"
> >followed by an arbitrary string of URL-safe characters and %xx escapes.
> >If dereferenced, it returns the URL-decoded string as a text/plain document.
> >(Try it in your Netscape browsers.)
> 
> Hmmm... so if I URL-encoded an entire schema I could put it in a namespace
> URI using the data: scheme?  And then use it with XML documents?
> 
> Now there's a possibility I hadn't considered before...

You would need to give a media-type before the comma (text/plain is the
default).  There is probably a practical upper bound on the length of the URL.

-- 

Schlingt dreifach einen Kreis um dies! || John Cowan <jcowan@reutershealth.com>
Schliesst euer Aug vor heiliger Schau,  || http://www.reutershealth.com
Denn er genoss vom Honig-Tau,           || http://www.ccil.org/~cowan
Und trank die Milch vom Paradies.            -- Coleridge (tr. Politzer)
Received on Friday, 19 May 2000 17:18:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:32:42 UTC