Monday, May 28, 2007

XQUERY why with the fortran??

i have no idea why people love this language. i'm guessing it came from people liking SQL and Scheme. with a bit of java thown in just for kicks. i'm starting to hate how the internet documentation on XQuery is rather lacking in some parts, such as how do i do dynamic tags??? also how do i change what the elements have stored when doing more than 2 querys one after the other??

4 comments:

Anonymous said...

Hi William,

You seem to be looking for information on computed element constructors:

http://www.w3.org/TR/xquery/#id-computedConstructors

www.datadirect.com/developer/xquery/xquery_tutorial/creating_nodes/index.ssp

(Just Google for "computed element constructor XQuery", and you'll see plenty more hits.)

Why do people like XQuery? There are only two widely used XML-oriented languages, XQuery and XSLT, and either of these make it *much* easier to process XML than using XML APIs with conventional languages or scripting languages - solve a few problems both ways, and compare the number of lines of code, I think you'll see.

Anonymous said...

Hi William,

You ask how to change what has been stored - I think you're asking about the XQuery Update Facility, which is currently under development. You can read about it here:

http://www.w3.org/TR/xqupdate/

William said...

thanks for the info. i've just figured it out. seems i'm over the 'hating this language' mode as it did not work and fallen into my 'i don't mind it' mode. spoke to a friend of mine and he said he could find perl syntax in xquery as well.

Anonymous said...

It's a different kind of programming, and it takes some time to get into the mindset. But it's an extremely productive language once you get over that hump.