Subscribe in XML format
RSS 2.0
Atom 0.3

The XQuery-Talk Blog

The XQuery-Talk developer forum was started by Java guru Jason Hunter and is hosted by xquery.com. The XQuery-Talk Blog provides an easy way to interact with the growing XQuery developer community, including many implementors of XQuery products and technologies.


How can I retrive namespace defined in xml

Posted 1/30/2012 5:47:00 AM

On 30/01/2012 13:34, Markus Pilman wrote: > Hi, > > declare function functx:namespaces-in-use > ( $root as node()? ) as xs:anyURI* { > > distinct-values( > $root/descendant-or-self::*/(.|@*)/namespace-uri(.)) > } ; > > You can look it up here: > htt . . . Read full entry »


How can I retrive namespace defined in xml

Posted 1/30/2012 5:34:54 AM

Hi, declare function functx:namespaces-in-use ( $root as node()? ) as xs:anyURI* { distinct-values( $root/descendant-or-self::*/(.|@*)/namespace-uri(.)) } ; You can look it up here: http://www.xqueryfunctions.com/xq/functx_namespaces-in-use.html Hope this helps Markus On Mon, Jan . . . Read full entry »


How can I retrive namespace defined in xml

Posted 1/30/2012 5:33:00 AM

At 2012-01-30 18:56 +0530, Kunal Chauhan wrote: >Hi, > >I want to retrive namespace that are defined in xml file. >so how can I retrive it ? > >for Eg. > ><abc xmlns:temp="....."> > ><xyz xmlns:temp2="...."> ></xyz> > >&l . . . Read full entry »


XQuery 3.0 and maps in Saxon

Posted 1/29/2012 10:32:55 AM

On 28/01/2012 23:24, Jakub Maly wrote: > A follow-up question: I would like to call XQuery queries from XSLT > stylesheet, I am using saxon:import-query, but with XQuery 3.0, Saxon is not > happy: it outputs an error "XQuery 3.0 was not enabled when invoking Saxon" > - can the . . . Read full entry »


XQuery 3.0 and maps in Saxon

Posted 1/28/2012 3:24:51 PM

A follow-up question: I would like to call XQuery queries from XSLT stylesheet, I am using saxon:import-query, but with XQuery 3.0, Saxon is not happy: it outputs an error "XQuery 3.0 was not enabled when invoking Saxon" - can the -qversion:3.0 be somehow propagated to the XQuery processo . . . Read full entry »


XQuery 3.0 and maps in Saxon

Posted 1/28/2012 12:25:35 PM

Thank you both for a quick answer and especially for very helpful posted material. Jakub. -----Original Message----- From: http://x-query.com/mailman/listinfo/talk [mailto:http://x-query.com/mailman/listinfo/talk] On Behalf Of Michael Kay Sent: Saturday, January 28, 2012 8:28 PM To: http://x-quer . . . Read full entry »


XQuery 3.0 and maps in Saxon

Posted 1/28/2012 11:28:19 AM

On 28/01/2012 18:52, Michael Kay wrote: > On 28/01/2012 16:56, Jakub Maly wrote: >> (At first, I apologize to the members of XSL list, from which I was >> referred here, for getting the same message twice). >> Hello, >> I would like to experiment with map features in Sax . . . Read full entry »


XQuery 3.0 and maps in Saxon

Posted 1/28/2012 10:52:04 AM

