You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "George M. Feinberg" <gm...@maine.rr.com> on 2005/02/18 17:37:45 UTC

XMLUri class

To anyone who cares about XMLUri...

The XMLUri class rejects a URI of this form:
	"scheme:"
That is, it appears to require something after
the ":"
For example,
	"scheme:" is rejected
	"scheme:foo" is accepted

As far as I know, most anything after the colon is
scheme-specific.

Regards,

George


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: XMLUri class

Posted by George Feinberg <gm...@sleepycat.com>.
> That class is an implementation of RFC 2396 [1] which requires at least
> one character after the colon:
>
> absoluteURI   = scheme ":" ( hier_part | opaque_part )
> hier_part     = ( net_path | abs_path ) [ "?" query ]
> opaque_part   = uric_no_slash *uric
> uric_no_slash = unreserved | escaped | ";" | "?" | ":" | "@" |
>                 "&" | "=" | "+" | "$" | ","
> net_path      = "//" authority [ abs_path ]
> abs_path      = "/"  path_segments
>
> [1] http://www.ietf.org/rfc/rfc2396.txt?number=2396

I understand that a valid URI requires something after the colon.
The issue I ran into was trying to create a Base URI, where I wanted
to concatenate a base + relative URI.

The constructor exposed by XMLUri to do this
takes an XMLUri object for the "base" part
  XMLUri::XMLUri(const XMLUri* const      baseURI
               , const XMLCh* const   uriSpec
               , MemoryManager* const manager)

I wanted to use a base URI of "scheme:"   (nothing
after the colon).  This is not possible with the current XMLUri class.

Perhaps creating a Base URI with nothing after
the colon is also illegal.  I could not easily find the appropriate
references to get a definitive answer.

George




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: XMLUri class

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
That class is an implementation of RFC 2396 [1] which requires at least 
one character after the colon:

absoluteURI   = scheme ":" ( hier_part | opaque_part )
hier_part     = ( net_path | abs_path ) [ "?" query ]
opaque_part   = uric_no_slash *uric
uric_no_slash = unreserved | escaped | ";" | "?" | ":" | "@" |
                "&" | "=" | "+" | "$" | ","
net_path      = "//" authority [ abs_path ]
abs_path      = "/"  path_segments

[1] http://www.ietf.org/rfc/rfc2396.txt?number=2396

"George M. Feinberg" <gm...@maine.rr.com> wrote on 02/18/2005 11:37:45 AM:

> 
> To anyone who cares about XMLUri...
> 
> The XMLUri class rejects a URI of this form:
>    "scheme:"
> That is, it appears to require something after
> the ":"
> For example,
>    "scheme:" is rejected
>    "scheme:foo" is accepted
> 
> As far as I know, most anything after the colon is
> scheme-specific.
> 
> Regards,
> 
> George
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> 

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org