Binary resources should not be returned by fn:doc(). If the user queries the returned item, he will run into NPE and other exceptions. It is thus better to throw an XPathException immediately and point the user to the util:binary-resource function, which should be safer.
Binary resources should not be returned by fn:doc(). If the user queries the returned item, he will run
into NPE and other exceptions. It is thus better to throw an XPathException immediately and point the user
to the util:binary-resource function, which should be safer.

svn path=/trunk/eXist-1.0/; revision=3510

MjAbuz/exist,jensopetersen/exist,zwobit/exist,kohsah/exist,zwobit/exist,MjAbuz/exist,wolfgangmm/exist,shabanovd/exist,lcahlander/exist,dizzzz/exist,jessealama/exist,dizzzz/exist,MjAbuz/exist,olvidalo/exist,patczar/exist,shabanovd/exist,eXist-db/exist,RemiKoutcherawy/exist,hungerburg/exist,jensopetersen/exist,hungerburg/exist,joewiz/exist,olvidalo/exist,hungerburg/exist,windauer/exist,kohsah/exist,kohsah/exist,ljo/exist,ljo/exist,windauer/exist,lcahlander/exist,RemiKoutcherawy/exist,zwobit/exist,lcahlander/exist,dizzzz/exist,RemiKoutcherawy/exist,opax/exist,ambs/exist,RemiKoutcherawy/exist,MjAbuz/exist,kohsah/exist,opax/exist,joewiz/exist,patczar/exist,eXist-db/exist,dizzzz/exist,adamretter/exist,jensopetersen/exist,wolfgangmm/exist,zwobit/exist,wshager/exist,opax/exist,ljo/exist,jessealama/exist,ambs/exist,hungerburg/exist,ambs/exist,jessealama/exist,kohsah/exist,RemiKoutcherawy/exist,lcahlander/exist,shabanovd/exist,olvidalo/exist,shabanovd/exist,windauer/exist,adamretter/exist,wshager/exist,jensopetersen/exist,opax/exist,jensopetersen/exist,zwobit/exist,patczar/exist,jessealama/exist,joewiz/exist,wolfgangmm/exist,wshager/exist,lcahlander/exist,RemiKoutcherawy/exist,adamretter/exist,jessealama/exist,windauer/exist,zwobit/exist,wolfgangmm/exist,kohsah/exist,windauer/exist,ljo/exist,eXist-db/exist,shabanovd/exist,adamretter/exist,ambs/exist,eXist-db/exist,lcahlander/exist,ljo/exist,hungerburg/exist,eXist-db/exist,dizzzz/exist,wshager/exist,opax/exist,patczar/exist,olvidalo/exist,ambs/exist,adamretter/exist,patczar/exist,joewiz/exist,jensopetersen/exist,jessealama/exist,wshager/exist,dizzzz/exist,wolfgangmm/exist,wolfgangmm/exist,ljo/exist,adamretter/exist,MjAbuz/exist,ambs/exist,olvidalo/exist,windauer/exist,joewiz/exist,joewiz/exist,patczar/exist,wshager/exist,MjAbuz/exist,eXist-db/exist,shabanovd/exist