[MarkLogic Dev General] Identify the uris which does not have particular element.

2014-09-10 Thread priya dharshni
Hi , I want to identify the uris which does not have the particular element.Say, i want to get uris which does not have id' element. xml in db : employee nametest/name id123/id /employee cts:uris('', (),

Re: [MarkLogic Dev General] Identify the uris which does not have particular element.

2014-09-10 Thread David Ennis
HI. This is the general sample people see for which you can build on: cts:element-query(xs:QName('id'),cts:and-query( () )) This does into take into count position within the structure - just if the element exists or not . An earlier thread with all of the history and example :

Re: [MarkLogic Dev General] Identify the uris which does not have particular element.

2014-09-10 Thread Abhinav.Mishra3
Hi Priya, You can use this query,, cts:uris(,(),cts:not-query(cts:element-query(xs:QName('id'),cts:and-query(() Thanks, Abhinav From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of priya dharshni Sent: Wednesday, September 10, 2014

Re: [MarkLogic Dev General] Identify the uris which does not have particular element.

2014-09-10 Thread Thoppil, Sainath A
Hello, Please remove me from this mailing list. I am just starting to learn Marklogic. These emails go way above my head, and currently, they are flooding my inbox. At this time, they don’t do much good. Thanks. kpmg Sainath Thoppil Senior Associate | Advisory | Credit Risk 303

Re: [MarkLogic Dev General] Why does adding a range to a path query make it it significantly slower?

2014-09-10 Thread Christopher Hamlin
/publication looks like an xpath. You're looking for root elements of 'publication'? If you are doing /publication[1 to 3] you are applying a position predicate (first or second or third) to all the publication nodes. Try (/publication)[1 to 3] and you'll be just selecting the first 3 from the

Re: [MarkLogic Dev General] Why does adding a range to a path query make it it significantly slower?

2014-09-10 Thread Rachel Wilson
Bloomin' brackets again! Gets me every time :) Thanks for your lightning fast help, as ever. -Original Message- From: Christopher Hamlin cbham...@gmail.com Reply-To: MarkLogic Developer Discussion general@developer.marklogic.com Date: Wednesday, 10 September 2014 16:39 To: MarkLogic

[MarkLogic Dev General] How to export XML to ASCII text with ISO encodings?

2014-09-10 Thread Tim
Hi Folks, I am importing content from an ASCII text file into an XML record to manage updates in MarkLogic, but upon request I need to export an updated ASCII text file. The ASCII text file can include a variety of ISO encodings and upon export it is required that some ASCII characters

Re: [MarkLogic Dev General] How to export XML to ASCII text with ISO encodings?

2014-09-10 Thread Tim
FYI – I know that I ca use the full repair option upon import – the real challenge is adding the character encodings upon export. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Tim Sent: Wednesday, September 10, 2014 12:28 PM To:

Re: [MarkLogic Dev General] How to export XML to ASCII text with ISO encodings?

2014-09-10 Thread Joe Bryan
Hi Tim, There's a serialization option to control which entities are output: output-sgml-character-entities (see http://docs.marklogic.com/xdmp:quote). xdmp:quote(xdmp:unquote(xuuml;/x)) = xü/x xdmp:quote(xdmp:unquote(xuuml;/x), options xmlns=xdmp:quote

Re: [MarkLogic Dev General] How to export XML to ASCII text with ISO encodings?

2014-09-10 Thread Danny Sokolsky
These are also available via the xdmp:output option in the XQuery prolog: http://docs.marklogic.com/guide/xquery/langoverview#id_71572 Note that you will not see the effect of these when running in Query Console because the output options only affect the outer query, and underneath the covers

Re: [MarkLogic Dev General] How to export XML to ASCII text with ISO encodings?

2014-09-10 Thread Christopher Hamlin
Hi Tim, Maybe simplistic, but you could do it with a map:map and analyze-string. Search for entities on the way in and look up the names. Search for unicode char ranges that you want to convert on the way out, and look them up in the inversion of the map:map. Something like xquery version