From: Pierrick B. <pie...@cu...> - 2005-11-03 10:50:18
|
Adam Retter wrote: > It would be very easy for me to add a method to the context module to > return this easily, as the baseURI is stored in the XQueryContext of th= e > executing XQuery. >=20 > Interested? Of course, yes. But I would first like a *consistent* naming scheme or a scheme that is=20 driven by system properties. For example, just go to http://demo.exist-db.org/xquery/xquery.xq and tes= t : doc("/db/shakespeare/plays/macbeth.xml") then doc("/shakespeare/plays/macbeth.xml") Both return the same document ! ... because eXist prepends the name of=20 the root collection. Then, just test base-uri(), first on http://demo.exist-db.org, then on=20 your own machine through different protocols. So, with broken base-uri() and inconsistent naming schemes, it is=20 difficult to use the very convenient java.net.URI class to implement a=20 robust access to resources. Don't you think so ? Cheers, --=20 Pierrick Brihaye, informaticien Service r=E9gional de l'Inventaire / DRAC Bretagne mailto:pie...@cu... / t=E9l : +33 (0)2 99 29 67 78 http://usenet-fr.news.eu.org/fr-chartes/rfc1855.html. L'avez-vous lu ? |