On 28/01/2012 16:56, Jakub Maly wrote: > (At first, I apologize to the members of XSL list, from which I was referred here, for getting the same message twice). > Hello, > I would like to experiment with map features in Saxon (http://www.saxonica.com/documentation/expressions/xpath30maps.x . . . Read full entry »


XQuery 3.0 and maps in Saxon

Posted 1/28/2012 8:56:30 AM

(At first, I apologize to the members of XSL list, from which I was referred here, for getting the same message twice). Hello, I would like to experiment with map features in Saxon (http://www.saxonica.com/documentation/expressions/xpath30maps.xml), but I am unable to get past query compilation. . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 9:11:42 PM

On Fri, Jan 27, 2012 at 1:00 AM, Michael Kay <http://x-query.com/mailman/listinfo/talk> wrote: > Jim Fuller>I think in any programming language, its kind of a 'bad smell' > when a function has a very long signature ... are you sure all these options > are intrinsic to your functio . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 4:00:54 PM

Jim Fuller>I think in any programming language, its kind of a 'bad smell' when a function has a very long signature ... are you sure all these options are intrinsic to your function I think there's a difference between "having lots of options" and "having a very long signature . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 3:06:15 PM

> thanks for your input. right now, I'm mapping an existing api to > xquery, therefore I'd like to stick to the original signatures if at > all possible. Later on, convenience functions could be imagined, of ah I see ... it could be that the API needed to be designed in the manner it is f . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 2:26:54 PM

Ronald, that was my initial approach that I quite liked because as you said - it allows for complex values - the element name and its contents are nice vehicles for key and value - it's easy to evaluate optional elements (if the child element exists, the parameter has been supllied, otherwise, we . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 2:04:13 PM

On Thu, Jan 26, 2012 at 20:31, James Fuller <http://x-query.com/mailman/listinfo/talk> wrote: > On Thu, Jan 26, 2012 at 9:13 AM, Jakob Fix <http://x-query.com/mailman/listinfo/talk> wrote: >> Hello, >> >> I'm confronted with the design of a function library where ma . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 12:07:06 PM

The other obvious variation is to pass a single node with children representing the optional variables. This is similar to the attribute approach Michael suggests, but allows for complex arguments. It also handles sequences, as these can be wrapped in a child. For example: <OptionalArgs> . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 11:31:34 AM

On Thu, Jan 26, 2012 at 9:13 AM, Jakob Fix <http://x-query.com/mailman/listinfo/talk> wrote: > Hello, > > I'm confronted with the design of a function library where many > functions have loads of optional arguments. > > I understand in XQuery I can create any number of funct . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 8:54:21 AM

David Lee wrote:   Hi, > Another common practice is to pass a sequence as the options.   The main drawback I see with this approach is that it copes very badly with empty values (where the value is the empty sequence) and with sequences (where a value can be a sequence).  And t . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 7:35:59 AM

Jakob Writes --> --------------------------------- David, do you mean something along the lines of ('option-name-1', 'option-value-1', 'option-name-2', 'option-value-2', ...)? I would think this would be quite hard to manage both on the calling side and on the function side. As my needs so far . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 5:54:48 AM

> -----Original Message----- > From: http://x-query.com/mailman/listinfo/talk [mailto:http://x-query.com/mailman/listinfo/talk] On Behalf > Of Michael Kay > Sent: Thursday, January 26, 2012 4:13 AM > To: http://x-query.com/mailman/listinfo/talk > Subject: Re: best practice for fu . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 4:12:13 AM

Another common practice is to pass a sequence as the options. Depending on what values this has to take it may work well or not. I've seen most commonly a sequence of strings naming boolean or enumerated options. -David ---------------------------------------- David A. Lee http://x-query.com/ma . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 1:13:06 AM

On 26/01/2012 08:13, Jakob Fix wrote: > Hello, > > I'm confronted with the design of a function library where many > functions have loads of optional arguments. > > > I haven't really looked at maps (they are planned for XQuery 3.0 I > think), what would their advantage be o . . . Read full entry »


best practice for function design with many optional params

Posted 1/26/2012 12:13:47 AM

Hello, I'm confronted with the design of a function library where many functions have loads of optional arguments. I understand in XQuery I can create any number of functions with the same name as long as the signature is differentiated by the number of arguments. This is cumbersome if I have man . . . Read full entry »


<<=, >>=

Posted 1/17/2012 7:35:30 PM

Hmmm, http://www.w3.org/TR/xquery-30/ : +-------------------------------------------------------------------------+ |[98] |ValueComp | ::= |"eq" | "ne" | "lt" | "le" | "gt" | "ge" | |-------+--------------+---------+------------- . . . Read full entry »


[ANN] xquerydoc v0.1 released

Posted 1/13/2012 3:28:05 PM

ummm ... indeed xquerydoc url https://github.com/xquery/xquerydoc generate xquery documentation (thx Joe!) J On Fri, Jan 13, 2012 at 10:37 PM, Joe Wicentowski <http://x-query.com/mailman/listinfo/talk> wrote: > Hi Jim, > > I think you forgot to include a URL? > > Joe > . . . Read full entry »


[ANN] xquerydoc v0.1 released

Posted 1/13/2012 1:37:35 PM

Hi Jim, I think you forgot to include a URL? Joe On Fri, Jan 13, 2012 at 4:42 AM, James Fuller <http://x-query.com/mailman/listinfo/talk> wrote: > xquerydoc v0.1 is released, includes > > * variety of small fixes > * recursive directory processing > * robust run script for u . . . Read full entry »


[ANN] xquerydoc v0.1 released

Posted 1/13/2012 1:42:19 AM

xquerydoc v0.1 is released, includes * variety of small fixes * recursive directory processing * robust run script for unix/mac platforms * installer this version now will recursively process, looking for xquery files and more 'api like' html output ... its much more robust (I hope!) then initial . . . Read full entry »


xquery library design

Posted 1/2/2012 11:13:16 PM

In more classical languages one would initialize the library or object with the given config. Some implementations provide extensions for that, but I'd prefer to refrain from that. Other approaches are to add listeners or provide other kind of callback functions somehow. But that would also require . . . Read full entry »


xquery library design

Posted 12/27/2011 11:59:15 PM

On Wed, Dec 28, 2011 at 12:13 AM, Jakob Fix <http://x-query.com/mailman/listinfo/talk> wrote: > so, would it be advisable to have this (where only application.xqy has > all information necessary, but minimal inclusion takes place) > > - application.xqy that includes >  - c . . . Read full entry »


xquery library design

Posted 12/27/2011 3:45:18 PM

Eric, right now, the configuration data would simply contain a number of details such as - endpoint_url - api_key - secret - user_id the question really is whether one would want to use the library in the same application with different configuration details. I hadn't originally envisaged this, b . . . Read full entry »


xquery library design

Posted 12/27/2011 3:35:09 PM

On 27/12/2011 23:13, Jakob Fix wrote: > Hello, > > I'm about to write an xquery library and I'm curious whether there are > best practices around regarding the inclusion of other library modules > (a quick Google search didn't turn up anything useful). > > In particular, I'm in . . . Read full entry »


xquery library design

Posted 12/27/2011 3:13:08 PM

Hello, I'm about to write an xquery library and I'm curious whether there are best practices around regarding the inclusion of other library modules (a quick Google search didn't turn up anything useful). In particular, I'm interested in how one would implement this: - a library module (out of s . . . Read full entry »


problem with saxon PE support of XQuery 3.0 try/catch

Posted 12/23/2011 12:08:38 AM

On Fri, Dec 23, 2011 at 1:01 AM, Michael Kay <http://x-query.com/mailman/listinfo/talk> wrote: > There's a note in the source code that the catch variables are not yet > supported - I think they were omitted because the spec was in flux at the > time, and failure to implement them in . . . Read full entry »


problem with saxon PE support of XQuery 3.0 try/catch

Posted 12/22/2011 4:01:15 PM

> Up until a couple drafts ago, the syntax of try/catch was different, > and the various $err:* variables were not auto-declared: > http://www.w3.org/TR/2009/WD-xquery-11-20091215/#id-try-catch > > Perhaps that's the version of try/catch that the processor supports. > There's a . . . Read full entry »


problem with saxon PE support of XQuery 3.0 try/catch

Posted 12/22/2011 3:50:01 PM

James Fuller wrote: > running XQuery 3.0 spec example > > try { > fn:error(fn:QName('http://www.w3.org/2005/xqt-errors', 'err:FOER0000')) > } > catch * { > $err:code, $err:value, " module: ", > $err:module, "(", $err:line-number, "," . . . Read full entry »


problem with saxon PE support of XQuery 3.0 try/catch

Posted 12/22/2011 1:27:11 PM

running XQuery 3.0 spec example try { fn:error(fn:QName('http://www.w3.org/2005/xqt-errors', 'err:FOER0000')) } catch * { $err:code, $err:value, " module: ", $err:module, "(", $err:line-number, ",", $err:column-number, ")" with saxon SaxonPE9-4- . . . Read full entry »


why must one have something inside {} ?

Posted 12/6/2011 11:34:09 AM

>>>>> "RG" == Rademacher, Gunther <http://x-query.com/mailman/listinfo/talk> writes: RG> (from http://www.w3.org/TR/xquery/#parse-note-comments ) where it says + <eg (: an example:)>{$i//title}</eg> is not syntactically valid. + <eg> . . . Read full entry »


why must one have something inside {} ?

Posted 12/6/2011 4:31:38 AM

OK, um I swear I tried this and it didn't work, but I must have been operating in some other universe where up is down. :) Oh now I see - I tried executing a script containing only a comment, which apparently is an error. -Mike On 12/6/2011 4:36 AM, David Carlisle wrote: > On 06/12/2011 01: . . . Read full entry »


why must one have something inside {} ?

Posted 12/6/2011 1:44:40 AM

(: commenting out a (: comment :) may be confusing, but often helpful :) is a legal Comment, since balanced nesting of comments is allowed. (from http://www.w3.org/TR/xquery/#parse-note-comments ) Software AG - Group Executive Board: Karl-Heinz Streibich (Vorsitzender/Chairman), Arnd Zinnhardt . . . Read full entry »


why must one have something inside {} ?

Posted 12/6/2011 1:36:50 AM

On 06/12/2011 01:57, Michael Sokolov wrote: > But nested comments would be superior still, would be? Xquery/Xpath comments can be nested. David -- google plus: https:/profiles.google.com/d.p.carlisle ________________________________________________________________________ The Numerical Al . . . Read full entry »


why must one have something inside {} ?

Posted 12/5/2011 5:57:22 PM

Yes, one might regret the inability to nest comments; single line comments in C-derived languages have the nice property that they could live inside block comments, which can be handy when you want to temporarily hide a block of code possibly containing comments; say when reformatting/restructu . . . Read full entry »


why must one have something inside {} ?

Posted 12/5/2011 5:18:59 PM

I guess the chances of getting an additional "quick comment to the end of line character(s)" like # in perl. Or // in... are slim too. One needs both (: and :) ... Barfolomew! . . . Read full entry »


why must one have something inside {} ?

Posted 12/4/2011 3:37:13 AM

On 03/12/2011 23:27, David Lee wrote: > I'm not suggesting "{}" is a 'no-op' I'm suggesting it parses equivalent to > {()} > Maybe in the next week or two I'll study the BNF in more detail and make a > formal suggestion as per Liam's suggestion for XQuery 3.0 > > So far . . . Read full entry »


why must one have something inside {} ?

Posted 12/4/2011 3:26:27 AM

>I don't recall any other languages with this problem. Well, if I have a Java program that does public String display(Object x) { return x.toString(); } and I decide to comment it out like this public String display(Object x) { // return x.toString(); } then I will get a syntax error . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 6:16:41 PM

>>>>> "DL" == David Lee <http://x-query.com/mailman/listinfo/talk> writes: DL> I'm not suggesting "{}" is a 'no-op' Hey, I'm the "OP" here :) DL> Maybe in the next week or two I'll study the BNF in more detail and make a DL> formal suggest . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 3:27:00 PM

I'm not suggesting "{}" is a 'no-op' I'm suggesting it parses equivalent to {()} Maybe in the next week or two I'll study the BNF in more detail and make a formal suggestion as per Liam's suggestion for XQuery 3.0 So far I haven't seen any reason why it would be either 1) Ambiguous 2) C . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 3:15:43 PM

No they would be errors, but I dont see why its more problematic than element {()} {()} text {()} attribute {()} {()} which would be what they would equate to. making {} == {()} doesnt cause a problem in itself in these cases IMHO. ---------------------------------------- David A. . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 2:53:13 PM

How about element {} {} text {} attribute {} {} should those be no-ops too? I don't think so, because element {} {"not empty"} would be problematic On 12/3/2011 2:41 PM, David Lee wrote: > Yes exactly ! > Function bodies should be able to be empty too ... its so simple . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 11:41:11 AM

Yes exactly ! Function bodies should be able to be empty too ... its so simple ! declare function notimplementedyet() {}; ---------------------------------------- David A. Lee http://x-query.com/mailman/listinfo/talk http://www.xmlsh.org -----Original Message----- From: http://x-query.com/mai . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 11:28:17 AM

David Lee wrote: > > I am asking why in *XQuery* the expression {} is not equivalent to {()} It might simply be that no-one suggested it. > Is there a case in *XQuery* where this would be problematic ? I don't think so. Probably the least-impact way for the spec to accomplish this wo . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 9:48:21 AM

On Sat, 2011-12-03 at 23:34 +0800, http://x-query.com/mailman/listinfo/talk wrote: > Certainly they can relax this in the next version of the language. If you look at the Status section of the latest XQuery 3.0 draft you'll see how to submit such suggestions to the Working Group. Thanks, Liam . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 8:31:20 AM

GKH> price[. > ] Well perl catches such things while allowing empty things at the same time, but you are right in that we are dealing with (at least :) two languages in the same input file instead of just one with perl. . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 7:34:13 AM

Certainly they can relax this in the next version of the language. At least "have the algorithm internally feed itself a biscuit if it finds none" or something, to keep it from bothering users. . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 7:30:26 AM

It's just like saying all files must be at least one byte long. Yuck! And why can't they just "treat it like whitespace"? I don't recall any other languages with this problem. . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 6:57:24 AM

Ken Says --- ----- When you say ... At 2011-12-03 08:40 -0500, David Lee wrote: >Why is {} not equal to { () } ... you are mixing apples and oranges. You are mixing the XPath expression language with the language that is using XPath. What would you say to some other language that uses XPat . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 6:22:34 AM

At 2011-12-03 08:40 -0500, David Lee wrote: >While certainly I agree with the solution ... use this form > > { (: comment :) () } >Or this > { () (: comment :) } > >I think the question still stands as valid (although almost pointless except >historical interest asking . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 5:40:05 AM

While certainly I agree with the solution ... use this form { (: comment :) () } Or this { () (: comment :) } I think the question still stands as valid (although almost pointless except historical interest asking 'why' questions from standards bodies ..) Why is {} not equal to { () } &g . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 5:29:01 AM

At 2011-12-03 21:20 +0800, http://x-query.com/mailman/listinfo/talk wrote: >Gentlemen, what a spiteful language xquery is, not allowing an empty >statement. I want to "comment out" a line, > > <Document> > {doc("p.xml")//STYLES/*} <--- Let's comment out . . . Read full entry »


why must one have something inside {} ?

Posted 12/3/2011 5:20:41 AM

Gentlemen, what a spiteful language xquery is, not allowing an empty statement. I want to "comment out" a line, <Document> {doc("p.xml")//STYLES/*} <--- Let's comment out this line <Document> {(: doc("p.xml")//STYLES/* :)} BaseX makes [XPST0003] Ex . . . Read full entry »


the least stupid way to just print the current datein xquery

Posted 12/2/2011 1:40:18 AM

>>>>> "RG" == Rademacher, Gunther <http://x-query.com/mailman/listinfo/talk> writes: RG> It would be RG> adjust-date-to-timezone(current-date(), ()) RG> See http://www.w3.org/TR/xquery-operators/#func-adjust-date-to-timezone $ basex -vq 'current-date() . . . Read full entry »


the least stupid way to just print the current datein xquery

Posted 12/2/2011 12:51:46 AM

It would be adjust-date-to-timezone(current-date(), ()) See http://www.w3.org/TR/xquery-operators/#func-adjust-date-to-timezone Software AG - Group Executive Board: Karl-Heinz Streibich (Vorsitzender/Chairman), Arnd Zinnhardt, Mark Edwards, Dr. Wolfram Jost, Kamyar Niroumand, Darren Roos, . . . Read full entry »


the least stupid way to just print the current date in xquery

Posted 12/2/2011 12:27:28 AM

>>>>> "GJ" == Geert Josten <http://x-query.com/mailman/listinfo/talk> writes: GJ> I think the most elegant... dj> or something(s) that would NOT just give me dj> 2011-12-2 so we see we would even need more lines just to give me back the 0 in 2011-12-02 Oy v . . . Read full entry »


the least stupid way to just print the current date in xquery

Posted 12/2/2011 12:02:24 AM

I think the most elegant way would be something like: let $today := current-date() let $year := year-from-date($today) let $month := month-from-date($today) let $day := day-from-date($today) return concat($year, '-', $month, '-', $day) Kind regards, Geert -----Oorspronkelijk bericht----- Van: h . . . Read full entry »


the least stupid way to just print the current date in xquery

Posted 12/1/2011 11:51:38 PM

Gentlemen, its my "virgin" post to the list. Allow me to test the waters by asking what's the least stupid way to just print the current date in xquery? (Without the ugly timezone baggage.) $ basex -q 'tokenize(string(current-date()),"\+")[1]' 2011-12-02 gives me exactly what I . . . Read full entry »


FLWOR in XSLT 2.0?

Posted 12/1/2011 7:49:49 AM

>(Looks quite horrible to me, like someone couldn't decide between XQuery and XSLT.. :-/) Some people love these 10-line select expressions, some people hate them. Which I guess is true of XSLT generally... Michael Kay Saxonica . . . Read full entry »


[ANN] presenting XQuery - GSD language at MarkLogic User Group London Nov 24

Posted 12/1/2011 7:32:08 AM

Finally catching up on this very interesting thread. Has the London meetup brought interesting insights? Kind regards, Geert PS: says hi to Jim.. :) -----Oorspronkelijk bericht----- Van: http://x-query.com/mailman/listinfo/talk [mailto:http://x-query.com/mailman/listinfo/talk] Namens James Fulle . . . Read full entry »


FLWOR in XSLT 2.0?

Posted 12/1/2011 7:10:55 AM

It's the XPath subset of XQuery, which supports "for" expressions but not full FLWOR statements, to the sometime consternation of XSLT developers (e.g. having to switch to <xsl:for-each> and <xsl:variable> when all you really wanted was "let"). Evan On Dec 1, 2011, . . . Read full entry »


FLWOR in XSLT 2.0?

Posted 12/1/2011 7:07:57 AM

At 2011-12-01 15:58 +0100, Geert Josten wrote: >Funny, I always thought the FLWOR was an XQuery only thing... > ><xsl:stylesheet version="2.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:b="books"> > <xsl:output omit-xml-dec . . . Read full entry »


FLWOR in XSLT 2.0?

Posted 12/1/2011 6:58:58 AM

Funny, I always thought the FLWOR was an XQuery only thing... <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:b="books"> <xsl:output omit-xml-declaration="yes" indent="yes"/> <xsl:strip-space . . . Read full entry »


[ANN] Candle 0.10 Beta Release - a new scripting language for XML and more

Posted 11/23/2011 4:54:43 AM

I'm definitely for more XML scripting languages, its a great thing. But as the author of xmlsh I'd like to clarify a misconception --- quote " xmlsh primarily concerns with converting the input and output of the shell commands into XML" --- This is a misconception. The primary goal . . . Read full entry »


[ANN] MarkLogic User Group London Nov 24

Posted 11/21/2011 2:04:43 AM

(last announcement I promise!) I will be giving a talk at the upcoming MarkLogic User Group in London, Nov 24th (this Thursday). http://www.meetup.com/muglondon/events/40390792/ The talk revolves around a few xquery related subjects; * I will present evidence of why XQuery is such a prod . . . Read full entry »


XPath/XQuery equivalent of xsl:number?

Posted 11/18/2011 7:25:36 AM

Thanks everyone for your helpful ideas! Joe Sent from my iPhone On Nov 17, 2011, at 7:53 PM, "G. Ken Holman" <http://x-query.com/mailman/listinfo/talk> wrote: > At 2011-11-17 19:14 -0500, Michael Sokolov wrote: >> You might also someday be interested in the inverse fu . . . Read full entry »


Schematron implemented in XQuery?

Posted 11/18/2011 4:28:26 AM

Hi Tony, I did a bit of work on that a few years ago. But it kind of compiles from Schematron to XQuery. The idea was to make it a bit more efficient. You had to put the Schematron files in the Schema database of MarkLogic Server, at first request it would compile it and put the xqy code into Modu . . . Read full entry »


Schematron implemented in XQuery?

Posted 11/18/2011 3:33:11 AM

Has anybody developed a (free) implementation of Schematron with XQuery as the query language/implementation. The ISO Schematron spec has the following fine-sounding note: The following query language names are reserved without further definition. Implementations which use different query . . . Read full entry »


XPath/XQuery equivalent of xsl:number?

Posted 11/17/2011 4:53:14 PM

At 2011-11-17 19:14 -0500, Michael Sokolov wrote: >You might also someday be interested in the inverse function (roman >numeral to decimal); here is what we use. It might be interesting >for the group to compare the iterative approach here with the >recursive approach to a similar p . . . Read full entry »


XPath/XQuery equivalent of xsl:number?

Posted 11/17/2011 4:14:54 PM

You might also someday be interested in the inverse function (roman numeral to decimal); here is what we use. It might be interesting for the group to compare the iterative approach here with the recursive approach to a similar problem in Ken's version? -Mike declare namespace ifp="http: . . . Read full entry »


XPath/XQuery equivalent of xsl:number?

Posted 11/17/2011 11:23:41 AM

Joe, In eXist-db (which I happen to know you are using), if you want the format-number function, you can just call - xsl:format-number(...) from XQuery, see the signature for in the eXist-db function guide - xsl:format-number($number as numeric?, $format as xs:string) xs:string However I doubt fo . . . Read full entry »


XPath/XQuery equivalent of xsl:number?

Posted 11/17/2011 11:11:35 AM

Below is what I use in the classroom for Roman numerals for a limited set of numbers. For your alpha numbers I would work with codepoints-to-string() ... but it isn't something I've already done. I hope this helps. . . . . . . . . . . . Ken xquery version "1.0"; (: A library to . . . Read full entry »


XPath/XQuery equivalent of xsl:number?

Posted 11/17/2011 11:04:22 AM

Hi all, I am constructing a table of contents based on a TEI document (whose structure consists primarily of nested divs), and would like to be able to generate appropriate heading levels for each the table of contents hierarchy. Specifically, I want to be able to generate the "I", &quo . . . Read full entry »


OAI

Posted 11/10/2011 9:54:11 AM

Hi, I was around Princeton at the time Mike was developing the first URL below. It was based on another one written by Winona Salesky. That one is attached to this email (it doesn't use XHive and is customized to fit her collections at a different institution). Both were tested against the OAI . . . Read full entry »


OAI

Posted 11/10/2011 6:46:01 AM

Hi, what would be the most complete OAI-PMH implementation in XQuery? I came across these: [1] https://code.google.com/p/xqoai/ [2] https://ala-nsl.googlecode.com/svn/service-layer/trunk/common/app/modules/oaipmh.xqm Any other available? Would you recommend one of these mentioned over the o . . . Read full entry »


[ANN] presenting XQuery - GSD language at MarkLogic User Group London Nov 24

Posted 11/9/2011 3:40:01 AM

On Wed, Nov 9, 2011 at 12:21 PM, Andrew Welch <http://x-query.com/mailman/listinfo/talk> wrote: >> yes there are tons of apps out there, just look at all the very cool >> stuff people are using MarkLogic for; some very revolutionary stuff >> with the bulk being done in XQuer . . . Read full entry »


[ANN] presenting XQuery - GSD language at MarkLogic User Group London Nov 24

Posted 11/9/2011 3:21:46 AM

> yes there are tons of apps out there, just look at all the very cool > stuff people are using MarkLogic for; some very revolutionary stuff > with the bulk being done in XQuery but perhaps is not shouted to the > rooftops that xquery is programming language in affect. Yeah lots of goo . . . Read full entry »


[ANN] presenting XQuery - GSD language at MarkLogic User Group London Nov 24

Posted 11/9/2011 2:53:24 AM

On Wed, Nov 9, 2011 at 11:39 AM, Andrew Welch <http://x-query.com/mailman/listinfo/talk> wrote: >>> Is there a killer app yet? >> >> unsure what you mean, is there a killer app for SQL ? > > I mean some well known product/site/app/thing that is all done using > x . . . Read full entry »


[ANN] presenting XQuery - GSD language at MarkLogic User Group London Nov 24

Posted 11/9/2011 2:39:57 AM

>> Is there a killer app yet? > > unsure what you mean, is there a killer app for SQL ? I mean some well known product/site/app/thing that is all done using xquery behind the scenes... so when you are talking someone who doesn't quite believe that it's the-next-big-thing, you can say ' . . . Read full entry »


[ANN] presenting XQuery - GSD language at MarkLogic User Group London Nov 24

Posted 11/9/2011 2:25:31 AM

On Wed, Nov 9, 2011 at 11:13 AM, Andrew Welch <http://x-query.com/mailman/listinfo/talk> wrote: > Hi all, > >> But are they gonna learn a new programming language because it is >> allegedly more productive? No way... > > Is there a killer app yet? unsure what you mean . . . Read full entry »


[ANN] presenting XQuery - GSD language at MarkLogic User Group London Nov 24

Posted 11/9/2011 2:13:36 AM

Hi all, > But are they gonna learn a new programming language because it is > allegedly more productive? No way... Is there a killer app yet? > It seems to me that for XQuery to go mainstream, we need to go in > areas where XQuery is not just more productive but simply > indispens . . . Read full entry »


[ANN] presenting XQuery - GSD language at MarkLogic User Group London Nov 24

Posted 11/9/2011 12:53:11 AM

In the following video, we're giving an explanation for the productivity argument: http://www.youtube.com/watch?v=NLydlE-9EyA Kind regards, William On Wed, Nov 9, 2011 at 9:43 AM, William Candillon <http://x-query.com/mailman/listinfo/talk> wrote: > Hello James, > > It's not our c . . . Read full entry »


[ANN] presenting XQuery - GSD language at MarkLogic User Group London Nov 24

Posted 11/9/2011 12:43:42 AM

Hello James, It's not our collective imagination. XQuery is making us more productive programmers. We even have serious evidence to back this up. When talking to people outside the xquery community, they buy immediately the productivity argument. But are they gonna learn a new programming languag . . . Read full entry »


[ANN] presenting XQuery - GSD language at MarkLogic User Group London Nov 24

Posted 11/9/2011 12:15:41 AM

I will be presenting a more technical version of my recent presentation (at Arhus GOTOCON) about XQuery. http://www.meetup.com/muglondon/events/40390792/ I used this talk to try and provide some basis to the various adhoc comments I have received over the years about XQuery productivity ... yes w . . . Read full entry »


How to invert the hierarchy of an xml?

Posted 11/3/2011 3:39:15 PM

On 03/11/2011 03:38, Joe Wicentowski wrote: > let $reordered := <Library>{ > for $article in $library/Article > group $article as $journal-articles by $article/Journal as $journal It's rather regrettable that (a) XQuery 1.0 provides no grouping capability (b) The above syntax do . . . Read full entry »


How to invert the hierarchy of an xml?

Posted 11/3/2011 11:45:23 AM

-----Oorspronkelijk bericht----- Van: http://x-query.com/mailman/listinfo/talk [mailto:http://x-query.com/mailman/listinfo/talk] Namens Peng Yu Verzonden: donderdag 3 november 2011 6:00 Aan: Joe Wicentowski; http://x-query.com/mailman/listinfo/talk Onderwerp: Re: How to invert the hierarchy of an . . . Read full entry »


How to invert the hierarchy of an xml?

Posted 11/2/2011 8:59:32 PM

On Wed, Nov 2, 2011 at 10:38 PM, Joe Wicentowski <http://x-query.com/mailman/listinfo/talk> wrote: > Hi Peng, > > Welcome to the XQuery talk mailing list. > >> Suppose that I have an xml where each Article has it is own Journals. >> But since the Journals may be the sa . . . Read full entry »


How to invert the hierarchy of an xml?

Posted 11/2/2011 7:38:00 PM

Hi Peng, Welcome to the XQuery talk mailing list. > Suppose that I have an xml where each Article has it is own Journals. > But since the Journals may be the same. I'd like to group the articles > by Journals. I'm still learning XQuery. Could anybody show me how to > do the conversion . . . Read full entry »


How to invert the hierarchy of an xml?

Posted 11/2/2011 5:14:16 PM

Hi, Suppose that I have an xml where each Article has it is own Journals. But since the Journals may be the same. I'd like to group the articles by Journals. I'm still learning XQuery. Could anybody show me how to do the conversion using XQuery? <Library> <Article> <Title> . . . Read full entry »


[ANN] Qizx 4.3 is available

Posted 11/2/2011 3:20:55 AM

Qizx is an embeddable, high-speed, native XML indexing and query engine written in Java(TM), with the querying and processing capabilities of a fully fledged XML Query implementation. --------------------------------------------- Version 4.3 introduces new features mainly centered around Qizx Ser . . . Read full entry »


XML data sets with (known) data quality problems

Posted 10/31/2011 6:56:10 AM

Dear all, We´ve been implementing a library of data cleaning functions in XQuery. The most recent version has been distributed with the last release of the Zorba Query processor. In order to test exhaustively this library, we need to have XML data sets that have data quality problems. By . . . Read full entry »


US CIO and XML (#futurefirst)

Posted 10/26/2011 8:47:08 AM

The Open Data initiative put the spotlight on government transparency and we saw the creation of the data.gov and data.gov.uk portals. Sir Tim Berners-Lee and Professor Nigel Shadbolt were instrumental in creation of the UK portal. On this side of the pond, Professor James Hendler and the . . . Read full entry »


[SPAM] [xml-dev] US CIO and XML (#futurefirst)

Posted 10/26/2011 4:47:19 AM

I have read several accounts that he is very keen on XML and Drupal. Both currently have become an integral part of many government projects. One example is www.data.gov is a Drupal application and you will find many XML datasets on this site. Betty > Wasn't there, but it seems that the US C . . . Read full entry »


US CIO and XML (#futurefirst)

Posted 10/25/2011 10:02:45 PM

Wasn't there, but it seems that the US CIO was all about XML in open data government tonight. http://transition.churchillclub.org/eventDetail.jsp?EVT_ID=924 #futurefirst Wonder is anyone else heard something more concrete about the topic. Best Dana . . . Read full entry »


[xml-dev] JSON query processing

Posted 10/16/2011 9:40:17 AM

Alex Says -------- I would think that JSON would generally be used to represent data pulled out of a relational database to a website in which case the structure of this data would be fairly trivial to move between JSON or XML as suggested. Which of these examples below are likely candidates for . . . Read full entry »


[xml-dev] JSON query processing

Posted 10/16/2011 6:08:14 AM

I suggest you are contradicting yourself. If it only 'takes 5 minutes' to write such a program in the general case then why are there so many IT careers based on it ? Please send me your 5 minute program that solves this problem in the general case. Or better yet, publish it so the world can use i . . . Read full entry »


[xml-dev] JSON query processing

Posted 10/15/2011 4:12:10 PM

If your app wants JSON and your server sends XML and it works then there is no problem Sent from my iPhone On Oct 15, 2011, at 6:11 PM, http://x-query.com/mailman/listinfo/talk wrote: > > And that is a problem why? Is JSON not a registerable type? Isn't the idea still be conservative w . . . Read full entry »


[xml-dev] JSON query processing

Posted 10/15/2011 11:51:36 AM

Where they are not happy siblings today Is when a consumer demands format A and producer has format B Sent from my iPhone On Oct 15, 2011, at 2:39 PM, http://x-query.com/mailman/listinfo/talk wrote: > > Maybe I've missed some dustups, but don't they coexist peacefully now? Harmony is t . . . Read full entry »


Need for schemas Re: JSON query processing

Posted 10/15/2011 11:28:04 AM

On Oct 15, 2011, at 10:58 AM, Liam R E Quin wrote: > On Sat, 2011-10-15 at 10:34 -0700, Daniela Florescu wrote: > >> Both RDF and JSON suffer from the fact that there is no general and >> standard way to describe metadata in a contract >> -- and that's why they'll probably . . . Read full entry »


Need for schemas Re: JSON query processing

Posted 10/15/2011 10:58:39 AM

On Sat, 2011-10-15 at 10:34 -0700, Daniela Florescu wrote: > Both RDF and JSON suffer from the fact that there is no general and > standard way to describe metadata in a contract > -- and that's why they'll probably NOT be used in places where a > contract between the communicating . . . Read full entry »


JSON query processing

Posted 10/15/2011 10:22:14 AM

On 15/10/2011 16:10, Adam Retter wrote: >>>> Last I looked (which was a while ago), they did not have >>>> any standard means of specification (like XSD), so that needs to be >>>> fixed. >>> Why, you dont need schemata in JavaScript for you object notati . . . Read full entry »


JSON query processing

Posted 10/15/2011 8:10:39 AM

>> > Last I looked (which was a while ago), they did not have >> > any standard means of specification (like XSD), so that needs to be >> > fixed. >> >> Why, you dont need schemata in JavaScript for you object notation, the >> JSON itself is both the def . . . Read full entry »


JSON query processing

Posted 10/15/2011 6:55:22 AM

About your P.S.: funny you mention it. There will be a discussion during lunch at XMLAmsterdam conference about that very topic! :-) -----Oorspronkelijk bericht----- Van: http://x-query.com/mailman/listinfo/talk [mailto:http://x-query.com/mailman/listinfo/talk] Namens Daniela Florescu Verzonden: . . . Read full entry »


JSON query processing

Posted 10/15/2011 5:25:33 AM

I discussed mixed content briefly but alas not to mine or anyone's satisfaction. JSON simply doesn't model it cleanly so any translation of XML mixed content to JSON which preserves the structure is inherently ugly. But OTOH the 'natural' way for JSON to do mixed content does map well to the event . . . Read full entry »


JSON query processing

Posted 10/15/2011 3:08:37 AM

> P.S. the first one who has the courage to say that XML and JSON should > co-exist > non only peacefully, but in close harmony, has all my respects. (I think so, >  but I didn't dare to  say it publicly  :-) > > P.S. 2  If you think the opposite, that JSON  . . . Read full entry »


JSON query processing

Posted 10/15/2011 2:52:57 AM

> While my presentation balisage this year was on this topic exactly - how to > get JSON and XML to be nice friends ... > > http://www.balisage.net/Proceedings/vol7/html/Lee01/BalisageVol7-Lee01.html Very interesting! Did you address the issue of XML with mixed content typically found . . . Read full entry »


JSON query processing

Posted 10/15/2011 2:50:47 AM

> I will say it. I think JSON is a nice syntax and can be more compact and > readable than XML. I disagree on the readable part! For example, if you have a large amount or JSON and a large amount of XML and neither have been formatted, in the worst case all your JSON or XML its all on one l . . . Read full entry »


[xml-dev] JSON query processing

Posted 10/14/2011 10:05:50 PM

On Fri, 2011-10-14 at 14:32 -0700, Daniela Florescu wrote: > Dear XML friends, > > if, like me, find XML really useful, but think that for certain (data- > oriented) applications it's an overkill, > and JSON would be way more appropriate, please join the newly created > group. . . . Read full entry »


JSON query processing

Posted 10/14/2011 2:32:53 PM

Dear XML friends, if, like me, find XML really useful, but think that for certain (data- oriented) applications it's an overkill, and JSON would be way more appropriate, please join the newly created group. http://www.linkedin.com/groups/JSON-Query-Processing-4130918?gid=4130918&goback=%2E . . . Read full entry »


[ANN] BaseX 7.0

Posted 10/14/2011 12:45:56 PM

Dear all, thanks everyone for your support! We are more than excited to announce BaseX 7.0, the best version we have released so far. Once more, it includes quite a bunch of new features: STORAGE: Files of any data type can now be stored in BaseX in their raw representation. This means that BaseX . . . Read full entry »


PhD's ... a happy ending (I hope)

Posted 10/13/2011 10:40:47 PM

On Oct 13, 2011, at 8:15 PM, Ken North wrote: >> Matt Might is a good example of a Ph.D. who has a long term >> commitment to both >> writing great code and to producing Ph.D.s that write great code. > > My nominee: Dr. William Cohen, +1 for that choice. Dana . . . Read full entry »


PhD's ... a happy ending (I hope)

Posted 10/13/2011 8:15:41 PM

>Matt Might is a good example of a Ph.D. who has a long term commitment to both >writing great code and to producing Ph.D.s that write great code. My nominee: Dr. William Cohen, who wrote the WHIRL search engine when he was at AT&T. He now teaches at Carnegie Mellon University. Here's . . . Read full entry »


OT: can't stop laughing ;-)))

Posted 10/13/2011 5:04:50 PM

> Every time I stumble over this > http://www.youtube.com/watch?v=ql2TLTsilo8 > This interview reminded of the finish line interview in 1980 at the Boston Marathon with an infamous imposter named Rosie Ruiz. She jumped aboard a subway to ride several miles. The she hopped off . . . Read full entry »


can't stop laughing ;-)))

Posted 10/13/2011 4:28:45 PM

Every time I stumble over this http://www.youtube.com/watch?v=ql2TLTsilo8 (while I am looking for serious XQuery ones, obviously...) I find it way more funny then other ones !! Dana . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 12:15:17 PM

At 2011-10-13 11:42 -0700, Ken North wrote: > >> In the '50's, computer science did not exist officially at the > >>science-intensive institution of MIT > >Although the ACM was founded in 1947, the first student chapter wasn't formed >until 1960. > >I once took an a . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 11:49:20 AM

> His descriptions of that era sounded as though programmers were members of a > small select group or club. He knew a 'member' in El Paso, a few in Boston and > D.C. and so on. It sounded like there were so few that he knew most people in > the US who were programming. T . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 11:42:55 AM

>> In the '50's, computer science did not exist officially at the >>science-intensive institution of MIT Although the ACM was founded in 1947, the first student chapter wasn't formed until 1960. I once took an assembly language programming class that was taught by som . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 11:23:38 AM

> I would never disagree. I am just disagreeing with David who seems to > be at the position that academia is useless and PhDs are unable to do > anything useful (he really seems to hate PhD people - it seems to be a > personal thing, so no discussion needed). > -------------- > & . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 11:00:42 AM

On 13 October 2011 17:36, Daniela Florescu <http://x-query.com/mailman/listinfo/talk> wrote: > > On Oct 12, 2011, at 12:35 PM, Adam Retter wrote: > >>>> 5. NoSQL conferences. Unfortunately, there are two problems. First, >>>> NoSQL is >>>> still no . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 9:36:14 AM

On Oct 12, 2011, at 12:35 PM, Adam Retter wrote: >>> 5. NoSQL conferences. Unfortunately, there are two problems. >>> First, NoSQL is >>> still not accepted in academic conferences >>> -- they have the same problem as XML itself. And second, they try >&g . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 9:30:52 AM

> Markus I would never disagree. I am just disagreeing with David who seems to be at the position that academia is useless and PhDs are unable to do anything useful (he really seems to hate PhD people - it seems to be a personal thing, so no discussion needed). -------------- That's not my opi . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 9:17:28 AM

I would never disagree. I am just disagreeing with David who seems to be at the position that academia is useless and PhDs are unable to do anything useful (he really seems to hate PhD people - it seems to be a personal thing, so no discussion needed). Markus On Thu, Oct 13, 2011 at 6:07 PM, Shan . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 3:50:45 AM

Daniela ... I think your onto something. I think I've seen a different sample set then you. The industry's I've typically been in are not 'exciting' for a person who has focused on PhD level topics, they are more pragmatic industries (Healthcare, Manufacturing, Mobile, Publishing, Advertising). . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 2:39:37 AM

On 13/10/2011 10:19, John Snelson wrote: > Like Ron says, I would point out that XML is still very much alive and > thriving in areas where it's indispensable for understanding > unstructured data[1]. This is possibly a more mundane, "solved" > problem from an academic pers . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 2:34:09 AM

>>> Few  of the cs phds  I've interviewed could do ANY of the tasks you >>> quote.  None had to pass an exam in making programs that actually worked That reminds me of the Sun Java 1.4 cert exam... that focused on cs style topics such as bit shifting, whereas 1.5 d . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 2:19:20 AM

Like Ron says, I would point out that XML is still very much alive and thriving in areas where it's indispensable for understanding unstructured data[1]. This is possibly a more mundane, "solved" problem from an academic perspective - but it doesn't mean that there's not massive busin . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 1:01:00 AM

On 13/10/2011 00:51, David Lee wrote: > Perhaps the us and uk differ substantially in academic philosophy > > Yes, perhaps. Certainly the UK and Germany differ greatly. In Germany, from what I've seen, you need to have academic qualifications to be a manager in a technology company; when . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/13/2011 12:17:50 AM

> > This is really interesting. I'm very curious as to why people think XML is >dead. Ron, Keep in mind Dana's environment. The culture of Silicon Valley is heavily influenced by venture capital and people who are looking for The Next Big Thing and its investment potential. If you . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 10:31:08 PM

This is really interesting. I'm very curious as to why people think XML is dead. All the job descriptions that come across my desk ask for XML. Entering XML as a keyword in Monster.com returns "1000+" jobs, which appears to be the highest number they'll return. Dice.com says 10803 of . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 10:11:02 PM

> > Few of the cs phds I've interviewed could do ANY of the tasks you > quote. None had to pass an exam in making programs that actually > worked David, I am not sure if this is the problem of the Phds, or merely the sample that came to you for interview. I had to pass such a . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 5:59:58 PM

In fact you miss my point David. Algorithmics and Applied Mathematics is not what I was referring to. I refer rather to the discipline associated with the task of Software Engineering, Mathematical Methods (rigorous and systematic) rather than Mathematical insights. The use of Languages and Spec . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 5:46:08 PM

Good luck with that. I'm all for education, especially mathematics (although I actually favor Asttro physicist over Physicists over Mathematicians in terms of accepting reality over theory ...) I remember 25+ years ago when I worked a at a CADCAM company we hired a fresh grade with an MA in Math. . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 5:16:54 PM

I agree with Michael. Software Engineering is in a deplorable state for these reasons. It has a real impact in the economy because maintenance costs and failure rates are unreasonably high. It compensates by providing work for lower skilled workers prepared to work hard. It's tolerated by some ( . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 5:08:50 PM

On Wed, 2011-10-12 at 12:33 -0700, Daniela Florescu wrote: > David, > > On Oct 12, 2011, at 11:51 AM, David Lee wrote: > > > Question. > > 1) What are "the other problems" with Balisage ? > > I love Balisage. But: > > - Too narrowly focused I would . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 4:51:09 PM

Perhaps the us and uk differ substantially in academic philosophy Sent from my iPad (excuse the terseness) David A Lee http://x-query.com/mailman/listinfo/talk On Oct 12, 2011, at 7:22 PM, Michael Kay <http://x-query.com/mailman/listinfo/talk> wrote: > > >>> >>> . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 4:22:58 PM

>> >> Few of the cs phds I've interviewed could do ANY of the tasks you quote. None had to pass an exam in making programs that actually worked >> >> I have to say my experience is the opposite. I've worked with a great many software developers who were good at making t . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 4:01:05 PM

While I'm already dead meat .., I'll bury myself The entire point of a phd is to narrow your experties to the point you can become an expert in such a narrow field as to be able to contribute something new to human knowledge. This is valuable to society. My father was a world renowned phd in civi . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 3:34:42 PM

My architect had to pass a state exam. Few of the cs phds I've interviewed could do ANY of the tasks you quote. None had to pass an exam in making programs that actually worked But many brilliant folks without even a bs could do so blindfolded. Let us all toast to the day academia return . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 3:15:41 PM

> > If they weren't any software academics, there would be no software > professors, > and if there are no software professors, there will be no software > students. If there are no students, > there is no critical mass. > > Etc. Etc. Etc. The vicious circle. > -- . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 1:54:43 PM

But where to publish it? Sent from my iPhone On Oct 12, 2011, at 4:28 PM, Eric Bloch <http://x-query.com/mailman/listinfo/talk> wrote: > >> >> >>> In many (but not all) cases I found a direct disconnect between PhD style> education in computer science and bet . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 1:28:16 PM

> > >> In many (but not all) cases I found a direct disconnect between PhD style> education in computer science and between being able to actually write good> software. > Funny that this topic arises: I had a discussion with a PhD student > today and we both somehow agreed . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 1:26:15 PM

Sadly, I agree -- when hiring, I've always viewed a PhD as a strike against somebody that needs to be proven otherwise. The problem isn't one of intelligence or training, but of culture. In the academic world, you get kudos for being clever or new. In the software world, you get kudos for solvi . . . Read full entry »


[xml-dev] Re: [ANN] Zorba 2.0: complete XQuery/XSLT processor (C++, open source, Apache license)

Posted 10/12/2011 1:22:04 PM

Well, actually there should be some more. You have for certain some parser from Altova, though I don't know the coverage. Also, MarkLogic Server have release XSLT 2.0 support since 4.2. And Google also returns some references to Oracle. Saxon has a few limitations in the HE version, but to my know . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 1:14:51 PM

Hello David, > In many (but not all) cases I found a direct disconnect between PhD style> education in computer science and between being able to actually write good> software. Funny that this topic arises: I had a discussion with a PhD student today and we both somehow agreed, that the q . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 12:54:14 PM

---- David > ... which is probably why I dont look to PhD's when I'm looking for > a good > software person. ---- Daniela Well, that's a surprising view for me. ( I don't REQUIRE a Phd when I look for a good developer, but nor do I disqualify people because they have one. I am taking . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 12:35:07 PM

>> 5. NoSQL conferences. Unfortunately, there are two problems. First, NoSQL is >> still not accepted in academic conferences >> -- they have the same problem as XML itself. And second, they try to stay >> away from XML like crazy ("angle brackets, not cool,man, not coo . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 12:33:42 PM

David, On Oct 12, 2011, at 11:51 AM, David Lee wrote: > Question. > 1) What are "the other problems" with Balisage ? I love Balisage. But: - Too narrowly focused I would think. ( Looks like an old family reunion -- which is indeed pleasant :-) ( As an example, few people with da . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 12:16:36 PM

> > But the problem with XML Prague is that it doesn't have (yet) the > academic > "cloud". Students don't get PhDs because they published there, and > professors don't get > tenure. (whether the world is well organized and why doesn't happen is > a completely > . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 12:15:49 PM

We used to have the XML Symposium workshop but VLDB did not find room for it this year. Actually good research on XML/XQuery still has a chance for getting into SIGMOD/VLDB/ICDE. For example we are going to have a paper at ICDE on XML processing. But it is harder. If the academic environment is . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 12:09:31 PM

Thanks James. Looking forward to more ideas: Actually, to my list I forgot to add IR conferences. Yet another bunch that I know nothing about, but I am interested to hear more. Best regards Dana On Oct 12, 2011, at 12:03 PM, James Fuller wrote: > On Wed, Oct 12, 2011 at 8:03 PM, Daniela . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 12:03:31 PM

On Wed, Oct 12, 2011 at 8:03 PM, Daniela Florescu <http://x-query.com/mailman/listinfo/talk> wrote: > Dear all, > > I am having a problem right now, and I don't know how to solve it. > > We had over the summer several outstanding students, who did > really great research in . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 11:51:35 AM

Question. 1) What are "the other problems" with Balisage ? 2) What qualifies as "academic cloud" (clout?). Way back when I was in collage Software of any kind wasn't considered "academic" ... it was considered 'beneath the level' of any true academic ... which is prob . . . Read full entry »


XML/XQuery academic conferences ?

Posted 10/12/2011 11:03:44 AM

Dear all, I am having a problem right now, and I don't know how to solve it. We had over the summer several outstanding students, who did really great research in processing XML and XQuery. Here comes the question. Where can we publish the result of this research !? 1. I know that there is X . . . Read full entry »


28msec is going Mongo(DB)

Posted 10/7/2011 2:32:08 AM

Hello folks, 28msec is pleased to announce the 1.4.0 release of Sausalito, code name "Rancho Cucamonga". The major feature of this release is the integration of MongoDB as our storage in the cloud. Find more information at http://www.28msec.com/html/entry/2011/10/06/Sausalito_14 Best, . . . Read full entry »


JSON to XML mapping by John Snelson

Posted 10/6/2011 11:57:52 AM

Sure - I've recently moved it off my old blog on the computer under my stairs, and into my more active posterous based blog, here: http://john.snelson.org.uk/parsing-json-into-xquery If you're interested, the JSON parser in XQilla that uses this mapping is now implemented in pure XQuery 3.0: htt . . . Read full entry »


JSON to XML mapping by John Snelson

Posted 10/6/2011 11:39:17 AM

Dear John, your XML to JSON mapping proposal used to be at this link bellow. http://snelson.org.uk/archives/2008/02/parsing_json_in.php#more The link is not active anymore, and Google seems to fail me... Could you please point us to the new location ? Thanks Dana . . . Read full entry »


[ANN] xquerydoc - help testing

Posted 10/4/2011 7:45:21 AM

If you are on Mac or ( u | li )/nux Can I ask that you test xquerydoc ? Have updated to use latest calabash, added an install script and generally made things work (previously versions were broken). I) download xquerydoc (or git clone) from https://github.com/xquery/xquerydoc II) cd to top level . . . Read full entry »


[xml-dev] Re: JDBC in an XQuery world (?)

Posted 10/2/2011 7:15:40 PM

I agree with Peter here: SQL/XML is already a fairly complete solution. For those of you not familiar with SQL/XML, it does a couple of things: 1) It defines a set of functions that allow you to return relational data as XML. This is the relational => XML mapping. 2) It defines a primitive X . . . Read full entry »


[xml-dev] Re: JDBC in an XQuery world (?)

Posted 10/2/2011 12:24:14 PM

On Sun, 2011-10-02 at 14:42 -0400, John Cowan wrote: > Liam R E Quin scripsit: > > > > What if I have (or want) an XQuery database > > > (or would you call that a XML database with an XQuery interface ...?) > > > > SQL/XML I think describes enough of a mapping . . . Read full entry »


[xml-dev] Re: JDBC in an XQuery world (?)

Posted 10/2/2011 12:20:24 PM

On 02 Oct 2011, at 20:42, John Cowan wrote: > Liam R E Quin scripsit: > >>> What if I have (or want) an XQuery database >>> (or would you call that a XML database with an XQuery interface ...?) >> >> SQL/XML I think describes enough of a mapping, no? > & . . . Read full entry »


JDBC in an XQuery world (?)

Posted 10/2/2011 12:10:34 PM

How would one go about starting a W3C community group >? > I've been thinking .. Suppose we had a JDBC driver that could talk 'native' > to an XQuery backend DB ? > > 1) What problems would it solve ? > > 2) What would it look like ? I wonder if that's a good topic for a . . . Read full entry »


[xml-dev] Re: JDBC in an XQuery world (?)

Posted 10/2/2011 11:54:46 AM

Syas Liam: I don't think so. SQL/XML extends SQL to add XML as a new kind of primitive SQL data type, like strings, numbers, and dates. What's needed here is a way to do ordinary SQL operations over an XDM-based database. -------------- Exactly. SQL/XML is the inverse problem as what I'm discus . . . Read full entry »


JDBC in an XQuery world (?)

Posted 10/2/2011 11:25:08 AM

On Sat, 2011-10-01 at 19:57 -0400, David Lee wrote: > [...] > What if I have (or want) an XQuery database > (or would you call that a XML database with an XQuery interface ...?) SQL/XML I think describes enough of a mapping, no? > I've been thinking .. Suppose we had a JDBC driver . . . Read full entry »


[xml-dev] JDBC in an XQuery world (?)

Posted 10/2/2011 9:34:23 AM

This is one way of looking at it and perhaps the most fruitful. But I disagree with the premise that jdbc MUST use SQL as the query language. The difference between vendor's "SQL" is so vast they might as well be different languages. So why not allow pure xquery as the JDBC query strin . . . Read full entry »


[ANN] xquerydoc

Posted 10/2/2011 8:43:59 AM

Folks, Can I ask that you test xquerydoc ? Doing some adjustments to it today and could do with feedback I) download xquerydoc (or git clone) from https://github.com/xquery/xquerydoc II) cd to top level xquerydoc directory III) run from terminal make install IV) run from terminal xquerydoc s . . . Read full entry »


[ANN] xquerydoc

Posted 9/27/2011 2:50:25 AM

On Mon, Sep 26, 2011 at 10:58 PM, Florent Georges <http://x-query.com/mailman/listinfo/talk> wrote: > James Fuller wrote: > >   Hi Jim, John, > >> John Snelson and I recently created xquerydoc >> https://github.com/xquery/xquerydoc >> will parse xqdoc commen . . . Read full entry »


[ANN] xquerydoc

Posted 9/26/2011 1:58:18 PM

James Fuller wrote:   Hi Jim, John, > John Snelson and I recently created xquerydoc > https://github.com/xquery/xquerydoc > will parse xqdoc comments from your XQuery using XQuery ;)   Glad to hear that, thanks to both of you!   Is there any place to report issues? (I co . . . Read full entry »


XQuery 2011 Survey

Posted 9/21/2011 5:44:35 AM

On Wed, Sep 21, 2011 at 11:42 AM, Andrew Welch <http://x-query.com/mailman/listinfo/talk> wrote: >> In prep for talk at GOTO Arhas 2011, I have created a poll as part of >> an analysis of the productivity of the XQuery programming language. >> >> http://jimfuller2011.p . . . Read full entry »


XQuery 2011 Survey

Posted 9/21/2011 2:42:41 AM

> In prep for talk at GOTO Arhas 2011, I have created a poll as part of > an analysis of the productivity of the XQuery programming language. > > http://jimfuller2011.polldaddy.com/s/xquery2011 > > Please consider taking the time to fill it out and forward it to > anyone you th . . . Read full entry »


XQuery 2011 Survey

Posted 9/20/2011 4:09:59 PM

Hello, In prep for talk at GOTO Arhas 2011, I have created a poll as part of an analysis of the productivity of the XQuery programming language. http://jimfuller2011.polldaddy.com/s/xquery2011 Please consider taking the time to fill it out and forward it to anyone you think could contribute (neg . . . Read full entry »


XQuery 2011 Survey

Posted 9/20/2011 4:00:41 PM

Hello, In prep for talk at GOTO Arhas 2011, I have created a poll as part of an analysis of the productivity of the XQuery programming language. http://jimfuller2011.polldaddy.com/s/xquery2011 Please consider taking the time to fill it out and forward it to anyone you think could contribute (neg . . . Read full entry »


[ANN] XML Amsterdam 2011 conference

Posted 9/20/2011 6:17:27 AM

XML Amsterdam 2011 conference is open for registration! The conference is meant for developers, markup geeks, information managers, and anyone else with interest in XML. This year's focus is on front-end, back-end, and open standards, with special attention to the technical side of things. The pr . . . Read full entry »


[ANN] xquerydoc

Posted 9/19/2011 5:49:37 AM

On Sun, Sep 18, 2011 at 10:57 PM, David Lee <http://x-query.com/mailman/listinfo/talk> wrote: > What kind of help do you need for windows platform? batch file for kicking off xproc (commandline version) for starts .... J > > Sent from my iPhone > > On Sep 18, 2011, at 4:16 . . . Read full entry »


[ANN] xquerydoc

Posted 9/18/2011 1:57:39 PM

What kind of help do you need for windows platform? Sent from my iPhone On Sep 18, 2011, at 4:16 PM, James Fuller <http://x-query.com/mailman/listinfo/talk> wrote: > > John Snelson and I recently created xquerydoc > > https://github.com/xquery/xquerydoc > > will parse . . . Read full entry »


[ANN] xquerydoc

Posted 9/18/2011 1:16:18 PM

John Snelson and I recently created xquerydoc https://github.com/xquery/xquerydoc will parse xqdoc comments from your XQuery using XQuery ;) there is a commandline version (which uses XML Calabash because its fun) but you can directly invoke from your own xquery with nothng else. its early days . . . Read full entry »


[announce] release xquerydocs

Posted 9/18/2011 12:57:20 PM

John Snelson and I recently created xquerydoc https://github.com/xquery/xquerydoc will parse xqdoc comments from your XQuery using XQuery ;) there is a commandline version (which uses XML Calabash because its fun) but you can directly invoke from your own xquery with nothng else. its early days . . . Read full entry »


Need to generate an empty instance from an XML Schema

Posted 8/31/2011 1:38:35 PM

Ah my mistake, I did know that Oxygen did this, and I presumptuously assumed that it was using Trang internally , obviously I got some wires crossed in my brain - as you are correct, it appears that trang does not offer this functionality. If oXygen is not available I do have some Java code which . . . Read full entry »


Need to generate an empty instance from an XML Schema

Posted 8/31/2011 12:27:52 PM

Hi Loren, Trang also does not offer a set of XML documents as output... What you need is an XML Schema instance generator - we have this support in oXygen: short video demo http://www.oxygenxml.com/demo/Generate_Sample_XML_Files.html user guide related topics http://www.oxygenxml.com/doc/ug-dev . . . Read full entry »


Need to generate an empty instance from an XML Schema

Posted 8/31/2011 9:36:41 AM

If you don't mind some java, trang can do this for you... On Aug 31, 2011 5:33 PM, "Loren Cahlander" <http://x-query.com/mailman/listinfo/talk> wrote: > Hello folks, > > Has anyone developed a transform to take an XML Schema and create an XML document with empty elements an . . . Read full entry »


Base Xq and extend base to have subclass xqs

Posted 8/27/2011 12:47:02 AM

On 26 August 2011 19:54, sudheshna iyer <http://x-query.com/mailman/listinfo/talk> wrote: > I have 200  elements in  one xsd. > I have to use this xsd to create 6 xquery maps. All of these xqs have 100 > elements in common. > I want to create one xquery with 100 elements . . . Read full entry »


Base Xq and extend base to have subclass xqs

Posted 8/26/2011 2:14:26 PM

The short answer is that XQuery does not support subclassing. One possible workaround is to create functions that do your mapping and use these in your "extended" queries. Depending on what you want to do, this may or may not work easily (or at all). For more ideas, see the thread, &q . . . Read full entry »


looking for XQuery code to detect mobile devices and type of mobile device

Posted 8/26/2011 9:25:15 AM

I can. I was wondering if someone had already written something and made it available. On Aug 26, 2011, at 11:11 AM, Adam Retter wrote: > Can you not get this info from the http headers? > > On 26 August 2011 17:55, Loren Cahlander <http://x-query.com/mailman/listinfo/talk> wrote . . . Read full entry »


looking for XQuery code to detect mobile devices and type of mobile device

Posted 8/26/2011 9:11:39 AM

Can you not get this info from the http headers? On 26 August 2011 17:55, Loren Cahlander <http://x-query.com/mailman/listinfo/talk> wrote: > > Has anyone out there already written a function module to detect a mobile device and the type of mobile device? > > I am planning on mak . . . Read full entry »


looking for XQuery code to detect mobile devices and type of mobile device

Posted 8/26/2011 8:58:55 AM

Hello Loren, There is an xquery app that demo such scenario: http://balisage.my28msec.com/index.html. I hope this helps. Best, William On Fri, Aug 26, 2011 at 5:55 PM, Loren Cahlander <http://x-query.com/mailman/listinfo/talk> wrote: > > Has anyone out there already written a funct . . . Read full entry »


looking for XQuery code to detect mobile devices and type of mobile device

Posted 8/26/2011 8:55:54 AM

Has anyone out there already written a function module to detect a mobile device and the type of mobile device? I am planning on making my site mobile aware so that it can make the best use of the screen resolution and orientation. Has anyone already written such code? Thanks, Loren . . . Read full entry »


Xquery help to add element to loop

Posted 8/26/2011 6:44:22 AM

I want to prepare an element of complex type and add it to the list of elements. How can I achieve this in xquery? I am using oepe..   My input.xml needs to be transformed into output.xml.  Please note that values of <HeaderLevel> element  should be part of the list <Address . . . Read full entry »


Referencing a document from within a query

Posted 8/22/2011 5:48:47 AM

> Is it possible to perform a XQuery that references nodes that reside in a > document which contains the query which is being processed? > Here is an example: > I need to select the nodes named "title" which have an attribute "lang" > equal to value of attribute . . . Read full entry »


XQuery Meetup London (17th Sept)

Posted 8/18/2011 10:07:43 AM

The second London XQuery Meetup is now confirmed for the 17th September, the details can be found here - http://xquery.pbworks.com/w/page/42445099/London%20Meetup%202 Please feel free to come along, and if you have a spare moment then promote it by Tweet'ing or whatever your preferred communicatio . . . Read full entry »


Get the context item form function

Posted 8/16/2011 3:59:00 AM

> I have a simple XQuery declaring a function. The declared function is called > from the body without any parameters as follows: > > -- start snippet -- > declare function local:main() as element()*{ >     let $items := //item >     return $items . . . Read full entry »


Get the context item form function

Posted 8/16/2011 3:57:37 AM

The context item is not available inside a function - you'll have to pass it in explicitly as an argument: declare function local:main($context) as element()*{ let $items := $context//item return $items }; <result>{ local:main(.) }</result> John On 16/08/11 11:41, Stefan . . . Read full entry »


Java throwing java.net.SocketException when parsing xslt file with Saxon?

Posted 8/15/2011 1:58:29 PM

I can't see why you're raising an XSLT question on this list - especially one that is clearly product-specific. You've asked the same question on the Saxon help list, and I shall answer it there. Michael Kay Saxonica On 15/08/2011 20:17, Scott Derrick wrote: > Ubuntu 10.4 AMD64 > Java 1 . . . Read full entry »


Java throwing java.net.SocketException when parsing xslt file with Saxon?

Posted 8/15/2011 12:42:58 PM

On 15 August 2011 20:17, Scott Derrick <http://x-query.com/mailman/listinfo/talk> wrote: > Ubuntu 10.4  AMD64 > Java 1.6.0_26 > SaxonHE-9.3.0.5 > > I am using a very simple script > > <?xml version="1.0" encoding="UTF-8"?> > <xsl:style . . . Read full entry »


Java throwing java.net.SocketException when parsing xslt file with Saxon?

Posted 8/15/2011 12:21:58 PM

Ubuntu 10.4 AMD64 Java 1.6.0_26 SaxonHE-9.3.0.5 I am using a very simple script <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:html="http://www.w3.org/1999/html" version= . . . Read full entry »


Java throwing java.net.SocketException when parsing xslt file with Saxon?

Posted 8/15/2011 12:17:43 PM

Ubuntu 10.4 AMD64 Java 1.6.0_26 SaxonHE-9.3.0.5 I am using a very simple script <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:html="http://www.w3.org/1999/html" version= . . . Read full entry »


Extend and override

Posted 8/10/2011 1:01:14 PM

Great question about Lisp. I would offer to suggest besides comparing Apples to Airplanes ... that until XQuery gets nested sequences the distance is far by any metric. ---------------------------------------- David A. Lee http://x-query.com/mailman/listinfo/talk http://www.xmlsh.org -----Orig . . . Read full entry »



Create XML Schema from XML Content

Create XML Schema from XML Content by auto-generating an XML Schema with Stylus Studio.

Writing Custom XML Adapters

There are cases where the input format is too complicated for Convert to XML, or both reading and writing of the file format is needed. This section will take you through the process of writing a medium-sized adapter in Java.

Accessing Relational Databases as XML with Stylus Studio's File Explorer

This demonstration is the first part of our series on working with relational and XML data, covering how to use Stylus Studio's File Explorer to connect to and query relational database tables as XML.

XSL and XSLT Tools

XSLT tools in Stylus Studio let you easily edit, debug, design and profile XSLT stylesheets using a powerful and intuitive graphical user interface.

Stylus Most Wanted

PURCHASE STYLUS STUDIO ONLINE TODAY!!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Learn Stylus Studio in 6 Minutes

Can six minutes change your life? A new action-packed online video demonstration covers how to use Stylus Studio in just six minutes! Watch this video and change the way you develop XML applications forever!

Why Pay More for XML Tools?

With Stylus Studio® X14 XML Enterprise Suite, you get the most comprehensive XML tool suite at one incredibly low price. Value: it's just one of many reasons why smart XML developers are choosing Stylus Studio!

 
Free Stylus Studio XML Training:
W3C Member