You can restructure your content, adding an element that contains the attribute values. For example, if you have XML that looks like this:
<a foo="hello" bar="goodbye"/> You can add a new element so the resulting XML looks something like this: <a foo="hello" bar="goodbye"/> <a_field> <foo>hello</foo> <bar>goodbye</bar> </a_field> Then you can do something tricky like exclude a_field from word-query, and add a field that includes only a_field. There are a lot of variations on this theme, depending on what exactly you want to accomplish. -Danny From: [email protected] [mailto:[email protected]] On Behalf Of Abhishek53 S Sent: Tuesday, May 03, 2011 7:14 AM To: General MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Fied creation over attribute value Hi All I want to create the FIELD over the values present in the attribute of some element means over the attribute value but not over the element value. As per my observation it is not possible. Can someone suggest something? Thanks in advance Abhishek Srivastav Assistant Systems Engineer Tata Consultancy Services Plot B-1, Block EP & GP, Sector 5 Salt Lake Electronics Complex, Kolkata - 700 091,West Bengal India Cell:- +91-9883389968 Mailto: [email protected] Website: http://www.tcs.com<http://www.tcs.com/> ____________________________________________ Experience certainty. IT Services Business Solutions Outsourcing ____________________________________________ =====-----=====-----===== 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
