From: Leif-Jöran O. <lj...@ex...> - 2011-10-13 13:57:47
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Den 2011-10-06 22:09, Adam Retter skrev: > You are correct in your understanding of the XQuery spec, and I could > easily make this change and probably should. But I do wonder how many > people rely on this existing bad behaviour. > > Its tricky because eXist-db has no notion of both 'XML Documents' and > 'Binary documents'. Perhaps we should start referring to Binary > documents as Binary resources. > > I am reluctant to fix this, because calling doc-available() and getting > true() for a URI that points to a binary resource makes perfect sense to > me. Unfortunately its not compliant with the specification, however the > specification has no consideration whatsoever of Binary > documents/resources because its the XML Query specification. > > We perhaps need an xmldb:doc-exists() function to replace this once we > bring fn:doc-available() inline with the specs. Well, we added util:binary-doc-available quite some time ago just to encompass this. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFOlu6/hcIn5aVXOPIRAttaAJ9W7aG5NJJD6csZmhFmUHrhoRIuBQCgiHiV SXsX8ZvelZ2Ealun5GRbLAc= =9OH/ -----END PGP SIGNATURE----- |