I think maybe the following will work: fn:doc()[cts:contains(., dls:documents-query())]//value
-Danny From: [email protected] [mailto:[email protected]] On Behalf Of Stephane Toussaint Sent: Tuesday, January 25, 2011 3:18 AM To: General MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Hide managed document versions in query result Hi, I start playing a bit with the DLS library because I want to keep an history of version modification. The version management works well but now I'm facing a new problem. My queries aren't returning only the last version matching documents, but every single version matching the current query. Is there an unobtrusive way to hide version result (without explicitly use cst:search with dls:documents-query()) ? For exemple I want that : doc()//value return <value>TEST1</value> <value>TEST3</value> <value>TEST2</value> <value>TEST4</value> and not <value>TEST1</value> <value>TEST1</value> <value>TEST3</value> <value>TEST2</value> <value>TEST4</value> because document containing TEST1 is currently managed. Thanks Stéphane [cid:[email protected]] Stéphane TOUSSAINT XMS Technical Product Leader Tel : 01.61.08.50.30 Std : 01.61.08.50.20 Fax : 01.61.38.24.41
<<inline: image001.jpg>>
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
