From wcandillon at gmail.com Sun Nov 1 09:39:32 2009 From: wcandillon at gmail.com (William Candillon) Date: Sun Nov 1 00:56:18 2009 Subject: [xquery-talk] First XQuery Meetup at Paris, La Cantine, December 3rd 2009 Message-ID: <43b5c44e0911010139ub155d17q4a1525b42df674da@mail.gmail.com> Hello XQuery lovers! A couple of weeks ago we started a wiki at http://xquery.pbworks.com in order to help XQuery enthusiasts from the same area to gather around a snack and a beer. The aim is to promote knowledge sharing and best practice amongst XQuery developers and business professionals around the world by organizing local meetups. Anyone can participate and/or organize a meetup, the wiki contains some guidelines, please feel free to contact me for more info. The first Paris XQuery Meetup will be held at la Cantine, December 3rd 2009. More details at http://xquery.pbworks.com/Paris-Meetup. This event is restricted to 20 people maximum, registration is done on the wiki. Please tell your friends about it! Best regards, William From dflorescu at mac.com Sun Nov 1 13:16:01 2009 From: dflorescu at mac.com (Daniela Florescu) Date: Mon Nov 2 06:15:34 2009 Subject: [xquery-talk] data camp and apps competition in SF Message-ID: Hello XQuery fans, I am just curious, are there any XQuery fans participating in this competition, and using it as an app development language ? http://datacamp.eventbrite.com/ If yes, it would be really interesting to know how XQuery performed given the task. Let us know ! Dana Other related links: http://datasf.org/ http://datasf.org/showcase/ http://www.sfexaminer.com/opinion/blogs/under-the-dome/Get-ready-for-an-apps-battle-63159797.html From andrew.eisenberg at us.ibm.com Mon Nov 2 18:14:07 2009 From: andrew.eisenberg at us.ibm.com (Andrew Eisenberg) Date: Mon Nov 2 15:19:14 2009 Subject: [xquery-talk] Implementations of XQuery Update Facility requested Message-ID: Back in August, the XML Query Working Group announced the availability of version 1.0.0 of the XQuery Update Facility Test Suite [1]. This test suite reflects the XQuery Update Facility 1.0 Candidate Recommendation [2] that was published on June 9. We are pleased to have received results from Saxonica. We'd like to encourage other implementators to submit their results to us, so that we can advance XQuery Update Facility to W3C Recommendation. -- Andrew [1] XQuery Update Facility Test Suite http://dev.w3.org/2007/xquery-update-10-test-suite/ [2] XQuery Update Facility 1.0 http://www.w3.org/TR/2009/CR-xquery-update-10-20090609/ -------------------- Andrew Eisenberg IBM 4 Technology Park Drive Westford, MA 01886 andrew.eisenberg@us.ibm.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20091102/6d65e159/attachment.htm From wcandillon at gmail.com Tue Nov 3 22:34:54 2009 From: wcandillon at gmail.com (William Candillon) Date: Tue Nov 3 13:40:16 2009 Subject: [xquery-talk] XQuery Implementation for PHP In-Reply-To: References: Message-ID: <43b5c44e0911031334v74871cc6k6218fe1c87899206@mail.gmail.com> Hello, The PHP bindings are featured in an IBM developerWorks article: http://www.ibm.com/developerworks/xml/library/x-zorba/index.html. Best regards, William On Fri, Oct 16, 2009 at 7:17 AM, Matthias Brantner wrote: > Hello, > the Zorba XQuery processor (zorba-xquery.org) provides language bindings for > PHP. > Matthias > On 16.10.2009, at 05:00, Wely Live wrote: > > Hello, > > I am new in XQuery. > Could somebody suggest is there any free implementation of XQuery for PHP? > Thanks. > > Regards, > Wely > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk > From vyacheslav.sedov at gmail.com Wed Nov 4 10:03:02 2009 From: vyacheslav.sedov at gmail.com (Vyacheslav Sedov) Date: Tue Nov 3 23:19:04 2009 Subject: [xquery-talk] XQuery Implementation for PHP In-Reply-To: <43b5c44e0911031334v74871cc6k6218fe1c87899206@mail.gmail.com> References: <43b5c44e0911031334v74871cc6k6218fe1c87899206@mail.gmail.com> Message-ID: <7ab7cbac0911032303y5a94e686pd466d0f01da1de80@mail.gmail.com> look like "soup from stone" (or nails or axe - depend from country) - php should leave our lives at all Stephen Leacock - "I detest life-insurance agents: they always argue that I shall some day die, which is not so." - http://www.brainyquote.com/quotes/authors/s/stephen_leacock.html 2009/11/4 William Candillon : > Hello, > > The PHP bindings are featured in an IBM developerWorks article: > http://www.ibm.com/developerworks/xml/library/x-zorba/index.html. > > Best regards, > > William > > On Fri, Oct 16, 2009 at 7:17 AM, Matthias Brantner > wrote: >> Hello, >> the Zorba XQuery processor (zorba-xquery.org) provides language bindings for >> PHP. >> Matthias >> On 16.10.2009, at 05:00, Wely Live wrote: >> >> Hello, >> >> I am new in XQuery. >> Could somebody suggest is there any free implementation of XQuery for PHP? >> Thanks. >> >> Regards, >> Wely >> _______________________________________________ >> talk@x-query.com >> http://x-query.com/mailman/listinfo/talk >> > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk > From ricardo.queiros at gmail.com Mon Nov 9 18:55:18 2009 From: ricardo.queiros at gmail.com (=?ISO-8859-1?Q?Ricardo_Queir=F3s?=) Date: Mon Nov 9 10:54:41 2009 Subject: [xquery-talk] XQuery count() Message-ID: <6cec8a990911091055p43639bdcga449b788d033fee5@mail.gmail.com> Hi, I need to count the total number of distinct collections in my db (eXist XML Database). How can i do this in a compact way using XQuery? Thanks! -- Ricardo Queir?s -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20091109/43319729/attachment.htm From gkholman at CraneSoftwrights.com Mon Nov 9 14:07:10 2009 From: gkholman at CraneSoftwrights.com (G. Ken Holman) Date: Mon Nov 9 11:07:17 2009 Subject: [xquery-talk] XQuery count() In-Reply-To: <6cec8a990911091055p43639bdcga449b788d033fee5@mail.gmail.co m> References: <6cec8a990911091055p43639bdcga449b788d033fee5@mail.gmail.com> Message-ID: <7.0.1.0.2.20091109140306.027fc118@wheresmymailserver.com> At 2009-11-09 18:55 +0000, Ricardo Queir?s wrote: >I need to count the total number of distinct >collections in my db (eXist XML Database). How are you defining "distinct" in your situation? There are many possible ways: string value, tree structure, tree structure of string values, etc. >How can i do this in a compact way using XQuery? Consider using deep-equal() ... if you have two root nodes, say in $a and $b, you can get true/false with deep-equal( $a, $b ) and it will check the tree structure and the node values in the tree structure and things like attributes will be checked regardless of their order (because attributes in XML documents are unordered). But be aware this is an "expensive" function, and could take up a lot of processing resources to accomplish the comparison. I hope this helps. . . . . . . . . . . . Ken -- Upcoming: hands-on XSLT, XQuery and XSL-FO Washington DC Nov 2009 Interested in other classes? http://www.CraneSoftwrights.com/q/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/q/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@CraneSoftwrights.com Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/q/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal From wolfgang at exist-db.org Mon Nov 9 20:09:39 2009 From: wolfgang at exist-db.org (Wolfgang Meier) Date: Mon Nov 9 11:09:20 2009 Subject: [xquery-talk] XQuery count() In-Reply-To: <6cec8a990911091055p43639bdcga449b788d033fee5@mail.gmail.com> References: <6cec8a990911091055p43639bdcga449b788d033fee5@mail.gmail.com> Message-ID: <19f274050911091109t46d138e2p99b5607cb5d14464@mail.gmail.com> Hi, > I need to count the total number of distinct collections in my db (eXist XML > Database). > How can i do this in a compact way using XQuery? This won't be possible without using extension functions. Different systems will have different ideas of what constitutes a "collection" (which can be queried with fn:collection). In eXist, you could use a recursive approach: import module namespace xdb="http://exist-db.org/xquery/xmldb"; declare function local:scan-collection($collection) { $collection, for $child in xdb:get-child-collections($collection) return local:scan-collection(concat($collection, "/", $child)) }; local:scan-collection("/db") The following solution is much shorter, but it might be slower: distinct-values( for $doc in collection("/db") return util:collection-name($doc) ) Wolfgang From ricardo.queiros at gmail.com Mon Nov 9 19:24:51 2009 From: ricardo.queiros at gmail.com (=?ISO-8859-1?Q?Ricardo_Queir=F3s?=) Date: Mon Nov 9 11:24:54 2009 Subject: [xquery-talk] XQuery count() In-Reply-To: <7.0.1.0.2.20091109140306.027fc118@wheresmymailserver.com> References: <6cec8a990911091055p43639bdcga449b788d033fee5@mail.gmail.com> <7.0.1.0.2.20091109140306.027fc118@wheresmymailserver.com> Message-ID: <6cec8a990911091124w6a4291aam7987c5c334492193@mail.gmail.com> Thanks to all. Both Wolfgang approaches work well. Regards! 2009/11/9 G. Ken Holman > At 2009-11-09 18:55 +0000, Ricardo Queir?s wrote: > >> I need to count the total number of distinct collections in my db (eXist >> XML Database). >> > > How are you defining "distinct" in your situation? There are many possible > ways: string value, tree structure, tree structure of string values, etc. > > > How can i do this in a compact way using XQuery? >> > > Consider using deep-equal() ... if you have two root nodes, say in $a and > $b, you can get true/false with deep-equal( $a, $b ) and it will check the > tree structure and the node values in the tree structure and things like > attributes will be checked regardless of their order (because attributes in > XML documents are unordered). > > But be aware this is an "expensive" function, and could take up a lot of > processing resources to accomplish the comparison. > > I hope this helps. > > . . . . . . . . . . . Ken > > > -- > Upcoming: hands-on XSLT, XQuery and XSL-FO Washington DC Nov 2009 > Interested in other classes? http://www.CraneSoftwrights.com/q/i/ > Crane Softwrights Ltd. http://www.CraneSoftwrights.com/q/ > Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video > Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 > Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 > G. Ken Holman mailto:gkholman@CraneSoftwrights.com > Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/q/bc > Legal business disclaimers: http://www.CraneSoftwrights.com/legal > > > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk > -- Ricardo Queir?s -------------- next part -------------- An HTML attachment was scrubbed... URL: http://x-query.com/pipermail/talk/attachments/20091109/48f7cd3a/attachment.htm From dflorescu at mac.com Tue Nov 10 17:04:13 2009 From: dflorescu at mac.com (daniela florescu) Date: Tue Nov 10 17:11:06 2009 Subject: [xquery-talk] XQuery in Web 2.0 Expo in NY Message-ID: <23135395-D952-4C78-BD8E-29978DAE8EEE@mac.com> Dear all, there is a BOF session organized in the Web 2.0 Expo in New York next week about the role of XQuery in the architecture for new Web .20 applications. If you are interested, please join. Information bellow: Nov 16-19 at the Javits center for the Web 2.0 expo and conference : There is an XML BOF (Birds of a Feather) at the Westin Times Square (270 West 43rd Street) on Tuesday evening at 8pm in room Nederlander - see http://www.web2expo.com/webexny2009/public/schedule/stype/BoF http://www.web2expo.com/webexny2009/public/schedule/detail/11318 There is a free registration for this Web 2.0 event - see: http://www.web2expo.com/webexny2009/public/content/whats-free - EXPOPASS Best regards Dana From gkholman at CraneSoftwrights.com Thu Nov 19 10:05:37 2009 From: gkholman at CraneSoftwrights.com (G. Ken Holman) Date: Thu Nov 19 08:10:25 2009 Subject: [xquery-talk] [Announce] Poll for hands-on XML training offerings in Europe Q1'2010 (XQuery Talk) Message-ID: <7.0.1.0.2.20091119100528.026be3c0@CraneSoftwrights.com> Please ignore the following if you have no interest in XML-related training. In Q1'2010 I will be in Europe a couple of times for some standards meetings (OASIS and ISO) and conferences ( http://www.XMLPrague.cz and PEPPOL) and I like to take advantage of my presence there by offering Crane's hands-on training classes in the week before or after each of the events, open to public subscription. I'll be in Copenhagen in February and in Prague and Stockholm in March. But it is a gamble to decide on which training class to offer and find no-one is interested in that particular topic, because of hotel and event obligations that need to be paid in advance or reserved with the risk of forfeit. We realize not many people in these economic times have money for training, so we are now trying to target our offerings specifically where we learn there is demand and availability of students. Last year's http://www.XMLPrague.cz conference was great and we did our training adjacent to the conference and our students were conference attendees. The venue we have chosen again in Prague next year has room for only 6 students (a large 14th century hotel room), so if XML training at this time of year and in conjunction with the conference is of interest to you, it would be important to sign up your interest soon. To address this urgency to start making plans, I am polling the various XML lists for any interest in training in these cities early next year. If you are interested in hands-on training on any of XSLT, XQuery, XSL-FO, the Universal Business Language or code lists in XML, and you would be interested in attending, please let us know and we will figure out what we can do. To see the proposed dates, please visit: http://www.CraneSoftwrights.com/forms/interest.php (the page has links to syllabi) On the form, please indicate all of the offered dates that you would be interested in, and we'll make a decision based on the response level we get for each class and date. Thanks! Please direct any questions to me off-list. . . . . . . . . . Ken p.s. it hasn't been decided but I might be in Perth Australia in January or February, so you won't see it on the form, but if you are in that area, please let me know in a mail message if you are interested in training on any of our subjects and we'll see about setting up a publicly-subscribed class. cc: XML-Dev, XSL List, XQuery Talk, XML-Doc, UBL Dev, CLR Dev, Antenna House list, RenderX list, MarkLogic list -- Vote for your XML training: http://www.CraneSoftwrights.com/q/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/q/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@CraneSoftwrights.com Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/q/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal