The / says to put things in document order, but these are all in separate "documents" so the relative order is undefined. You can either wrap them in a single root element so they are part of the same document with a defined relative order, or use the ! operator instead. //Mary
On Feb 18, 2015 7:02 AM, "Illes, Szabolcs" <[email protected]> wrote: Hi all, Could someone explain why the following xquery randomizes the sequence --- xquery version "1.0-ml"; ( <x><a>1</a></x>, <x><a>2</a></x>, <x><a>3</a></x>, <x><a>4</a></x>, <x><a>5</a></x>, <x><a>6</a></x> )/a/fn:string() — I was expecting 1,2,3,4,5,6 but getting random results. Is this something to do parallel execution of functions on a sequence ? ps: tried it in xbase and it gives 1,2,3,4,5,6 all the time. Thanks, Szabolcs ******************************************************************************** DISCLAIMER: This e-mail is confidential and should not be used by anyone who is not the original intended recipient. If you have received this e-mail in error please inform the sender and delete it from your mailbox or any other storage mechanism. Neither Macmillan Publishers Limited nor any of its agents accept liability for any statements made which are clearly the sender's own and not expressly made on behalf of Macmillan Publishers Limited or one of its agents. Please note that neither Macmillan Publishers Limited nor any of its agents accept any responsibility for viruses that may be contained in this e-mail or its attachments and it is your responsibility to scan the e-mail and attachments (if any). No contracts may be concluded on behalf of Macmillan Publishers Limited or its agents by means of e-mail communication. Macmillan Publishers Limited Registered in England and Wales with registered number 785998 Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS ********************************************************************************
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
