From: Joe W. <jo...@gm...> - 2010-01-17 22:14:13
|
Hi Leif-Jöran, >> Is there a reason why these 2 functions cannot take XMLDB URIs? If >> not, would it be possible to add the option? > > Joe, no, there is no reason. I just dicovered it and documented what the > actual arguments were when we did the documentation review for 1.4. > >> (Also, please note that the function documentation for xmldb:login() >> does not specify what kind of collection URIs are allowed.) > > OK. I must have been interupted with that one. Need to add some more tests > for all of these functions in addition to make them take the same COLLECTION > URIs. Ah, I see! I just tested and confirmed that xmldb:collection-available() does work when you use the XMLDB URI, e.g. xmldb:collection-available('xmldb:exist:///db/test') However, for xmldb:reindex(), I think it's more than a question of the function documentation. The function won't work if you use XMLDB URIs xmldb:login('xmldb:exist:///db/', 'admin', ''), xmldb:reindex('xmldb:exist:///db/test') This returns true() for the first expression and false() for the 2nd, while using '/db/test' returns true() for both. If this is confirmed, would it be possible to add the option to use XMLDB URIs with xmldb:reindex()? Thanks, Joe Joe |