I'm attempting to use the INPUT_QUERY option for xqsync to exclude certain 
documents from the sync. Starting from the simplest possible case and following 
the example from the xqsync documentation, here's my script:

java \
-cp xqsync.jar:xcc.jar:xstream.jar:xpp3.jar \
-Dfile.encoding=UTF-8 \
-DINPUT_CONNECTION_STRING=xcc://me:[email protected]:8028 \
-DINPUT_DIRECTORY_URI=/a/ab/abc \
-DINPUT_QUERY="for $i in doc() return ()" \
-DOUTPUT_CONNECTION_STRING=xcc://me:[email protected]:8035 \
com.marklogic.ps.xqsync.XQSync

In this example, I expected all documents to be excluded, since I'm always 
returning an empty sequence instead of a uri. Instead, all documents get 
synced. Any ideas?

Thanks,
Greg

Gregory Murray
Digital Library Application Developer
Princeton Theological Seminary

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to