Hi All, Need some tricks on XPATH evaluation.
I need distinct id with minimum create-data-time value. Input <items> <item id="201100649049" create-date-time="2013-08-27T15:43:33"/> <item id="201100649049" create-date-time="2013-08-28T07:35:40"/> <item id="201100649040" create-date-time="2013-08-26T07:35:40"/> </items> Output (Removed row 2) <items> <item id="201100649049" create-date-time="2013-08-27T15:43:33"/> <item id="201100649040" create-date-time="2013-08-26T07:35:40"/> </items> Please let me know some XPATH expression to evaluate this Something like below working for distinct id but not working for minimum create-date-time:( $items/item[not(@id = preceding-sibling::item/@id) ] Thanks Abhishek =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
