From: Wolfgang M. M. <wol...@us...> - 2004-09-12 16:09:56
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/xquery/functions/xmldb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7601/src/org/exist/xquery/functions/xmldb Modified Files: XMLDBGetChildCollections.java Log Message: xmldb:get-child-collections function throws an XPathException if the specified collection does not exist. Index: XMLDBGetChildCollections.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/xquery/functions/xmldb/XMLDBGetChildCollections.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** XMLDBGetChildCollections.java 12 Sep 2004 13:25:15 -0000 1.3 --- XMLDBGetChildCollections.java 12 Sep 2004 16:09:46 -0000 1.4 *************** *** 70,74 **** ValueSequence r = new ValueSequence(); String child; ! if (collection != null) { throw new XPathException(getASTNode(), "Collection " + collectionURI + " does not exist"); } --- 70,74 ---- ValueSequence r = new ValueSequence(); String child; ! if (collection == null) { throw new XPathException(getASTNode(), "Collection " + collectionURI + " does not exist"); } |