From: Hungerburg <pc...@my...> - 2015-07-04 10:22:21
|
Am 2015-07-04 um 10:59 schrieb Dmitriy Shabanov: > On Sat, Jul 4, 2015 at 11:28 AM, Hungerburg <pc...@my... > > > XmldbURI uri = XmldbURI.create("/db/xmldb:something #1.dita"); > > Regarding RFC 3986, that looks to me like a *decoded* path component > with two segments ("db", "xmldb:something ") and a fragment ("1.dita") > too; if it should be a path only, the crosshatch would have to be remain > quoted even after decoding. > > In case of RFC 3986 here is "/db/xmldb" scheme, "something " hier-part > and "1.dita" fragment. https://www.ietf.org/rfc/rfc3986.txt section 3. That is exactly why I think that its a pain to pass URIs around as strings. When intelligent people cannot come to a conclusion, how should a computer do? BTW: A scheme must not have a slash, at least not on the WWW: https://tools.ietf.org/html/rfc3986#section-3.1 > And that mean that most of dbs have illegal resource name. > > Encoding may help, but should XmldbURI follow RFC 3986? You can treat it the same as any other URI then? -- Peter |