From voldrani at gmail.com Mon Apr 2 15:26:35 2012 From: voldrani at gmail.com (Chris Maloney) Date: Mon, 2 Apr 2012 18:26:35 -0400 Subject: [xquery-talk] copy-namespaces declaration - supported in Saxon? What about Zorba? Message-ID: Hi, I have this document: ? ? ? ? which I'm processing with this XQuery: xquery version "1.0"; declare copy-namespaces no-preserve, no-inherit; doc("AppConfig.xml")//AppController/fleegle and I'm getting this as output from Saxon PE 9.3: But I want to get rid of the unused namespace nodes, and I thought "no-preserve" should do it. I found an email message from Michael Kay in Apr. 7, 2005, on the saxon help list, in which he wrote: The basic functionality of copying an element without copying its namespaces is there in the product (and used in XSLT) but it's not yet wired up to the syntax of the query prolog. Sorry. Is it still not implemented, or am I doing something wrong? Can anybody tell me whether or not this is supported in Zorba? Thanks! From mike at saxonica.com Mon Apr 2 15:42:38 2012 From: mike at saxonica.com (Michael Kay) Date: Mon, 02 Apr 2012 23:42:38 +0100 Subject: [xquery-talk] copy-namespaces declaration - supported in Saxon? What about Zorba? In-Reply-To: References: Message-ID: <4F7A2B5E.8020205@saxonica.com> The no-preserve and no-inherit options affect the namespaces acquired by a newly constructed element node. But your query isn't constructing a new element node, it is selecting an existing one. When you select an existing node, you get that node as is, and the node you have selected has these two namespaces in scope. To get rid of them, you will have to construct a new element that is the same as the original except for its namespaces. Michael Kay Saxonica On 02/04/2012 23:26, Chris Maloney wrote: > Hi, > > I have this document: > > xmlns:qs="http://ncbi.gov/portal/paf/querystring"> > > > > > > which I'm processing with this XQuery: > > xquery version "1.0"; > declare copy-namespaces no-preserve, no-inherit; > doc("AppConfig.xml")//AppController/fleegle > > and I'm getting this as output from Saxon PE 9.3: > > > xmlns:qs="http://ncbi.gov/portal/paf/querystring"/> > > But I want to get rid of the unused namespace nodes, and I thought > "no-preserve" should do it. > > I found an email message from Michael Kay in Apr. 7, 2005, on the > saxon help list, in which he wrote: > > The basic functionality of copying an element without copying its > namespaces > is there in the product (and used in XSLT) but it's not yet wired > up to the syntax > of the query prolog. Sorry. > > Is it still not implemented, or am I doing something wrong? > > Can anybody tell me whether or not this is supported in Zorba? > > Thanks! > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk From voldrani at gmail.com Mon Apr 2 18:55:07 2012 From: voldrani at gmail.com (Chris Maloney) Date: Mon, 2 Apr 2012 21:55:07 -0400 Subject: [xquery-talk] copy-namespaces declaration - supported in Saxon? What about Zorba? In-Reply-To: <4F7A2B5E.8020205@saxonica.com> References: <4F7A2B5E.8020205@saxonica.com> Message-ID: Brilliant, it even makes sense! Here's what I came up with, which works. xquery version "1.0"; declare copy-namespaces no-preserve, no-inherit; for $f in doc("AppConfig.xml")//AppController/fleegle return element { name($f) } { $f/(node() | @*) } Thanks! On Mon, Apr 2, 2012 at 6:42 PM, Michael Kay wrote: > The no-preserve and no-inherit options affect the namespaces acquired by a > newly constructed element node. But your query isn't constructing a new > element node, it is selecting an existing one. When you select an existing > node, you get that node as is, and the node you have selected has these two > namespaces in scope. To get rid of them, you will have to construct a new > element that is the same as the original except for its namespaces. > > Michael Kay > Saxonica > > > On 02/04/2012 23:26, Chris Maloney wrote: >> >> Hi, >> >> I have this document: >> >> ? ? > xmlns:qs="http://ncbi.gov/portal/paf/querystring"> >> ? ? ? ? >> ? ? ? ? ? >> ? ? ? ? >> ? ? >> >> which I'm processing with this XQuery: >> >> ? ? xquery version "1.0"; >> ? ? declare copy-namespaces no-preserve, no-inherit; >> ? ? doc("AppConfig.xml")//AppController/fleegle >> >> and I'm getting this as output from Saxon PE 9.3: >> >> ? ? >> ? ? > ? ? ? ? ? ? ?xmlns:qs="http://ncbi.gov/portal/paf/querystring"/> >> >> But I want to get rid of the unused namespace nodes, and I thought >> "no-preserve" should do it. >> >> I found an email message from Michael Kay in Apr. 7, 2005, on the >> saxon help list, in which he wrote: >> >> ? ? The basic functionality of copying an element without copying its >> namespaces >> ? ? is there in the product (and used in XSLT) but it's not yet wired >> up to the syntax >> ? ? of the query prolog. Sorry. >> >> Is it still not implemented, or am I doing something wrong? >> >> Can anybody tell me whether or not this is supported in Zorba? >> >> Thanks! >> >> _______________________________________________ >> talk at x-query.com >> http://x-query.com/mailman/listinfo/talk > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk From dennis.knochenwefel at 28msec.com Tue Apr 3 02:39:58 2012 From: dennis.knochenwefel at 28msec.com (Dennis Knochenwefel) Date: Tue, 03 Apr 2012 11:39:58 +0200 Subject: [xquery-talk] copy-namespaces declaration - supported in Saxon? What about Zorba? In-Reply-To: References: Message-ID: <4F7AC56E.3020101@28msec.com> > Hi, > > I have this document: > > xmlns:qs="http://ncbi.gov/portal/paf/querystring"> > > > > > > which I'm processing with this XQuery: > > xquery version "1.0"; > declare copy-namespaces no-preserve, no-inherit; > doc("AppConfig.xml")//AppController/fleegle > > and I'm getting this as output from Saxon PE 9.3: > > > xmlns:qs="http://ncbi.gov/portal/paf/querystring"/> > > But I want to get rid of the unused namespace nodes, and I thought > "no-preserve" should do it. > > I found an email message from Michael Kay in Apr. 7, 2005, on the > saxon help list, in which he wrote: > > The basic functionality of copying an element without copying its > namespaces > is there in the product (and used in XSLT) but it's not yet wired > up to the syntax > of the query prolog. Sorry. > > Is it still not implemented, or am I doing something wrong? > > Can anybody tell me whether or not this is supported in Zorba? Indeed it is supported in zorba as well: http://www.zorba-xquery.com/html/demo#ISPAkCCZNTANJwiOYJEigxqlkVw= regards, Dennis -- Dennis Knochenwefel Software Architect 28msec Inc. http://www.28msec.com http://twitter.com/28msec From voldrani at gmail.com Tue Apr 3 06:59:58 2012 From: voldrani at gmail.com (Chris Maloney) Date: Tue, 3 Apr 2012 09:59:58 -0400 Subject: [xquery-talk] copy-namespaces declaration - supported in Saxon? What about Zorba? In-Reply-To: <4F7AC56E.3020101@28msec.com> References: <4F7AC56E.3020101@28msec.com> Message-ID: Very nice! Thanks again, both of you. On Tue, Apr 3, 2012 at 5:39 AM, Dennis Knochenwefel < dennis.knochenwefel at 28msec.com> wrote: > > Hi, >> >> I have this document: >> >> > xmlns:qs="http://ncbi.gov/**portal/paf/querystring >> "> >> >> >> >> >> >> which I'm processing with this XQuery: >> >> xquery version "1.0"; >> declare copy-namespaces no-preserve, no-inherit; >> doc("AppConfig.xml")//**AppController/fleegle >> >> and I'm getting this as output from Saxon PE 9.3: >> >> >> > xmlns:qs="http://ncbi.gov/**portal/paf/querystring >> "/> >> >> But I want to get rid of the unused namespace nodes, and I thought >> "no-preserve" should do it. >> >> I found an email message from Michael Kay in Apr. 7, 2005, on the >> saxon help list, in which he wrote: >> >> The basic functionality of copying an element without copying its >> namespaces >> is there in the product (and used in XSLT) but it's not yet wired >> up to the syntax >> of the query prolog. Sorry. >> >> Is it still not implemented, or am I doing something wrong? >> >> Can anybody tell me whether or not this is supported in Zorba? >> > > Indeed it is supported in zorba as well: http://www.zorba-xquery.com/** > html/demo#**ISPAkCCZNTANJwiOYJEigxqlkVw= > > regards, > > Dennis > > > -- > Dennis Knochenwefel > Software Architect > > 28msec Inc. > http://www.28msec.com > http://twitter.com/28msec > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From geert.josten at dayon.nl Thu Apr 5 22:41:45 2012 From: geert.josten at dayon.nl (Geert Josten) Date: Fri, 6 Apr 2012 07:41:45 +0200 Subject: [xquery-talk] Non-conformant XML-parsers.. Message-ID: <8ebcc3e954d372395071159d5b831c2c@mail.gmail.com> Hi, I noticed this question on stackoverflow: http://stackoverflow.com/questions/10027737/xquery-should-give-me-proper-c losed-tags-for-empty-node-sql-server-2008 Apparently SQLServer has trouble processing the short notation of empty elements. It got me thinking though, the new serialization spec gives quite some strength for tweaking the output, but not influence tiny things like notation of empty elements. Maybe this isn't the most appropriate list asking this, but I'm asking here anyhow: hasn't it been given thought to add some flags that allow end users to tweak the output more extensively? Like a short-empty-elements="no", things like that? I also used to work with a language that allowed so-called productions from in-memory trees. (It was a language much alike XSLT, but older.) It allowed writing production rules for each element, to control how things should be serialized. Not sure how that would help here, but thought I'd mention it anyway.. Cheers, Geert M.Sc. G.P.H. (Geert) Josten Senior Developer Dayon B.V. Delftechpark 37b 2628 XJ Delft The Netherlands T +31 (0)88 26 82 570 geert.josten at dayon.nl www.dayon.nl De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. From liam at w3.org Thu Apr 5 23:00:22 2012 From: liam at w3.org (Liam R E Quin) Date: Fri, 06 Apr 2012 02:00:22 -0400 Subject: [xquery-talk] Non-conformant XML-parsers.. In-Reply-To: <8ebcc3e954d372395071159d5b831c2c@mail.gmail.com> References: <8ebcc3e954d372395071159d5b831c2c@mail.gmail.com> Message-ID: <1333692022.24064.31.camel@localhost.localdomain> On Fri, 2012-04-06 at 07:41 +0200, Geert Josten wrote: > the new serialization spec gives > quite some strength for tweaking the output, but not influence tiny things > like notation of empty elements. Feel free to add a feature request on Bugzilla (see the Status section of the specification for a link to instructions - I'm saying this so people can find out how to do it for all the specs...) Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ From mike at saxonica.com Fri Apr 6 02:38:59 2012 From: mike at saxonica.com (Michael Kay) Date: Fri, 06 Apr 2012 10:38:59 +0100 Subject: [xquery-talk] Non-conformant XML-parsers.. In-Reply-To: <8ebcc3e954d372395071159d5b831c2c@mail.gmail.com> References: <8ebcc3e954d372395071159d5b831c2c@mail.gmail.com> Message-ID: <4F7EB9B3.1080604@saxonica.com> Because the spec allows implementation-defined serialization attributes, I'm inclined to the view that if there's a user demand, implementors will add the feature, and if enough implementors add it, it becomes worth standardizing. Some of the existing options, such as omit-content-type and suppress-indentation, got into the standard having first appeared as Saxon extensions. There's a steady trickle of requests to provide serialization options to control things that shouldn't make any difference: empty tags, choice of quotes for attribute delimiters, use of entities and character references, details of indentation, etc etc. It's hard to know where to draw the line. The existence of non-conformant XML parsers isn't a use case that is likely to carry much weight with the W3C WGs, unless perhaps it's a non-conformance that is very widespread and exists for a good reason, such as conflicts between different specifications. Michael Kay Saxonica On 06/04/2012 06:41, Geert Josten wrote: > Hi, > > I noticed this question on stackoverflow: > http://stackoverflow.com/questions/10027737/xquery-should-give-me-proper-c > losed-tags-for-empty-node-sql-server-2008 > > Apparently SQLServer has trouble processing the short notation of empty > elements. It got me thinking though, the new serialization spec gives > quite some strength for tweaking the output, but not influence tiny things > like notation of empty elements. Maybe this isn't the most appropriate > list asking this, but I'm asking here anyhow: hasn't it been given thought > to add some flags that allow end users to tweak the output more > extensively? Like a short-empty-elements="no", things like that? > > I also used to work with a language that allowed so-called productions > from in-memory trees. (It was a language much alike XSLT, but older.) It > allowed writing production rules for each element, to control how things > should be serialized. Not sure how that would help here, but thought I'd > mention it anyway.. > > Cheers, > Geert > > > M.Sc. G.P.H. (Geert) Josten > Senior Developer > > > Dayon B.V. > Delftechpark 37b > 2628 XJ Delft > The Netherlands > > T +31 (0)88 26 82 570 > > geert.josten at dayon.nl > www.dayon.nl > > De informatie - verzonden in of met dit e-mailbericht - is afkomstig van > Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit > bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan > dit bericht kunnen geen rechten worden ontleend. > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk > From gkholman at CraneSoftwrights.com Fri Apr 13 12:21:28 2012 From: gkholman at CraneSoftwrights.com (G. Ken Holman) Date: Fri, 13 Apr 2012 15:21:28 -0400 Subject: [xquery-talk] XQuery quirk of the day In-Reply-To: <220256FDE771B74FB662165BC562CF592267FBBF@CH1PRD0802MB107.n amprd08.prod.outlook.com> References: <220256FDE771B74FB662165BC562CF592267FBBF@CH1PRD0802MB107.namprd08.prod.outlook.com> Message-ID: <7.0.1.0.2.20120413151959.023ba800@wheresmymailserver.com> At 2012-04-13 19:09 +0000, David Lee wrote: >Content-Language: en-US >Content-Type: multipart/alternative; > >boundary="_000_220256FDE771B74FB662165BC562CF592267FBBFCH1PRD0802MB107_" > >XQuery constantly surprises me ! >Today I was looking for a more concise way of testing if a string is >empty or blank. >The best I came up with is > > empty($s) or $s eq '' But empty($s) doesn't return true for an empty string, it returns true for an empty sequence. If $s is defined as an empty string you'll get false(): T:\ftemp>type lee.xq let $s := "" return empty($s) T:\ftemp>xquery lee.xq false T:\ftemp> If you know $s is a string then you can use not($s) to get true() for the empty string (and for the empty sequence) because the effective Boolean value of an empty string (and an empty sequence) is false(). >or > string-length($s) eq 0 > >But along the way discovered this > if( () eq () ) then 1 else 2 > if( () = () ) then 1 else 2 > >Returns 2 !!! > >Of course in hindsight and fine-print its correct, but entirely >non-obvious to my eye ... Just remember that the result is initialized as false() and comparisons continue until one of the two operands is the empty set or the comparison is true ... which happens right away because both operands are the empty set. I hope this helps. . . . . . . . . Ken -- Public XSLT, XSL-FO, UBL and code list classes in Europe -- May 2012 Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/q/ G. Ken Holman mailto:gkholman at CraneSoftwrights.com Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal From dlee at calldei.com Fri Apr 13 12:37:19 2012 From: dlee at calldei.com (David Lee) Date: Fri, 13 Apr 2012 19:37:19 +0000 Subject: [xquery-talk] XQuery quirk of the day In-Reply-To: <7.0.1.0.2.20120413151959.023ba800@wheresmymailserver.com> References: <220256FDE771B74FB662165BC562CF592267FBBF@CH1PRD0802MB107.namprd08.prod.outlook.com> <7.0.1.0.2.20120413151959.023ba800@wheresmymailserver.com> Message-ID: <220256FDE771B74FB662165BC562CF592267FC31@CH1PRD0802MB107.namprd08.prod.outlook.com> > > > > empty($s) or $s eq '' > > But empty($s) doesn't return true for an empty string, it returns > true for an empty sequence. If $s is defined as an empty string > you'll get false(): > Correct thats why I used empty($s) or $s eq '' Or in context if(empty($s) or $s eq '') then 'its a blank string' else 'its not' But thanks for the tip on fn:not() !!! I gotta try that. ---------------------------------------- David A. Lee dlee at calldei.com http://www.xmlsh.org From gkholman at CraneSoftwrights.com Fri Apr 13 12:41:43 2012 From: gkholman at CraneSoftwrights.com (G. Ken Holman) Date: Fri, 13 Apr 2012 15:41:43 -0400 Subject: [xquery-talk] XQuery quirk of the day In-Reply-To: <220256FDE771B74FB662165BC562CF592267FC31@CH1PRD0802MB107.n amprd08.prod.outlook.com> References: <220256FDE771B74FB662165BC562CF592267FBBF@CH1PRD0802MB107.namprd08.prod.outlook.com> <7.0.1.0.2.20120413151959.023ba800@wheresmymailserver.com> <220256FDE771B74FB662165BC562CF592267FC31@CH1PRD0802MB107.namprd08.prod.outlook.com> Message-ID: <7.0.1.0.2.20120413153923.024597e8@wheresmymailserver.com> At 2012-04-13 19:37 +0000, David Lee wrote: > > > > > > empty($s) or $s eq '' > > > > But empty($s) doesn't return true for an empty string, it returns > > true for an empty sequence. If $s is defined as an empty string > > you'll get false(): > > > >Correct thats why I used > empty($s) or $s eq '' Ah, forgive me David, I thought I was reading the English language "or" separating two expressions as your choices and not the Boolean "or" of a single expression. My mistake, as it is obvious now that you point it out. >Or in context > > if(empty($s) or $s eq '') then 'its a blank string' else 'its not' > >But thanks for the tip on fn:not() !!! I gotta try that. Yes, you'll find that it will return true for both cases of empty set and empty string because the argument to not() is first converted to its effective Boolean value. Good luck! . . . . . . . . . Ken -- Public XSLT, XSL-FO, UBL and code list classes in Europe -- May 2012 Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/q/ G. Ken Holman mailto:gkholman at CraneSoftwrights.com Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal From dlee at calldei.com Fri Apr 13 12:49:07 2012 From: dlee at calldei.com (David Lee) Date: Fri, 13 Apr 2012 19:49:07 +0000 Subject: [xquery-talk] XQuery quirk of the day In-Reply-To: <46AEF222-9608-4458-829E-78C55317863A@oracle.com> References: <220256FDE771B74FB662165BC562CF592267FBBF@CH1PRD0802MB107.namprd08.prod.outlook.com> <46AEF222-9608-4458-829E-78C55317863A@oracle.com> Message-ID: <220256FDE771B74FB662165BC562CF592267FC67@CH1PRD0802MB107.namprd08.prod.outlook.com> From: Josh Spiegel [mailto:josh.spiegel at oracle.com] Sent: Friday, April 13, 2012 3:45 PM To: David Lee Cc: xquery-discuss Subject: Re: [xquery-talk] XQuery quirk of the day If you are looking for concise... ?if ("") then "yep" else "nope" ? ==> ? nope ?if (()) then "yep" else "nope" ? ==> ? nope ?if ("foo") then "yep" else "nope" ?==> yep ------- Thanks, I just stumbled on this while playing with the not() suggestion. I was thinking "if fn:not() works why not no not just if ... " ahh english vs code : Voila ! thanks all . My code is now much cleaner (but perhaps less readable) ... oh well ;) ---------------------------------------- David A. Lee dlee at calldei.com http://www.xmlsh.org From jakub at maly.cz Fri Apr 13 12:58:21 2012 From: jakub at maly.cz (=?iso-8859-2?Q?Jakub_Mal=FD?=) Date: Fri, 13 Apr 2012 21:58:21 +0200 Subject: [xquery-talk] XQuery quirk of the day In-Reply-To: <220256FDE771B74FB662165BC562CF592267FC67@CH1PRD0802MB107.namprd08.prod.outlook.com> References: <220256FDE771B74FB662165BC562CF592267FBBF@CH1PRD0802MB107.namprd08.prod.outlook.com> <46AEF222-9608-4458-829E-78C55317863A@oracle.com> <220256FDE771B74FB662165BC562CF592267FC67@CH1PRD0802MB107.namprd08.prod.outlook.com> Message-ID: <012401cd19af$c7bd1000$57373000$@maly.cz> Yes, comparison of empty sequences and flattening nested sequences are things I don't like about XPath. Jakub. > -----Original Message----- > From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On > Behalf Of David Lee > Sent: Friday, April 13, 2012 9:49 PM > To: Josh Spiegel > Cc: xquery-discuss > Subject: Re: [xquery-talk] XQuery quirk of the day > > > > From: Josh Spiegel [mailto:josh.spiegel at oracle.com] > Sent: Friday, April 13, 2012 3:45 PM > To: David Lee > Cc: xquery-discuss > Subject: Re: [xquery-talk] XQuery quirk of the day > > If you are looking for concise... > > ?if ("") then "yep" else "nope" ? ==> ? nope > ?if (()) then "yep" else "nope" ? ==> ? nope > ?if ("foo") then "yep" else "nope" ?==> yep > > ------- > > Thanks, I just stumbled on this while playing with the not() suggestion. > I was thinking "if fn:not() works why not no not just if ... " ahh english vs > code : > > Voila ! thanks all . My code is now much cleaner (but perhaps less readable) > ... oh well ;) > > ---------------------------------------- > David A. Lee > dlee at calldei.com > http://www.xmlsh.org > > > > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk From davidc at nag.co.uk Fri Apr 13 12:58:46 2012 From: davidc at nag.co.uk (David Carlisle) Date: Fri, 13 Apr 2012 20:58:46 +0100 Subject: [xquery-talk] XQuery quirk of the day In-Reply-To: <220256FDE771B74FB662165BC562CF592267FBBF@CH1PRD0802MB107.namprd08.prod.outlook.com> References: <220256FDE771B74FB662165BC562CF592267FBBF@CH1PRD0802MB107.namprd08.prod.outlook.com> Message-ID: <4F888576.40708@nag.co.uk> On 13/04/2012 20:09, David Lee wrote: > XQuery constantly surprises me ! > > Today I was looking for a more concise way of testing if a string is > empty or blank. > not sure what you mean by blank, I thought you meant white space, but looking at your code fragment, I think you meant empty sequence boolean(string($s)) is false if $s is () or "" and true for any other string value. David From andrew.j.welch at gmail.com Sat Apr 14 01:12:28 2012 From: andrew.j.welch at gmail.com (Andrew Welch) Date: Sat, 14 Apr 2012 09:12:28 +0100 Subject: [xquery-talk] XQuery quirk of the day In-Reply-To: <220256FDE771B74FB662165BC562CF592267FBBF@CH1PRD0802MB107.namprd08.prod.outlook.com> References: <220256FDE771B74FB662165BC562CF592267FBBF@CH1PRD0802MB107.namprd08.prod.outlook.com> Message-ID: On 13 April 2012 20:09, David Lee wrote: > XQuery constantly surprises me ! > > Today I was looking for a more concise way of testing if a string is empty > or blank. normalize-space($str) will return true only if the string contains some none white space characters, so empty string '' empty sequence () and whitespace only ' ' will all return false. -- Andrew Welch http://andrewjwelch.com From james.fuller.2007 at gmail.com Sat Apr 14 04:05:02 2012 From: james.fuller.2007 at gmail.com (James Fuller) Date: Sat, 14 Apr 2012 13:05:02 +0200 Subject: [xquery-talk] [ANN] depx - simple app package management for XML tech Message-ID: depx is a package manager that I made for selfish personal reasons, its got a lot of rough edges and may not do what most ppl expect of a package manager, but open to any suggestions. What is depx ? ---------------------- Its a package manager that uses github as repository to distribute packages ... its designed as 'dependency management via convention' versus black magic. What you can do with depx? ----------------------------------------- browse http://depx.org to discover packages download depx client (https://github.com/xquery/depx/downloads) to install/remove packages to your applications add a package to the repo by forking https://github.com/xquery/depx ... more information on how to do this at github repo Please feel free to criticise, comment, and make suggestions here https://github.com/xquery/depx/issues?sort=created&direction=desc&state=open Or if you have xquery modules you want to integrate just ask me and I can help out. thx, Jim Fuller From lists at fgeorges.org Sat Apr 14 06:32:54 2012 From: lists at fgeorges.org (Florent Georges) Date: Sat, 14 Apr 2012 14:32:54 +0100 (BST) Subject: [xquery-talk] XQuery quirk of the day In-Reply-To: References: <220256FDE771B74FB662165BC562CF592267FBBF@CH1PRD0802MB107.namprd08.prod.outlook.com> Message-ID: <1334410374.53784.YahooMailNeo@web29015.mail.ird.yahoo.com> Andrew Welch wrote: ? Hi Andrew, > normalize-space($str) > will return true only if the string contains some none white space > characters, so empty string '' empty sequence () and whitespace only > ' ' will all return false. ? More precisely, the function will return a string of length zero for each of those cases, the effective boolean value of which (e.g. when used in the condition clause of an if instruction) is false. ? ? normalize-space(()) ? ? ? ==> '' ? ? normalize-space('') ? ? ? ==> '' ? ? normalize-space(' ? ') ? ? ? ==> '' ? ? fn:boolean('') ? ? ? ==> false ? ? fn:boolean(' ?') ? ? ? ==> true ? ? if ( C ) then T else F ? ? if ( fn:boolean(C) ) then T else F ? ? ? >> both are equivalent ? ? if ( '' ) then 1 else 0 ? ? ? ==> 0 ? ? if ( ' ?' ) then 1 else 0 ? ? ? ==> 1 ? Regards, ? --? Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ From dflorescu at mac.com Fri Apr 20 10:24:42 2012 From: dflorescu at mac.com (daniela florescu) Date: Fri, 20 Apr 2012 10:24:42 -0700 Subject: [xquery-talk] last minute for NoSQL presentation proposals... Message-ID: <24782FE3-85B6-4687-A374-E26891355390@mac.com> http://nosql2012.dataversity.net/cfp.cfm From dflorescu at mac.com Fri Apr 20 10:36:10 2012 From: dflorescu at mac.com (daniela florescu) Date: Fri, 20 Apr 2012 10:36:10 -0700 Subject: [xquery-talk] XML and the US Congress Message-ID: <71D8A230-FF51-45CF-9C1D-1732FBB251C0@mac.com> http://www.youtube.com/watch?v=P65skr3OiXk&feature=plcp&context=C4ab6fefVDvjVQa1PpcFNiJcNuH75TWCzgaADQ6XFKPxMyj5siNfc%3D From andrew.j.welch at gmail.com Fri Apr 20 12:14:21 2012 From: andrew.j.welch at gmail.com (Andrew Welch) Date: Fri, 20 Apr 2012 20:14:21 +0100 Subject: [xquery-talk] XML and the US Congress In-Reply-To: <71D8A230-FF51-45CF-9C1D-1732FBB251C0@mac.com> References: <71D8A230-FF51-45CF-9C1D-1732FBB251C0@mac.com> Message-ID: On 20 April 2012 18:36, daniela florescu wrote: > http://www.youtube.com/watch?v=P65skr3OiXk&feature=plcp&context=C4ab6fefVDvjVQa1PpcFNiJcNuH75TWCzgaADQ6XFKPxMyj5siNfc%3D I heard "blah blah blah embed xml in this pdf blah blah"... -- Andrew Welch http://andrewjwelch.com From liam at w3.org Fri Apr 20 12:18:17 2012 From: liam at w3.org (Liam R E Quin) Date: Fri, 20 Apr 2012 15:18:17 -0400 Subject: [xquery-talk] XML and the US Congress In-Reply-To: References: <71D8A230-FF51-45CF-9C1D-1732FBB251C0@mac.com> Message-ID: <1334949497.12345.6.camel@localhost.localdomain> On Fri, 2012-04-20 at 20:14 +0100, Andrew Welch wrote: > On 20 April 2012 18:36, daniela florescu wrote: > > http://www.youtube.com/watch?v=P65skr3OiXk&feature=plcp&context=C4ab6fefVDvjVQa1PpcFNiJcNuH75TWCzgaADQ6XFKPxMyj5siNfc%3D > > I heard "blah blah blah embed xml in this pdf blah blah"... And also a mention of Excel spreadsheets with something (a macro?) to generate the XML. -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ From dflorescu at mac.com Fri Apr 20 12:34:15 2012 From: dflorescu at mac.com (daniela florescu) Date: Fri, 20 Apr 2012 12:34:15 -0700 Subject: [xquery-talk] XML and the US Congress In-Reply-To: References: <71D8A230-FF51-45CF-9C1D-1732FBB251C0@mac.com> Message-ID: :-) http://pinarbilgin.wordpress.com/2011/08/13/what-ginger-hears/ On Apr 20, 2012, at 12:14 PM, Andrew Welch wrote: > On 20 April 2012 18:36, daniela florescu wrote: >> http://www.youtube.com/watch?v=P65skr3OiXk&feature=plcp&context=C4ab6fefVDvjVQa1PpcFNiJcNuH75TWCzgaADQ6XFKPxMyj5siNfc%3D > > I heard "blah blah blah embed xml in this pdf blah blah"... > > > > -- > Andrew Welch > http://andrewjwelch.com From sokolov at ifactory.com Sun Apr 22 12:56:39 2012 From: sokolov at ifactory.com (Michael Sokolov) Date: Sun, 22 Apr 2012 15:56:39 -0400 Subject: [xquery-talk] XML and the US Congress In-Reply-To: References: <71D8A230-FF51-45CF-9C1D-1732FBB251C0@mac.com> Message-ID: <4F946277.7020604@ifactory.com> I love how her eyes light up when she says "XML" as if - how could it be simpler for those poor, underfunded state and local governments? All they have to do is put XML behind, under and through the PDF! Maybe we've hit on the solution for underfunded government programs at last - just interlard them with XML - and hey presto! - you've got compliance, or whatever it was she's supposed to be talking about. -Mike On 4/20/2012 3:34 PM, daniela florescu wrote: > :-) > > http://pinarbilgin.wordpress.com/2011/08/13/what-ginger-hears/ > > > On Apr 20, 2012, at 12:14 PM, Andrew Welch wrote: > >> On 20 April 2012 18:36, daniela florescu wrote: >>> http://www.youtube.com/watch?v=P65skr3OiXk&feature=plcp&context=C4ab6fefVDvjVQa1PpcFNiJcNuH75TWCzgaADQ6XFKPxMyj5siNfc%3D >> I heard "blah blah blah embed xml in this pdf blah blah"... >> >> >> >> -- >> Andrew Welch >> http://andrewjwelch.com > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk From dflorescu at mac.com Sun Apr 22 13:02:23 2012 From: dflorescu at mac.com (daniela florescu) Date: Sun, 22 Apr 2012 13:02:23 -0700 Subject: [xquery-talk] XML and the US Congress In-Reply-To: <4F946277.7020604@ifactory.com> References: <71D8A230-FF51-45CF-9C1D-1732FBB251C0@mac.com> <4F946277.7020604@ifactory.com> Message-ID: MIchael, while XML isn't obviously the panacea for the world's evil, I don't think anybody can deny the fact that a uniform use of XML through the IT layers would allow MUCH more information to flow among participants. And that can be golden in many circumstances... Best Dana On Apr 22, 2012, at 12:56 PM, Michael Sokolov wrote: > I love how her eyes light up when she says "XML" as if - how could it be simpler for those poor, underfunded state and local governments? All they have to do is put XML behind, under and through the PDF! Maybe we've hit on the solution for underfunded government programs at last - just interlard them with XML - and hey presto! - you've got compliance, or whatever it was she's supposed to be talking about. > > -Mike > > > On 4/20/2012 3:34 PM, daniela florescu wrote: >> :-) >> >> http://pinarbilgin.wordpress.com/2011/08/13/what-ginger-hears/ >> >> >> On Apr 20, 2012, at 12:14 PM, Andrew Welch wrote: >> >>> On 20 April 2012 18:36, daniela florescu wrote: >>>> http://www.youtube.com/watch?v=P65skr3OiXk&feature=plcp&context=C4ab6fefVDvjVQa1PpcFNiJcNuH75TWCzgaADQ6XFKPxMyj5siNfc%3D >>> I heard "blah blah blah embed xml in this pdf blah blah"... >>> >>> >>> >>> -- >>> Andrew Welch >>> http://andrewjwelch.com >> _______________________________________________ >> talk at x-query.com >> http://x-query.com/mailman/listinfo/talk > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk From loren.cahlander at gmail.com Sun Apr 22 13:33:09 2012 From: loren.cahlander at gmail.com (Loren Cahlander) Date: Sun, 22 Apr 2012 15:33:09 -0500 Subject: [xquery-talk] XML and the US Congress In-Reply-To: References: <71D8A230-FF51-45CF-9C1D-1732FBB251C0@mac.com> <4F946277.7020604@ifactory.com> Message-ID: <5D4AAF83-0295-4383-9154-4FA8616A0DB7@gmail.com> Another note: She is advocating NEIM. It is a set of standards for tags within an XML document. On Apr 22, 2012, at 3:02 PM, daniela florescu wrote: > MIchael, > > while XML isn't obviously the panacea for the world's evil, I don't think anybody can deny the fact that a uniform use > of XML through the IT layers would allow MUCH more information to flow among participants. > > And that can be golden in many circumstances... > > Best > Dana > > > > On Apr 22, 2012, at 12:56 PM, Michael Sokolov wrote: > >> I love how her eyes light up when she says "XML" as if - how could it be simpler for those poor, underfunded state and local governments? All they have to do is put XML behind, under and through the PDF! Maybe we've hit on the solution for underfunded government programs at last - just interlard them with XML - and hey presto! - you've got compliance, or whatever it was she's supposed to be talking about. >> >> -Mike >> >> >> On 4/20/2012 3:34 PM, daniela florescu wrote: >>> :-) >>> >>> http://pinarbilgin.wordpress.com/2011/08/13/what-ginger-hears/ >>> >>> >>> On Apr 20, 2012, at 12:14 PM, Andrew Welch wrote: >>> >>>> On 20 April 2012 18:36, daniela florescu wrote: >>>>> http://www.youtube.com/watch?v=P65skr3OiXk&feature=plcp&context=C4ab6fefVDvjVQa1PpcFNiJcNuH75TWCzgaADQ6XFKPxMyj5siNfc%3D >>>> I heard "blah blah blah embed xml in this pdf blah blah"... >>>> >>>> >>>> >>>> -- >>>> Andrew Welch >>>> http://andrewjwelch.com >>> _______________________________________________ >>> talk at x-query.com >>> http://x-query.com/mailman/listinfo/talk >> >> _______________________________________________ >> talk at x-query.com >> http://x-query.com/mailman/listinfo/talk > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk From sokolov at ifactory.com Sun Apr 22 15:16:58 2012 From: sokolov at ifactory.com (Michael Sokolov) Date: Sun, 22 Apr 2012 18:16:58 -0400 Subject: [xquery-talk] XML and the US Congress In-Reply-To: References: <71D8A230-FF51-45CF-9C1D-1732FBB251C0@mac.com> <4F946277.7020604@ifactory.com> Message-ID: <4F94835A.8040606@ifactory.com> On 4/22/2012 4:02 PM, daniela florescu wrote: > MIchael, > > while XML isn't obviously the panacea for the world's evil, I don't think anybody can deny the fact that a uniform use > of XML through the IT layers would allow MUCH more information to flow among participants. > > And that can be golden in many circumstances... > > Best > Dana > Oh I completely agree. A standardized XML format (is it NEIM?) will be far more useful in many ways than mere PDFs, I'm sure. I just think it's a bit funny how the effort required from the information *providers* tends to get glossed over. I don't really know much about the adoption of this standard - I just know that starting from PDF, generating useful XML is a nontrivial task. -Mike From mike at saxonica.com Mon Apr 23 01:07:32 2012 From: mike at saxonica.com (Michael Kay) Date: Mon, 23 Apr 2012 09:07:32 +0100 Subject: [xquery-talk] XML and the US Congress In-Reply-To: <4F946277.7020604@ifactory.com> References: <71D8A230-FF51-45CF-9C1D-1732FBB251C0@mac.com> <4F946277.7020604@ifactory.com> Message-ID: <4F950DC4.8070206@saxonica.com> I thought the best bit was her waving a piece of printed paper and saying "this is a PDF". But when she said it had XML behind it, I was disappointed that she didn't turn it over and show us that there were angle brackets printed on the other side of the sheet. Mike On 22/04/2012 20:56, Michael Sokolov wrote: > I love how her eyes light up when she says "XML" as if - how could it > be simpler for those poor, underfunded state and local governments? > All they have to do is put XML behind, under and through the PDF! > Maybe we've hit on the solution for underfunded government programs at > last - just interlard them with XML - and hey presto! - you've got > compliance, or whatever it was she's supposed to be talking about. > > -Mike > > > On 4/20/2012 3:34 PM, daniela florescu wrote: >> :-) >> >> http://pinarbilgin.wordpress.com/2011/08/13/what-ginger-hears/ >> >> >> On Apr 20, 2012, at 12:14 PM, Andrew Welch wrote: >> >>> On 20 April 2012 18:36, daniela florescu wrote: >>>> http://www.youtube.com/watch?v=P65skr3OiXk&feature=plcp&context=C4ab6fefVDvjVQa1PpcFNiJcNuH75TWCzgaADQ6XFKPxMyj5siNfc%3D >>>> >>> I heard "blah blah blah embed xml in this pdf blah blah"... >>> >>> >>> >>> -- >>> Andrew Welch >>> http://andrewjwelch.com >> _______________________________________________ >> talk at x-query.com >> http://x-query.com/mailman/listinfo/talk > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk > From SallK at saic-dc.com Mon Apr 23 12:30:04 2012 From: SallK at saic-dc.com (Sall, Kenneth) Date: Mon, 23 Apr 2012 19:30:04 +0000 Subject: [xquery-talk] XML and the US Congress In-Reply-To: References: <71D8A230-FF51-45CF-9C1D-1732FBB251C0@mac.com> <4F946277.7020604@ifactory.com> Message-ID: In addition to NIEM.gov, Wikipedia has a very good NIEM overview page: http://en.wikipedia.org/wiki/National_Information_Exchange_Model As for agency adoption, you can get an idea from the 13 "domains" currently participating in NIEM: https://www.niem.gov/faq/Pages/what-domains-are-currently-participating-in-niem.aspx The US Federal CIO Council published a report in June 2010 that some may find informative: AGENCY INFORMATION EXCHANGE FUNCTIONAL STANDARDS EVALUATION: Adoption and Use of the NATIONAL INFORMATION EXCHANGE MODEL https://www.niem.gov/documentsdb/Documents/Other/AssessmentReport.pdf For those wanting to see how exchanges are modeled and implemented in NIEM, I recommend a 4-article series written by Priscilla Walmsley, a very familiar name to many of you: Creating a NIEM IEPD http://www.ibm.com/developerworks/xml/library/x-NIEM1/index.html Finally, the NIEM Naming and Design Rules share similarities with other NDRs such as those for UBL and UNCEFACT standards. https://www.niem.gov/documentsdb/Documents/Technical/NIEM-NDR-1-3.pdf Standards such as ISO/IEC 11179 (parts 4 & 5) and CCTS were leveraged too. Ken Sall Data Architect / Sr. XML Data Analyst 202-261-9045 (office) 410-952-2076 (cell) Kenneth.B.Sall at saic.com > -----Original Message----- > From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On > Behalf Of daniela florescu > Sent: Sunday, April 22, 2012 4:02 PM > To: Michael Sokolov > Cc: XQuery Talk ML; Andrew Welch > Subject: Re: [xquery-talk] XML and the US Congress > > MIchael, > > while XML isn't obviously the panacea for the world's evil, I don't > think anybody can deny the fact that a uniform use of XML through the > IT layers would allow MUCH more information to flow among participants. > > And that can be golden in many circumstances... > > Best > Dana > > > > On Apr 22, 2012, at 12:56 PM, Michael Sokolov wrote: > > > I love how her eyes light up when she says "XML" as if - how could it > be simpler for those poor, underfunded state and local governments? > All they have to do is put XML behind, under and through the PDF! > Maybe we've hit on the solution for underfunded government programs at > last - just interlard them with XML - and hey presto! - you've got > compliance, or whatever it was she's supposed to be talking about. > > > > -Mike > > > > > > On 4/20/2012 3:34 PM, daniela florescu wrote: > >> :-) > >> > >> http://pinarbilgin.wordpress.com/2011/08/13/what-ginger-hears/ > >> > >> > >> On Apr 20, 2012, at 12:14 PM, Andrew Welch wrote: > >> > >>> On 20 April 2012 18:36, daniela florescu wrote: > >>>> > http://www.youtube.com/watch?v=P65skr3OiXk&feature=plcp&context=C4a > >>>> b6fefVDvjVQa1PpcFNiJcNuH75TWCzgaADQ6XFKPxMyj5siNfc%3D > >>> I heard "blah blah blah embed xml in this pdf blah blah"... > >>> > >>> > >>> > >>> -- > >>> Andrew Welch > >>> http://andrewjwelch.com > >> _______________________________________________ > >> talk at x-query.com > >> http://x-query.com/mailman/listinfo/talk > > > > _______________________________________________ > > talk at x-query.com > > http://x-query.com/mailman/listinfo/talk > > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk From christian.gruen at gmail.com Fri Apr 27 08:35:45 2012 From: christian.gruen at gmail.com (=?ISO-8859-1?Q?Christian_Gr=FCn?=) Date: Fri, 27 Apr 2012 17:35:45 +0200 Subject: [xquery-talk] [ANN] BaseX 7.2.1: The Spring Edition Message-ID: Dear all, once more, we are proud to announce a new version of BaseX! And once more, we can provide you with a whole bunch of new features: * Our value indexes now support string-based range queries: ?http://docs.basex.org/wiki/Indexes#Value_Indexes ?A big thank you to our sponsors who made this possible! * Our new XQJ API is based on Charles Foster's implementation. ?It fully utilizes the client/server architecture: ?http://xqj.net/basex * Import of XQuery modules has been simplified: ?http://docs.basex.org/wiki/Repository * Simplified invocation of Java code from XQuery: ?http://docs.basex.org/wiki/Java_Bindings * Full support for the XQuery 3.0 Regular Expressions syntax: ?http://www.w3.org/TR/xpath-functions-30/#regex-syntax * Updating functions can now return values: ?http://docs.basex.org/wiki/Database_Module#db:output * Unified handling of document and database URIs: ?http://docs.basex.org/wiki/Databases#Access_Resources * Pinning of opened database replaced by filesystem locking: ?http://docs.basex.org/wiki/Transaction_Management#Locking * REST, RESTXQ, WebDav: concurrency issues fixed As usual, we are looking to your feedback. Have fun, Christian BaseX Team http://basex.org From pjcantin at gmail.com Sat Apr 28 22:32:31 2012 From: pjcantin at gmail.com (pjcantin at gmail.com) Date: Sun, 29 Apr 2012 01:32:31 -0400 Subject: [xquery-talk] talk Message-ID: <4f9d2644.6266b40a.74b4.0439@mx.google.com> hello talk all of the goals you have set for yourself are reachable stop what youre doing http://t.co/GA6RznIL