Re: The "data:" URI scheme considered helpful

"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