[XML-SIG] Re: Ideas for web/ package

M.-A. Lemburg mal@lemburg.com
Wed, 20 Feb 2002 16:49:23 +0100


Uche Ogbuji wrote:
> 
> > Just thought I'd drop a note:
> >
> > You may be interested in the mxURL package for dealing with URL,
> > URIs or whatever you call them ;-):
> 
> I hadn't been aware of this until you mentioned it earlier in the thread.
> 
> Indeed, I think URL versus URI is the crux of the problem.  We do need a
> UriResolver to be easily extensible to non-URL schemes, in particular URNs
> (most often UUID-based URNs).
> 
> It looks as if mxURL has some extensibility built in, but I don't see in the
> API how to plug in URN catalogs.

It's basically a reimplementation of urlparse in C. You can
register new schemes which then define how to parse the string,
but not introduce new parts to be parsed (without hacking the C
code).

> I suppose one could write a more general URI resolver and delegate URL-based
> schemes to mxURL...

Probably. I mostly use it for URLs hence the name.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/