> As there doesn't seem to be a xdmp:directory-exists() function (could
> fn:exists() be used?), what's the "correct" way to avoid
> exceptions been thrown? I'm currently using try/catch.
Using try-catch is not bad by definition, though it is just slower in most
programming languages. Try profiling it.
Yes, you could use exists(), try the following:
exists(xdmp:document-properties('/')/prop:properties/prop:directory)
Kind regards,
Geert
Drs. G.P.H. Josten
Consultant
http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
bericht kunnen geen rechten worden ontleend.
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general