From: Adam R. <ad...@ex...> - 2015-07-03 14:59:50
|
I have no idea? Certainly if you did new java.net.URI("/db/xmldb:something #1.dita") you will get a URISyntaxException due to the space. It depends what the contract of the `create` function is, is it meant to URI encode? On 3 July 2015 at 15:50, Dmitriy Shabanov <sha...@gm...> wrote: > Hi, > > Is this test correct? > > XmldbURI uri = XmldbURI.create("/db/xmldb:something #1.dita"); > > assertEquals("xmldb:/db/xmldb:something%20#1.dita", uri.toString()); > assertEquals("xmldb:something%20#1.dita", uri.lastSegment().toString()); > > -- > Dmitriy Shabanov > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > Exist-development mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-development > -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |