Posted
5/8/2008 10:52:29 PM
DataServices World includes instruction by a world-class faculty, including
speakers from BEA, Blue Cross Blue Shield, DataDirect, IBM, iWay Software,
Microsoft, Morgan Stanley and Sun.
The speakers include an ACM Fellow, Distinguished Engineer and SOA Strategist at
Sun, principal architect of dat
. . . Read full entry »
Posted
5/7/2008 10:49:27 PM
Hi drkm:
Thanks!
-Mani
----- Original Message ----
From: Florent Georges <http://x-query.com/mailman/listinfo/talk>
To: http://x-query.com/mailman/listinfo/talk
Sent: Tuesday, 6 May, 2008 6:18:46 PM
Subject: Re: fetching value of an namespaced attribute
http://x-query.com/mailman/lis
. . . Read full entry »
Posted
5/6/2008 3:48:46 PM
http://x-query.com/mailman/listinfo/talk wrote:
Hi
> I wanted to fetch "1210066349529" value.
> <entry mk:crawl-timestamp-msec="1210066349529">
> </entry>
> namespace 'mk' is a problem for me.
You have to look for what URI this prefix is
. . . Read full entry »
Posted
5/6/2008 2:48:43 PM
[Announce] Dear XQuery-Talk,
Stylus Studio 2008 Release 2 is now available.The following highlights
some of the new features included in our award-winning XML tools:
* Convert New EDI Formats to XML: Stylus Studio now supports the
http://x-query.com/mailman/listinfo/talk EDI dialect. With a new h
. . . Read full entry »
Posted
5/6/2008 6:29:42 AM
Hi All,
I wanted to fetch "1210066349529" value.
<entry mk:crawl-timestamp-msec="1210066349529">
</entry>
namespace 'mk' is a problem for me.
If i remove "mk:" prefix then i am easily able to fetch using "@crawl-timestamp-msec".
Can
. . . Read full entry »
Posted
4/29/2008 1:21:09 PM
OK, I'll ask -- what 4GL do you use for business applications?
Steve
--
Steven Tolkin http://x-query.com/mailman/listinfo/talk 508-787-9006
Fidelity Investments 400 Puritan Way M3B Marlborough MA 01752
There is nothing so practical as a good theory. Comments are by me,
not Fidelity
. . . Read full entry »
Posted
4/28/2008 10:34:51 PM
>
First - Dana and others - thanks for asking the questions, listening
and bringing up advice
> I would say: wrap the relational databases with a REST API (I send
> you the SQL and the parameters, you give me back the result in XML),
> and then from
> there on use XQuery. Or
. . . Read full entry »
Posted
4/28/2008 10:07:54 PM
On 28 Apr 2008, at 14:57, John Snelson wrote:
> Peter Coppens wrote:
>>> I guess that depends on what data you have coming in and going
>>> out. A large and increasing number of applications have XML/HTML
>>> both coming in and going out. In this circumstance it
. . . Read full entry »
Posted
4/28/2008 3:30:08 PM
>
> I guess that depends on what data you have coming in and going out.
> A large and increasing number of applications have XML/HTML both
> coming in and going out. In this circumstance it makes a great deal
> of sense to write business logic in XQuery - and I've seen
>
. . . Read full entry »
Posted
4/28/2008 2:57:44 PM
Peter Coppens wrote:
>> I guess that depends on what data you have coming in and going out. A
>> large and increasing number of applications have XML/HTML both coming
>> in and going out. In this circumstance it makes a great deal of sense
>> to write business logic in XQ
. . . Read full entry »
Posted
4/28/2008 1:55:38 PM
Peter Coppens wrote:
>>
>> Store it in an XML database, and get rid of all the data conversion
>> you're doing - I think that's probably the missing key for being able
>> to use XQuery better in what you're doing.
>
> I guess (and I actually might try this one day, t
. . . Read full entry »
Posted
4/28/2008 1:32:29 PM
Peter Coppens wrote:
> Anyway, XQuery was designed
> to 'work' on the XQuery/XPath data model and I don't believe anywhere
> anytime soon your 'typical' developer/architect/designer will choose XDM
> as its main representation of information to implement (transactional
> business
. . . Read full entry »
Posted
4/28/2008 12:33:58 PM
i guess that for now www lack XQuery (maybe eXist)-based CMS (forum,
gallery, CRM) &
hosting service that provide eXist database as option and look like it
vicious circle principle -
no hosting, no developers, no projects, no customers, no hosting......
Maybe we can use fork for example - hm..
. . . Read full entry »
Posted
4/28/2008 8:59:24 AM
On Apr 28, 2008, at 5:30 AM, Peter Coppens wrote:
>>
>> I guess that depends on what data you have coming in and going out.
>> A large and increasing number of applications have XML/HTML both
>> coming in and going out. In this circumstance it makes a great deal
>
. . . Read full entry »
Posted
4/26/2008 2:39:52 PM
I don't mean to say that the whole application should be implemented in
XQuery. Nether our team nor Sedna users try to do this. If XQuery were such
a language which allows to do this, there should be no problems. One cannot
implement everything in XQuery that is why he/she has to understand what
ot
. . . Read full entry »
Posted
4/26/2008 1:45:20 PM
I honestly do not care about which language I am using and even less
under which buzzword of the day that language is classified and I am
certainly in favor of reducing implementation time of the applications
we are trying to build (and I have the luxury of being able to make a
choice)
If
. . . Read full entry »
Posted
4/26/2008 1:02:48 PM
2008/4/24 John Snelson <http://x-query.com/mailman/listinfo/talk>:
>
> How about moving forward with a few of these suggestions:
>
> 1) XQuery probably needs a standard native application platform like Rails
> to enable rapid web development. This also gives us a good chance to
. . . Read full entry »
Posted
4/26/2008 11:00:27 AM
> I agree with John. Absence of an application platform like Rails is one of
> the main reason of not using XQuery widely.
OT: I've read a few blog posts now where people talk of moving away
from Rails because of its instability.
What they are moving to I don't know....
--
Andrew Welch
ht
. . . Read full entry »
Posted
4/26/2008 10:41:41 AM
I agree with John. Absence of an application platform like Rails is one of
the main reason of not using XQuery widely. According to our experience (we
are developers of Sedna XML DB) with Sedna users only very smart programmers
can build *end-to-end* applications using XQuery.
They shouldn't
. . . Read full entry »
Posted
4/26/2008 9:41:41 AM
Well...ok....what about something like a non proprietary LINQ done
properly?
It would still suffer 'the impossible to optimize' issue but at least
it would open up the libraries of the programming environment you are
working with pretty seamlessly, would integrate nicely with the
programm
. . . Read full entry »
Posted
4/26/2008 9:37:17 AM
> Well...ok....what about something like a non proprietary LINQ
> done properly?
Using terminology that has gone out of vogue, XSLT and XQuery are
fourth-generation languages, LINQ is a third generation language with 4G
add-ons. I'm a great believer in using 4GLs for writing business
applic
. . . Read full entry »
Posted
4/26/2008 9:29:48 AM
> I think personally XQuery needs dynamic dispatch. I think it
> did not make it in XQuery 1.0 because we didn't have the
> bandwidth for it (like for groupby), and maybe the WG didn't
> understand the issue at that time.
>
> It would be nice to be able to mix and match XSLT p
. . . Read full entry »
Posted
4/26/2008 2:06:51 AM
On 26 Apr 2008, at 00:37, Michael Kay wrote:
>> Anyway, XQuery was designed to 'work' on the XQuery/XPath
>> data model and I don't believe anywhere anytime soon your
>> 'typical' developer/architect/ designer will choose XDM as
>> its main representation of information to
. . . Read full entry »
Posted
4/26/2008 1:58:42 AM
On 26 Apr 2008, at 01:00, Thomas Lord wrote:
> Peter Coppens wrote:
>> Anyway, XQuery was designed to 'work' on the XQuery/XPath data
>> model and I don't believe anywhere anytime soon your 'typical'
>> developer/architect/designer will choose XDM as its main
>>
. . . Read full entry »
Posted
4/26/2008 1:48:29 AM
Sure...no disagreement here....perhaps that just means that a "general
data processing language" as is the subject of this thread is not
there yet?
If mainstream adoption of XQuery is what we all care about in this
discussion (and I might be confusing web 2 mashups, as originally
. . . Read full entry »
Posted
4/26/2008 1:48:29 AM
Sure...no disagreement here....perhaps that just means that a "general
data processing language" as is the subject of this thread is not
there yet?
If mainstream adoption of XQuery is what we all care about in this
discussion (and I might be confusing web 2 mashups, as originally
. . . Read full entry »
Posted
4/26/2008 1:05:09 AM
On 25 Apr 2008, at 23:37, Jason Hunter wrote:
> Daniela Florescu wrote:
>> It's not exactly true. Me, together with many other people who
>> participated to
>> the creation of XQuery (only *some* of us, though !), since day
>> one, we always had in mind,
>> wh
. . . Read full entry »
Posted
4/26/2008 12:37:32 AM
> Anyway, XQuery was designed to 'work' on the XQuery/XPath
> data model and I don't believe anywhere anytime soon your
> 'typical' developer/architect/ designer will choose XDM as
> its main representation of information to implement
> (transactional business) logic upon.
You
. . . Read full entry »
Posted
4/26/2008 12:33:39 AM
> Do you guys augment XQuery with a lot of non-standard
> functions? I can
> see why people do (even if you don't) but it's a trend I'd
> like to try to resist and suggest others resist, for obvious reasons.
Why? Do you think it's a bad idea that there are lots of class libraries
. . . Read full entry »
Posted
4/25/2008 10:47:15 PM
>
> >> It is VERY fortunate that XQuery does not have a traditional ACID
> >> transaction model.
> >>
False premise.
-t
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20080425/5334b03
. . . Read full entry »
Posted
4/25/2008 10:44:51 PM
Hey XQuery transaction debaters:
A recommended read on this topic:
http://www-db.cs.wisc.edu/cidr/cidr2007/papers/cidr07p15.pdf
The author, Pat Helland, is a old-time transaction and messaging expert.
I'm an old fan of transactions, but I agree with Dana - in practice
distributed transactions a
. . . Read full entry »
Posted
4/25/2008 10:44:21 PM
> I think the most important part is to put out there open source XQuery
> modules that do useful stuff, like an
> online store, a CRM app, and/or some fun stuff like some IPhone apps that
> can be written nicely with XQuery.
Starting with the example of web applications.. I really m
. . . Read full entry »
Posted
4/25/2008 10:15:57 PM
> Concepts such as commit, rollback, and two-phase commit are still in
> play.
Ken,
No, two phase commit isn't in play anymore, and hasn't been for a long
time (if it has ever been
more then a research toy).
( It's nick name is the "unavailability protocol", given by the same
. . . Read full entry »
Posted
4/25/2008 9:48:02 PM
Dana Florescu wrote:
>> It is VERY fortunate that XQuery does not have a traditional ACID
>> transaction model.
>>
>> ACID transactions, with their isolation levels, and consistency
>> models, are very good for theory and database classes, but the Web does not wor
. . . Read full entry »
Posted
4/25/2008 9:46:49 PM
> It's not exactly true. Me, together with many other people who
> participated to
> the creation of XQuery (only *some* of us, though !), since day one,
> we always had in mind,
> while designing XQuery, a general programming language for XML data
> processing, and not mer
. . . Read full entry »
Posted
4/25/2008 8:35:22 PM
Aren't some of these arguments missing the point a little? Jason I
think hit it. Java (and C#) are a success not so much because of the
language, but because of the class libraries. Perl had CPAN, and even
Ruby really took off when Rails appeared. XQuery is a language, but
with a very small "c
. . . Read full entry »
Posted
4/25/2008 8:15:19 PM
>
> Well, I think a lot of the design trade-offs that were made, for
> example the
> absence of polymorphism and dynamic despatch, were made on the basis
> that
> the choice is right for a query language even if it is wrong for a
> general-purpose programming language.
I
. . . Read full entry »
Posted
4/25/2008 7:45:34 PM
Ken,
you bring here probably the most important point in the discussion:
transactions.
I will tell you my point of view on that, I am sure many will find it
heretic.
It is VERY fortunate that XQuery does not have a traditional ACID
transaction model.
ACID transactions, with their isolatio
. . . Read full entry »
Posted
4/25/2008 7:42:00 PM
On Apr 25, 2008, at 3:37 PM, Michael Kay wrote:
>> Anyway, XQuery was designed to 'work' on the XQuery/XPath
>> data model and I don't believe anywhere anytime soon your
>> 'typical' developer/architect/ designer will choose XDM as
>> its main representation of information
. . . Read full entry »
Posted
4/25/2008 7:40:25 PM
>
> What do you think about e.g. LINQ which from what I understand of it
> seem to try and deal with this integration/mismatch problem? Would
> that not better fit better under the "general data processing"
> language umbrella?
No, personally I don't think LINQ is t
. . . Read full entry »
Posted
4/25/2008 6:42:17 PM
> In my systems, I handled sequencing by evaluating XQuery
> programs in a loop, each iteration of the loop returning a
> description of side effects
> to perform and, optionally, a continuation. If present, the
> continuation is the next XQuery program to run in the loop. Th
. . . Read full entry »
Posted
4/25/2008 5:29:31 PM
Michael Kay wrote:
>> Do you guys augment XQuery with a lot of non-standard
>> functions? I can
>> see why people do (even if you don't) but it's a trend I'd
>> like to try to resist and suggest others resist, for obvious reasons.
>>
>
> Why? Do you thi
. . . Read full entry »
Posted
4/25/2008 5:03:40 PM
Jason Hunter wrote:
>
> But of course when the service in question is fast indexed text
> search, it's not the kind of thing you can do as a net service. That
> needs to be in the product's core.
Sure. I'm talking about the API and semantics to it, not which process
it runs in.
. . . Read full entry »
Posted
4/25/2008 5:00:14 PM
Peter Coppens wrote:
> Anyway, XQuery was designed to 'work' on the XQuery/XPath data model
> and I don't believe anywhere anytime soon your 'typical'
> developer/architect/designer will choose XDM as its main
> representation of information to implement (transactional business)
&
. . . Read full entry »
Posted
4/25/2008 4:41:16 PM
Jason Hunter wrote:
> http://xqzone.marklogic.com/pubs/3.2/apidocs/All.html
>
> FWIW, it seems messy and unnecessary to me to change the language in
> any significant way to support these things. I prefer the Java
> approach. Simple language, complex libraries. Empirically you ca
. . . Read full entry »
Posted
4/25/2008 4:23:44 PM
Peter Coppens wrote:
>
> If XQuery has the ambition to become a general
> (data) processing language it will have to integrate (or work)
> seamlessly with <your preferred oo programming language> object model.
I see XQuery as a general _content_ processing language. Emails ar
. . . Read full entry »
Posted
4/25/2008 4:11:27 PM
Thomas Lord wrote:
> Jason Hunter wrote:
>> http://xqzone.marklogic.com/pubs/3.2/apidocs/All.html
>>
>> FWIW, it seems messy and unnecessary to me to change the language in
>> any significant way to support these things. I prefer the Java
>> approach. Simple lang
. . . Read full entry »
Posted
4/25/2008 3:37:18 PM
Daniela Florescu wrote:
> It's not exactly true. Me, together with many other people who
> participated to
> the creation of XQuery (only *some* of us, though !), since day one, we
> always had in mind,
> while designing XQuery, a general programming language for XML data
> pr
. . . Read full entry »
Posted
4/25/2008 3:31:37 PM
Christian Grün wrote:
>> I think the most important part is to put out there open source XQuery
>> modules that do useful stuff, like an
>> online store, a CRM app, and/or some fun stuff like some IPhone apps that
>> can be written nicely with XQuery.
>
> Start
. . . Read full entry »
Posted
4/25/2008 3:21:31 PM
Dana Florescu wrote:
>> I don't think XQuery should be a general programming language, like in
>> implementing a network protocol in for example.
>>
>> But I think it is a great language for general data processing. It
>> does the job very well.
>>
>> If yo
. . . Read full entry »
Posted
4/25/2008 3:00:15 PM
Michael Kay wrote:
>> 2) What is it about XQuery that would stop you being able to
>> write your entire application in XQuery?
>
> The #1 reason I have found it hard to write significant applications in
> XQuery is the lack of polymorphism.
>
> If you want to write a s
. . . Read full entry »
Posted
4/25/2008 2:11:30 PM
>
> XQuery was designed as a query language and it does that job very
> well. It
> was not designed as a general-purpose programming language, and I
> think it's
> a mistake to try and use it as one.
>
Yes...that is also my experience. It is a mistake, sometimes fun, but
. . . Read full entry »
Posted
4/25/2008 2:09:04 PM
>
>
> 1) Does the application usually deal with incoming and outgoing XML/
> HTML, or is that the exception?
Deals with incoming X(HT)ML, outgoing X(HT)ML and transformations or
'template' expansion.
Well, to be complete, that is the part where using XQuery makes the
most sense -
. . . Read full entry »
Posted
4/25/2008 12:58:42 PM
> 2) What is it about XQuery that would stop you being able to
> write your entire application in XQuery?
The #1 reason I have found it hard to write significant applications in
XQuery is the lack of polymorphism.
If you want to write a simple query to do a single well-defined job, XQuery
. . . Read full entry »
Posted
4/25/2008 12:45:24 PM
John D. Mitchell wrote:
> On Thu, Apr 24, 2008 at 3:58 AM, John Snelson <http://x-query.com/mailman/listinfo/talk> wrote:
> [...]
>> Simple and complete REST support is important, I agree.
>
> Are you saying that should be in the XQuery language itself or in the
> stand
. . . Read full entry »
Posted
4/25/2008 12:33:17 PM
Hi Peter,
I'm interested in your use case, can I ask a couple of questions?
1) Does the application usually deal with incoming and outgoing
XML/HTML, or is that the exception?
2) What is it about XQuery that would stop you being able to write your
entire application in XQuery?
John
Peter Cop
. . . Read full entry »
Posted
4/25/2008 11:58:36 AM
> XQuery was designed as a query language and it does that job very
> well.
It's not exactly true. Me, together with many other people who
participated to
the creation of XQuery (only *some* of us, though !), since day one,
we always had in mind,
while designing XQuery, a general pro
. . . Read full entry »
Posted
4/25/2008 11:41:08 AM
Michael Kay wrote:
>> In my systems, I handled sequencing by evaluating XQuery
>> programs in a loop, each iteration of the loop returning a
>> description of side effects
>> to perform and, optionally, a continuation. [....]
> This sounds like a classic pipeline archi
. . . Read full entry »
Posted
4/25/2008 11:14:00 AM
Peter Coppens wrote:
>>
>> XQuery was designed as a query language and it does that job very
>> well. It
>> was not designed as a general-purpose programming language, and I
>> think it's
>> a mistake to try and use it as one.
>>
> Yes...that is also m
. . . Read full entry »
Posted
4/25/2008 10:03:47 AM
On 25/04/2008, Peter Coppens <http://x-query.com/mailman/listinfo/talk> wrote:
> For *a lot* of needs it is far easier to just shut down your brain and
> crank out a couple of hundred lines of DOM code and the go on with the real
> problem.
Use XSLT 2.0... I use it all the time for
. . . Read full entry »
Posted
4/25/2008 9:57:02 AM
Fwiw...
Two years ago I switched from a company that implements XQuery to a
company that develops your fairly typical web applications (I
know...why would you want to do that :) )
Anyway , because I do like the language a lot I try to use it wherever
it makes even a little sense but to be h
. . . Read full entry »
Posted
4/25/2008 9:42:15 AM
> solve.
>
> The top major complains were:
> (a) is too complicated to understand (tutorials, books !?)
I agree, when I look at the XQuery stuff I have it seems to have a
strong academic flavor, as well as a focus on XML based problems.
examples:
1. lots of focus on the 'books' prob
. . . Read full entry »
Posted
4/24/2008 10:12:08 PM
> Someone needs to coin cute little phrases like LAMP or AJaX that
> will make the technology spread like wildfire.\\
After talking with lots of Web 2.0 guys one more day, I ended up with
the conclusion that the XQuery crowd
(aka us :-) is **really** bad at marketing.
Few people unde
. . . Read full entry »
Posted
4/24/2008 9:46:15 PM
John D. Mitchell wrote:
>> I think what your saying is that XQuery needs a killer app - and I agree
>> with that.
>
> I'm way biased but check out http://markmail.org/. Pure XQuery
> backend with the latest Ajax hotness for a UI.
MarkMail is an impressive piece of software
. . . Read full entry »
Posted
4/24/2008 5:38:43 PM
On Thu, Apr 24, 2008 at 3:58 AM, John Snelson <http://x-query.com/mailman/listinfo/talk> wrote:
[...]
> Simple and complete REST support is important, I agree.
Are you saying that should be in the XQuery language itself or in the
standard libraries? Seems overkill for the former but I'd
. . . Read full entry »
Posted
4/24/2008 4:39:14 PM
Maik Stührenberg wrote:
> let $e := $d/a:collection/a:entry/a:data//*[@a:span = $s/@xml:id]
> return
> $e[not(child::element()[@a:span = $s/@xml:id])]
> [...]
> What I don't get is why the c:word elements are still included
> in the output? They don't share the s
. . . Read full entry »
Posted
4/24/2008 3:57:52 PM
Well, if someone of you could be so kind and help me brighten up my mind...
As I only want to output children of a node with a the same value of the
a:span attribute as the a:span/@xml:id, I tried the following query:
declare namespace a="http://www.example.org/a";
declare namespace b=
. . . Read full entry »
Posted
4/24/2008 3:19:35 PM
Maik Stührenberg wrote:
> thanks for another suggestion, however, the version on top will
> still result in the output
Comparisons by identity and by value can sometimes give the same
result, sometimes not.
> Well, that is the point: the function should not stop searching
> a
. . . Read full entry »
Posted
4/24/2008 3:12:08 PM
On 24/04/2008, Maik Stührenberg <http://x-query.com/mailman/listinfo/talk> wrote:
> Sorry for asking over and over again, but I would really love to solve this
> one
To encourage a response you should simplify your problem to a sample
input, code sample and required output - noth
. . . Read full entry »
Posted
4/24/2008 2:57:03 PM
Michael Kay schrieb:
>> So if I am right, you want to not include an element if one
>> of its ancestors is included too? If you want so, use the
>> following instead of the for:
>>
>> let $e := $d/a:collection/a:entry/a:data
>> // *[@a:sp
. . . Read full entry »
Posted
4/24/2008 12:58:39 PM
Weiqi Gao wrote:
> 2. The Web 2.0 crowd loves open source. Everything they talk about is
> open source. Why not make all XQuery implementations open source, at
> least free as in free beer?
There are already some good open source XQuery implementations,
including XQilla, Saxon and eX
. . . Read full entry »
Posted
4/24/2008 12:14:23 PM
Andrew Welch wrote:
> some $x in ancestor::*, $y in $e satisfies $x is $y
> which is the same as:
> ancestor::* intersect $e
> in the boolean sense.
Yes. That's better they are the same if you want to rewrite one by
the other one ;-)
--drkm
_________________
. . . Read full entry »
Posted
4/24/2008 11:43:40 AM
Andrew Welch wrote:
Hi
> if you rewrote
> not(ancestor::* intersect $e)
> to be
> not(some $x in ancestor::* satisfies $x is $e)
That's not the same thing because 'is' compares two nodes. So your
second expression would be rather equivalent to:
not(ancestor::* intersect
. . . Read full entry »
Posted
4/24/2008 11:12:43 AM
Michael Kay wrote:
Hi
> That's not quite right, because the "=" tests for equality
> rather than identity.
Oops, you're right. Thank you for pointing this one out!
Regards,
--drkm
__________________________________________________
Do You Yahoo!?
En fi
. . . Read full entry »
Posted
4/24/2008 11:04:39 AM
On 24/04/2008, Florent Georges <http://x-query.com/mailman/listinfo/talk> wrote:
> Andrew Welch wrote:
>
> > if you rewrote
>
> > not(ancestor::* intersect $e)
>
> > to be
>
> > not(some $x in ancestor::* satisfies $x is $e)
>
>
> That's n
. . . Read full entry »
Posted
4/24/2008 11:04:19 AM
On any of these formulations, Saxon will return a result for the predicate
(x intersect y) as soon as if finds a node that is present in both sets.
What it won't do is to recognize that if the predicate is false for a
particular node, then it also false for its descendants.
The (x intersect y) fo
. . . Read full entry »
Posted
4/24/2008 10:36:22 AM
>
> if you rewrote
>
> not(ancestor::* intersect $e)
>
> to be
>
> not(some $x in ancestor::* satisfies $x is $e)
>
> ...would that potentially stop searching when it found a
> match? Or would that generate the same code as the top version?
They're likely to
. . . Read full entry »
Posted
4/24/2008 10:07:25 AM
On 23/04/2008, Michael Kay <http://x-query.com/mailman/listinfo/talk> wrote:
> $e[not(ancestor::* intersect $e)]
>
> or you could do a recursive function which stops searching any deeper when
> it finds a match:
if you rewrote
not(ancestor::* intersect $e)
to be
not
. . . Read full entry »
Posted
4/23/2008 11:18:45 PM
Daniela Florescu wrote:
>
> I just came back from Web 2.0 Expo in SF. I listened through lots of
> interesting presentations of various technologies for building mashups.
>
> Needless to say, *nobody* mentioned the name XQuery.
>
> Why !? XQuery has proven itself to be a gr
. . . Read full entry »
Posted
4/23/2008 8:15:20 PM
Dear all,
I just came back from Web 2.0 Expo in SF. I listened through lots of
interesting presentations of various technologies for building mashups.
Needless to say, *nobody* mentioned the name XQuery.
Why !? XQuery has proven itself to be a great tool for Web 2.0 style
mashup
applications
. . . Read full entry »
Posted
4/23/2008 7:53:01 PM
>
> So if I am right, you want to not include an element if one
> of its ancestors is included too? If you want so, use the
> following instead of the for:
>
> let $e := $d/a:collection/a:entry/a:data
> // *[@a:span = $s/@xml:id]
> return
>
. . . Read full entry »
Posted
4/23/2008 7:04:48 PM
Maik Stührenberg wrote:
> The only difference I'd like to achieve is the following
> resulting output:
So if I am right, you want to not include an element if one of its
ancestors is included too? If you want so, use the following instead
of the for:
let $e := $d/a:collection/a
. . . Read full entry »
Posted
4/23/2008 6:51:06 PM
Hi again,
for the following query (thanks for your hints):
declare namespace a="http://www.example.org/a";
declare namespace b="http://www.example.org/b";
declare namespace c="http://www.example.org/c";
<resultset xmlns:xsi="http://www.w3.org/2001/XMLSchema-
. . . Read full entry »
Posted
4/23/2008 6:36:11 PM
Maik Stührenberg wrote:
Hi
> @Florent: Thanks for the hint, but in that case, the hierarchical
> relationship between b:text and b:para would get lost.
I don't understand what you want then. Maybe you could try to show
the result you expect with the example you gave us.
Regar
. . . Read full entry »
Posted
4/23/2008 4:47:28 PM
Michael Kay schrieb:
>> So the question is, is it possible to recursively traverse
>> the descendants of the a:data node and select only those
>> element nodes which
>> refer to the same a:span element?
>
> Well, the answer is yes - though at this point I'm afra
. . . Read full entry »
Posted
4/23/2008 4:32:34 PM
> To be honest, I started writing an XSLT script after my first
> steps in the XQuery world. So I guess in XSLT I'd need a
> template for the a:data node containing a xsl:for-each
> select="child::node" statement...
Or better still, a template for a:data containing an <
. . . Read full entry »
Posted
4/23/2008 2:21:10 PM
Hi Florent and Michael,
thanks for your response.
Florent Georges schrieb:
> Maik Stührenberg wrote:µ
>
> You have to add the namespace nodes to the resultset
> element. If the above example is a simplification, your
> real problem may require more complexity to sel
. . . Read full entry »
Posted
4/23/2008 1:38:12 PM
> So the question is, is it possible to recursively traverse
> the descendants of the a:data node and select only those
> element nodes which
> refer to the same a:span element?
Well, the answer is yes - though at this point I'm afraid I start wishing
the code was written in XSLT
. . . Read full entry »
Posted
4/23/2008 12:56:52 PM
Maik Stührenberg wrote:µ
Hi
> - Is there any way to suppress the output of the
> namespaces in each element? Or to be more specific: what
> do I have to change to output all namespaces once (and
> only once) in the resultset element?
You have to add the namespace nodes
. . . Read full entry »
Posted
4/23/2008 12:23:41 PM
Hello,
I'm new to the list and tried to find the answer to my questions in
several locations (including the list archive). So I apologize if I
haven't searched thoroughly enough and the anwer has been given already.
Here's my problem:
We use a standoff annotation format for storing multiple an
. . . Read full entry »
Posted
4/23/2008 12:08:08 PM
I'm afraid I haven't tried to understand all the details of your query, but
I'll try to answer the questions anyway.
> - Is there any way to suppress the output of the namespaces
> in each element?
You can get rid of unused namespaces using "declare copy-namespaces
no-preserve;"
. . . Read full entry »
Posted
4/16/2008 7:44:21 PM
Christian,
thanks for your interest.
Yes, you can write in standard XQuery. Sedna supports 98.8% of XQuery
specification.
You can find more on this at
http://wikixmldb.dyndns.org/help/getting-started/
Maxim
2008/4/16, Christian Grün <http://x-query.com/mailman/listinfo/talk>:
>
. . . Read full entry »
Posted
4/16/2008 7:10:15 PM
We are pleased to announce WikiXMLDB which allows querying Wikipedia in
XQuery.
http://wikixmldb.dyndns.org
We have parsed English Wikipedia into a well-structured XML document (21 Gb
in size) and loaded it into Sedna XML database (http://modis.ispras.ru/sedna).
With WikiXMLDB demo you can run pr
. . . Read full entry »
Posted
4/16/2008 11:37:02 AM
Selene,
It's not possible to use an external XQuery Engine in XMLSpy. This is on
our watch list for a future release!
Integrating Saxon as an external xslt engine w/XMLSpy is easy enough,
but the XQuery 1.0 engine used will always default to our own which is
also provided for free in the Al
. . . Read full entry »
Posted
4/16/2008 11:14:06 AM
Hi, XQueriers:
I have a query as follows:
declare function local:searchresult($seq as element()*) as element()*
{
let $sorted_result:=
for $doc in distinct-values($seq)
order by $doc
return $doc
return
for $d at $count in $sorted_result
let $head := $seq[.=$d][1]/ance
. . . Read full entry »
Posted
4/16/2008 10:44:04 AM
All of the responses on this thread are greatly appreciated! I had been
distracted by another priority, but am now revisiting this issue. To
answer the questions regarding my environment, I am on a PC running
Windows 5.1, and trying to get xquery to work in Altova XMLSpy Enterprise
Edition 8.
. . . Read full entry »
Posted
4/13/2008 11:33:05 AM
On 11/04/2008, Kevin Grover <http://x-query.com/mailman/listinfo/talk> wrote:
> I feel for you on this. It's taken me weeks to figure anything out.
> The crux if it is that the 'collection()' function is implementation
> dependent.
>
> I've been trying with saxon for a long
. . . Read full entry »
Posted
4/12/2008 5:35:56 PM
_______________________________________
From: Kevin Grover [http://x-query.com/mailman/listinfo/talk]
Sent: Thursday, April 10, 2008 9:00 PM
To: http://x-query.com/mailman/listinfo/talk
Cc: http://x-query.com/mailman/listinfo/talk
Subject: Re: How to run xquery dynamically on file listing from d
. . . Read full entry »
Posted
4/12/2008 2:52:46 PM
so you're saying Saxon will accept a file scheme uri to the directory?
Just to clarify.
Cheers,
Bryan Rasmussen
On Thu, Apr 10, 2008 at 11:48 PM, Michael Kay <http://x-query.com/mailman/listinfo/talk> wrote:
>
> >Is there anyway to do something like:
> for $x in collection(&
. . . Read full entry »
Posted
4/12/2008 2:09:35 PM
>
> The description of what Saxon will accept as argument to the
> collection function is given at
>
> http://www.saxonica.com/documentation/sourcedocs/collections.html
>
> This includes the option of using a file scheme URI of a
> directory. It also includes options su
. . . Read full entry »
Posted
4/12/2008 2:02:05 PM
The description of what Saxon will accept as argument to the collection
function is given at
http://www.saxonica.com/documentation/sourcedocs/collections.html
This includes the option of using a file scheme URI of a directory. It also
includes options such as http://temp.dir?recurse=yes which pro
. . . Read full entry »
Posted
4/11/2008 1:35:46 AM
At DataServices World, Mark Hapner will discuss the Web Application Description
Language (WADL) and URIs as database types, Dr. Carlo Innocenti will discuss
XQuery in the data access/data services workshop.
DataServices World is a conference that focuses on service-oriented
architecture (SOA), d
. . . Read full entry »
Posted
4/10/2008 11:48:07 PM
>Is there anyway to do something like:
for $x in collection("xmlfiles")
where 'xmlfiles' is a subdirectory containing the actual xml files I want to
use? I would need to know the exact syntax, as this is all new to me.
As others have said, the interpretation of the URI passed
. . . Read full entry »
Posted
4/10/2008 9:10:43 PM
What I am doing and still try to implement is parse this directory into a set of xml file like: from a very big file: bigfile.xml, now you create a set of xml file ranging from 0.xml to n.xml. Using a for loop now, you can read it one by one. one more good thing is that, by using a hashtable during
. . . Read full entry »
Posted
4/10/2008 8:21:08 PM
I'm using XMLSpy to write and test my xquery and have specified: xquery version "1.0";
at the top of the query (although I think I can use 2.0 if necessary). I'm running on Windows 5.1.
Selene
-------------- Original message ----------------------
From: Jonathan Robie <http://x-q
. . . Read full entry »
Posted
4/10/2008 7:22:10 PM
I'm a complete newbie at xquery and am trying to execute a query dynamically on
all files in a given directory, rather than hardcoding a particular file into
the 'doc()' call. I've tried using 'collection()' but am unclear as to how to
get it to work.
I did see this thread on x-query.com:
Que
. . . Read full entry »
Posted
4/10/2008 7:00:44 PM
On Thu, Apr 10, 2008 at 11:22 AM, <http://x-query.com/mailman/listinfo/talk> wrote:
> I'm a complete newbie at xquery and am trying to execute a query dynamically on
> all files in a given directory, rather than hardcoding a particular file into
> the 'doc()' call. I've tried usi
. . . Read full entry »
Posted
4/10/2008 5:32:37 PM
________________________________________
From: Jonathan Robie [http://x-query.com/mailman/listinfo/talk]
Sent: Thursday, April 10, 2008 4:02 PM
To: Wei, Alice J.
Cc: http://x-query.com/mailman/listinfo/talk; http://x-query.com/mailman/listinfo/talk
Subject: Re: How to run xquery dynamically on fil
. . . Read full entry »
Posted
4/10/2008 5:28:54 PM
There is no such thing as XQuery 2.0, we're not that fast ;->
I honestly don't know what XML Spy uses as the XQuery processor. You'll
have to look up the collection() function in the XML Spy documentation
and see if they implement it and how. Or they may have some other way of
implementing c
. . . Read full entry »
Posted
4/10/2008 5:02:58 PM
Wei, Alice J. wrote:
> Hi,
>
> Yes, you can do something like running several files at once using collection().
> The caveat is that this means you are running all the files in that collection. To answer your question, you can do something like
>
> let $x: = collection(&quo
. . . Read full entry »
Posted
4/10/2008 4:50:54 PM
Hi,
Yes, you can do something like running several files at once using collection().
The caveat is that this means you are running all the files in that collection. To answer your question, you can do something like
let $x: = collection("xmlfiles")
return
<count>{count($x)}
. . . Read full entry »
Posted
4/10/2008 4:05:41 PM
What XQuery implementation are you using, in what environment?
Jonathan
http://x-query.com/mailman/listinfo/talk wrote:
> I'm a complete newbie at xquery and am trying to execute a query dynamically on
> all files in a given directory, rather than hardcoding a particular file into
> th
. . . Read full entry »
Posted
4/7/2008 7:04:20 PM
We are pleased to announce a version 3.0 of the Sedna XML database system.
http://www.modis.ispras.ru/sedna
New:
- Improved transaction management. Sedna now use (page-level) versioning
mechanism which provides the following benefits:
* Read-only transaction does not conflict with any other c
. . . Read full entry »
Posted
4/4/2008 9:13:41 AM
Dear Bas (cc x-query list),
This is *very* embarrasing! I had confused replace() with translate()
(which does exactly what I want). Sorry! Thank you for the gentle
correction.
Best,
David
______
Please read the definition of the replace function at
http://www.w3.org/TR/xpath-functions/#func
. . . Read full entry »
Posted
4/4/2008 8:12:44 AM
Dear XQueriers,
I posted an inquiry about this to the eXist mailing list, but further
testing reveals that I get the same behavior from Saxon 9B, which
suggests that it's a general XQuery issue, and therefore perhaps more
appropriate here.
I'm working with some Unicode 5.1 materials (Unicode 5
. . . Read full entry »
Posted
4/3/2008 8:13:01 PM
1. It's certainly possible to get meaningful information out of Microsoft
Office XML formats - but it's not easy! I haven't used XQuery on this, but
I've done it using XSLT 2.0, making fairly heavy use of the positional
grouping facilities which have no direct equivalent in XQuery 1.0; I think
that
. . . Read full entry »
Posted
4/3/2008 3:41:41 PM
hi,
Extracting data from documents usually not so hard if all documents ofone type are сreated from same template (in most cases it is). Surelyyou can use visual markup from style.xml to make more easy way toretrieve data from documents. XQuery allow joining data from severalxml files (so if
. . . Read full entry »
Posted
4/3/2008 11:43:43 AM
> Have I done something wrong?
Yes. You did what I wrote, not what I meant;-)
for $doc in distinct-values($seq/normalize-space())
while you are there, remove
order by $d
as it does nothing as you have already sorted the sequence (I pointed
that out in my reply to your version of a day or s
. . . Read full entry »
Posted
4/3/2008 11:21:45 AM
> That is exactly how I wanted it to read, although I am not sure how "white spaces" get in this picture.
> The_tag,_maybe?
I'll show that string again but with space shown as _ and newline shown
as / so they are visible:
"/Send_10c_for_mailing_TODAY!/____________________
. . . Read full entry »
Posted
4/3/2008 10:17:28 AM
Scott,
Actually, that is a very good (and, IMHO, important) question. I'm
glad you asked it in this forum.
First, I have to admit that I don't know anything specific about
OOXML. I have a general clue what it is, of course, but don't know
details about the structure, schemas, etc. IF OOXML
. . . Read full entry »
Posted
4/3/2008 10:06:33 AM
> Here is the code of my main function:
What do you intend this function to do? it's very hard for me to guess
because most of the lines of it do nothing.
$b := collection("my")//ad//p[contains(upper-case(.),$search)],
$c := collection("my")//ad//address[contains(upper-
. . . Read full entry »
Posted
4/3/2008 10:04:30 AM
I'd just add that the degree of difficulty in
getting meaningful information out of OOXML docs is
probably dependant on what you're searching for and
which format you're working with. I'm able to query,
markup, and reuse parts of Word 2007 documents
(WordprocessingML) quite effectively.
Ther
. . . Read full entry »
Posted
4/3/2008 7:48:16 AM
Well, I guess since Word has the ability to incorporate XML data
defined with a custom schema (I suppose this is also part of the
standard) then I suppose you can get data via queries on OOXML.
However I 'm not sure what the problem is with querying non-structured
data such as represented by most d
. . . Read full entry »
Posted
4/3/2008 6:48:07 AM
> Have I done something wrong?
Yes. You did what I wrote, not what I meant;-)
for $doc in distinct-values($seq/normalize-space())
while you are there, remove
order by $d
as it does nothing as you have already sorted the sequence (I pointed
that out in my reply to your version of a day or so
. . . Read full entry »
Posted
4/3/2008 6:33:05 AM
> That is exactly how I wanted it to read, although I am not sure how "white spaces" get in this picture.
> The_tag,_maybe?
I'll show that string again but with space shown as _ and newline shown
as / so they are visible:
"/Send_10c_for_mailing_TODAY!/______________________
. . . Read full entry »
Posted
4/3/2008 6:12:47 AM
> As for the distinct-values in my code, I always have the assumption
> that it has been generating only results with distinct values as long
> as it is not deep distinct.
I have no idea what you mean by that.
distinct-values returms the distinct string values
If you have a sequence of
. . . Read full entry »
Posted
4/2/2008 11:23:12 PM
declare function local:main($search as xs:anyAtomicType*) as element()*
{
let $search := upper-case(request:get-parameter("search", ""))
this makes no sense, it's legal but so is writing 1+1-2 instead of 0.
Doing the above means that the argument to the function can never b
. . . Read full entry »
Posted
4/2/2008 11:14:29 PM
oh, you can never get the "no results" text back
your structure is
for $d in $sorted-result
return
if (count($sorted-result) lt 1)
<p>sorry</p>
else if (count($sorted-result) gt 200)
<p> too many</p>
else
<p>....</p>
which means that you alwa
. . . Read full entry »
Posted
4/2/2008 10:45:49 PM
let $a := collection("my")//ad//address[contains(upper-case(.),'BOY')],
$b := collection("xmldb:exist://db/cbml")//ad//p[contains(upper-case(.),'GIRL')]
So $a and $b consist of distnct nodes (they are clearly distinct as $a
consists of address nodes and $b consists of p nodes
. . . Read full entry »
Posted
4/2/2008 10:43:16 PM
As far as I can see your syntax is OK and your if expression should always
return something. If it doesn't return anything, then perhaps it isn't being
executed, which could be because your FLOWR expression is selecting no
tuples.
Of course, you haven't provided enough information for me to test i
. . . Read full entry »
Posted
4/2/2008 10:29:39 PM
During a recent XQuery Overview presentation, there were a couple of
questions raised which I am searching for answers:
1. Office Open XML (OOXML) is a file format used by the Microsoft
Office 2007 applications. Can XQuery be used to get meaningful
information from an OOXML document, or would
. . . Read full entry »
Posted
4/2/2008 9:19:41 PM
Hi, David:
Thanks for some of the clarifications. I think I am still a little puzzled with the new structure you provided with putting the tests outside. I tested one, and got a very bad error message that says:
expected a single value for order expression $d ; found: 1848
I am suspecting that
. . . Read full entry »
Posted
4/2/2008 6:47:27 PM
You are passing in a sequence of ad elements,
so $seq[.=$d][1] is an ad element
so
$seq[.=$d][1]/ancestor::ad
is empty, as your ad elements don't have any ancestor at all, definitely
not an ancestor named ad.
and all the variables you declare in the let clause are empty.
perhaps you mea
. . . Read full entry »
Posted
4/2/2008 6:13:19 PM
Hi, David:
To answer your question, the reason why I am putting everything in here is because I am reusing this as a kind of template.If the result today is more than 200, I would expect it to give the output of saying there are too many results and not no results.
The $search, is there becau
. . . Read full entry »
Posted
4/2/2008 4:59:05 PM
Hi, David and Michael:
What is interesting is that when I put only one function out as I have had before, it brings me the appropriate result from the return.
Currently, I have many similar patterns of such function, only its element calls may be different (which was why I ran into problems wi
. . . Read full entry »
Posted
4/2/2008 3:32:46 PM
Hi, David:
Thanks, this did do the trick.
Alice
======================================================
Alice Wei
MIS 2008
School of Library and Information Science
Indiana University Bloomington
http://x-query.com/mailman/listinfo/talk
________________________________________
From: David Carlis
. . . Read full entry »
Posted
4/2/2008 1:24:54 PM
Hi, Michael:
Here is the code with some data:
declare function local:searchresult($seq as element()*) as element()*
{
let $a := <ad>
<head type="sub">(Send 13 cent stamp) </head>
<p rend="bgyellow"><address>
<addressLine>The American Comic
. . . Read full entry »
Posted
4/2/2008 9:19:38 AM
Hi, XQueriers:
This may be a simple problem, but it appears that I have either missed something or have problems figuring out what a certain function means.
Here is my function:
declare function local:searchresult($seq as element()*) as element()*
{
let $a := collection("my")//ad//
. . . Read full entry »
Posted
4/1/2008 4:29:55 AM
How about making your friends je4lous and sav1ng a lot of m0ney doing it? Forget about spend1ng thous4nds
of dol1ars on a new R0lex w4tch! Instead, visit the newly redesigned Vach3ron Const4ntin and buy
yourself a beautiful, one of a kind R0lex D4tejust w4tch!
http://www.Vach3ron Const4ntin/
Of
. . . Read full entry »
Posted
3/31/2008 6:08:16 PM
> Yes, I admit that I have not grasped this.
> According to what you said, are you implying that it is
> not even possible to even do an "outer-join" to produce the
> output from
>
> let $a := <a><b>1</b><b>2</b><b>3</b&g
. . . Read full entry »
Posted
3/31/2008 5:58:32 PM
> Michael Kay wrote:
>
> > let $a1 := <a/>, $a2 := <a/> return count(($a1, $a2))
That appears to be what my fingers typed, but my brain was certainly saying
"|"!
Michael Kay
>
> I guess you meant:
>
> let $a1 := <a/>, $a2 := <a/>
. . . Read full entry »
Posted
3/31/2008 7:23:24 AM
No, you haven't grasped it.
let $a1 := <a/>, $a2 := <a/> return count(($a1, $a2))
returns 2. Thats because the two <a/> nodes are DIFFERENT - they have
different identity because they were created separately. The same logic
applies to intersect and except.
Michael Kay
http://ww
. . . Read full entry »
Posted
3/31/2008 6:18:34 AM
If there is a way of doing this, then it will be entirely
processor-dependent, so you should ask on the relevant list for the product
you are using. I would have thought you ought to be looking for ways to
change that timeout value (which will also be product-dependent).
Remember that for/FLWOR is
. . . Read full entry »
Posted
3/31/2008 3:41:33 AM
Michael Kay wrote:
> let $a1 := <a/>, $a2 := <a/> return count(($a1, $a2))
> returns 2. Thats because the two <a/> nodes are DIFFERENT
I guess you meant:
let $a1 := <a/>, $a2 := <a/> return count(($a1|$a2))
;-)
Regards,
--drkm
. . . Read full entry »
Posted
3/30/2008 8:33:30 PM
Hi, Michael:
Yes, I admit that I have not grasped this.
According to what you said, are you implying that it is not even possible to even do an "outer-join" to produce the output from
let $a := <a><b>1</b><b>2</b><b>3</b></a>,
. . . Read full entry »
Posted
3/30/2008 7:09:00 PM
Hi, Jonathan:
I think I understand what you mean by having different nodes in the both sets I have indicated. However, since <b>2</b><b>3</b> are co-shared between the two sets, this means that I have to go around by doing something like
let $a := <a><b>1<
. . . Read full entry »
Posted
3/30/2008 3:28:03 PM
Is there a way I can make an XQuery statement wait ... something like
10 seconds ... each time through a for loop?
I have a statement written to hit an admin system, extract a value,
and then do something with that value. It's a one-time query I'm
running to set some values, so it's not as if an
. . . Read full entry »
Posted
3/30/2008 3:18:18 PM
Looking for superior quality repl1ca w4tches? Then welcome to the newly redesigned
Bre1tling, home of the best reproduction R0lex Sportm0del w4tches on the whole web!
Bre1tling 0ffers a tremendous selection of R0lex repl1ca timepieces for both
men and women, all of them featuring the original man
. . . Read full entry »
Posted
3/30/2008 1:45:15 PM
Wei, Alice J. wrote:
> let $a := <a><b>1</b><b>2</b><b>3</b></a>,
> $b := <c><b>What</b><b>2</b><b>3</b><b>4</b></c>,
> return
> <foo>{$a except $b}</foo>
>
> br
. . . Read full entry »
Posted
3/29/2008 3:36:23 PM
"Wei, Alice J." wrote:
> let $a :=
>
collection("xmldb:exist://db/cbm")//ad//address[contains(upper-case(.),$search)],
> $c :=
>
collection("xmldb:exist://db/cbm")//ad//address[contains(upper-case(.),$search2)],
> [...]
> $a intersect $c
If you
. . . Read full entry »
Posted
3/29/2008 1:00:41 PM
Hi,
Wei, Alice J. a écrit :
> Am I missing something here?
Node identity of constructed nodes (as already explained).
Read the XQuery specifications to get the picture.
Cheers,
p.b.
. . . Read full entry »
Posted
3/29/2008 11:39:09 AM
Looking for superior quality repl1ca w4tches? Then welcome to the newly redesigned
J4eger LeCoutre, home of the best reproduction R0lex Sportm0del w4tches on the whole web!
J4eger LeCoutre 0ffers a tremendous selection of R0lex repl1ca timepieces for both
men and women, all of them featuring the
. . . Read full entry »
Posted
3/29/2008 7:33:58 AM
Hi, XQueriers:
I think I am still having quite a bit of issues with this particular XPath expression.
I have used the idea Jonathan Robie brought up last time by combining the expressions by calling the original variables
let $a := collection("xmldb:exist://db/cbm")//ad//address[co
. . . Read full entry »
Posted
3/27/2008 8:32:19 PM
> now you can have not just one
> Gp cci bug, but two or three of them!
those aren't bugs, they're features.
. . . Read full entry »