Posted
6/30/2009 11:29:38 PM
I am a recent graduate of the Masters' Program in Information
Management and Systems at the University of California, Berkeley. One
of my emphases at Berkeley was in XML, but, with everything else I had
to do, I didn't have time to look into XSLT as deeply as I wanted.
Then, just last month, I ha
. . . Read full entry »
Posted
6/25/2009 8:12:36 PM
Yes - nice to see XQJ finished now all of a sudden..
Just to note: we have also implemented XQJ some time ago, and we would
be glad if more developers worked with it, but indeed most programmers
prefer to switch back to our own API, mostly (we guess) due to missing
database features.
Best,
Chris
. . . Read full entry »
Posted
6/25/2009 5:03:07 PM
Yes, I think you're right.
XQJ has a strong "client server" feel to it, with its strong notion of a
connection between the application and the database, and a "data source"
that you connect to. It's treating XQuery as a database query language whose
typical usage is in a class
. . . Read full entry »
Posted
6/25/2009 4:15:22 PM
Just 2 weeks ago I wrote an email to Jim Melton and asked about the planned release-date(now I guess why he never answered ;) ). For me, this API comes 6 months too late. Could have saved a lot of trouble :(
"My" XQJ seems useless right now. But I hope the new official API will be a grea
. . . Read full entry »
Posted
6/25/2009 4:07:45 PM
> I wonder why the design was not based on the JAXP API for
> XSLT rather than on JDBC...
Largely NIH syndrome (not-invented-here). It's true JAXP has major faults
too, but that's no excuse for ignoring its good points. I suspect the XQJ
designers had never used JAXP in anger - no-one i
. . . Read full entry »
Posted
6/25/2009 2:53:04 PM
Michael Kay wrote:
> The difference between them is that XQPreparedExpression
> contains a compiled expression or query, whereas XQExpression
> merely holds the dynamic context for executing an expression or
> query - despite its name, the expression to be evaluated is not
> held i
. . . Read full entry »
Posted
6/25/2009 2:46:39 PM
> BTW, does someone knows why there is a difference between
> an "expression" object that is actually used to evaluate
> (possibly several different if I am right) XQuery expressions
> and a "prepared expression" that really represents a
> (compiled) XQuery
. . . Read full entry »
Posted
6/25/2009 1:40:05 PM
JDBC's Callable Statements and the idea of a XQuery Main Modules with external parameters in the prolog are a very nice match, IMO. Marklogic's XCC package seemed to encourage this direction, although the support was not complete as externalizing sequences had its problem when i tried it a few ye
. . . Read full entry »
Posted
6/25/2009 12:44:27 PM
Michael Kay wrote:
Hi,
> It would be nice to think they were listening, because a
> few hours later the Final Release appeared on the site, with
> a publication date of 24 June 2009.
Good news, thanks for sharing.
BTW, does someone knows why there is a difference between an &quo
. . . Read full entry »
Posted
6/25/2009 11:48:36 AM
On 06/25/2009 09:46 AM, Ken North wrote:
> Michael Kay wrote:
>>> The difference between them is that XQPreparedExpression contains a compiled
> expression or query, whereas XQExpression merely holds the dynamic context
> for executing an expression or query
> .. Whenever I com
. . . Read full entry »
Posted
6/25/2009 11:35:42 AM
I don't want to speak for others, but I find this a curious
discussion. My opinion, from a definite 'outsider' trying to
ignorantly catch up on all these technologies,
is that there seems to be a schism of philosophy regarding XQuery. I
see it as sorta a "world view" thing, so I sha
. . . Read full entry »
Posted
6/25/2009 10:46:03 AM
Michael Kay wrote:
>> The difference between them is that XQPreparedExpression contains a compiled
expression or query, whereas XQExpression merely holds the dynamic context
for executing an expression or query
.. Whenever I complained about the design (or even the nomenclature) I was told
i
. . . Read full entry »
Posted
6/25/2009 10:00:51 AM
From this description (from one who uses JDBC daily) this maps fairly
directly to the JDBC concepts
JDBC: XQJ
Statement XQExpression
PreparedStatement XQPreparedExpression
So on that sense I would agree it is "intuitive to users of jdbc"
. . . Read full entry »
Posted
6/25/2009 9:24:56 AM
As someone who was there at the discussions(long ago), I can confirm that
the DB companies kept a pretty tight focus on XQuery as a DB query language
and the transformation use-case was pretty much ignored. There was a strong
bias towards keeping the API as JDBC-ish as possible by IBM and Oracle.
. . . Read full entry »
Posted
6/25/2009 9:08:57 AM
XQJ is the XQuery API for Java, JSR 225 is the Java Specification Request
that defines it.
Yesterday on twitter I bemoaned the fact that the Proposed Final Draft of
JSR 225 had been published in Nov 2007, and nothing had been heard of it
since.
It would be nice to think they were listening, beca
. . . Read full entry »
Posted
6/19/2009 10:08:51 PM
Hi,
thanks for your answer, and even more thanks for your solution ;)
I have to admit that it took some minutes to understand your way, because I didnt even recognize that this could be a way.
The idea is quite simple (now, after I understand it), and seems to work for the most cases.
Thanks for y
. . . Read full entry »
Posted
6/19/2009 5:03:17 PM
about "native XSLT processor" - sound cool but while it is not
implemented - i have one suggestion
currently we have direct access to "files" in eXist database from XSLT
by doc('xmldb:exist:///db/..../rows.xml')
is here something similar for directly call XQuery files from XSL
. . . Read full entry »
Posted
6/19/2009 3:08:44 PM
> In XQuery think I would start by doing a replace() to replace
> semicolons-not-within-quotes by some other delimiter (e.g. a PUA
> character),
> and then do a tokenize() to split the string on this new delimiter.
That is what I try to do ;)
But, "...to replace semicolons-not-wi
. . . Read full entry »
Posted
6/19/2009 1:29:18 PM
I am trying to "read" CSV data like this :
one;"two;stilltwo";three;"four;stillfour";five
this should resolve in something like this :
...
<element>one</element>
<element>two;stilltwo</element>
<element>three</element>
<element&
. . . Read full entry »
Posted
6/19/2009 12:50:07 PM
These things tend to be easier in XSLT which has the more powerful
xsl:analyze-string instruction.
<xsl:analyze-string regex='"[^"]*?"|[^;]*'>
<xsl:matching-substring>
.. process one field ..
In XQuery think I would start by doing a replace() to replace
semicolo
. . . Read full entry »
Posted
6/19/2009 12:45:02 PM
Have look at this, it should be easy enough to convert to xquery:
http://andrewjwelch.com/code/xslt/csv/csv-to-xml_v2.html
cheers
andrew
2009/6/19 <http://x-query.com/mailman/listinfo/talk>:
> I am trying to "read" CSV data like this :
>
> one;"two;stilltwo";t
. . . Read full entry »
Posted
6/19/2009 11:33:23 AM
Hi,
I am trying to use a RegEx within XQuery. In general that works fine.
Now I have a more complex RegEx to work with CSV-files(these CSV have ";" as separator).
I use can the following without problems in Java :
Pattern Regex = Pattern.compile(
"\\G(?:^|;)(?:\"((?:[^\"]|
. . . Read full entry »
Posted
6/19/2009 11:30:25 AM
2009/6/19 Florent Georges <http://x-query.com/mailman/listinfo/talk>:
>
> Robert Koberg wrote:
>
>> Ideally I would use XQuery to gather the requested parts of
>> various documents in the existing structure/schema. Then, allow
>> XSL to transform the XQuery builtup
. . . Read full entry »
Posted
6/19/2009 11:20:30 AM
The XPath regular expression language does not recognize \G and it does not
recognize non-capturing groups.
As far as matches() is concerned, there is no distinction between capturing
and non-capturing groups, so replace "(?:" by "(".
I suspect you wanted your regex to conta
. . . Read full entry »
Posted
6/19/2009 11:17:10 AM
> I am not sure there is an XSLT implementation working on an XML
> database (I mean directly on the nodes in the database,) but I
> know eXist has some support for XSLT (I don't know if it accesses
> nodes directly from the database or if it works on an in-memory
> tree.)
eXist cur
. . . Read full entry »
Posted
6/19/2009 10:43:43 AM
Florent Georges wrote:
> Regarding dynamism of a query, first-class function items will be very interesting. That's not the same thing as being able to overload a template rule, but that will provide a module the ability to change the behavior of an imported module (in some explicitly defined
. . . Read full entry »
Posted
6/19/2009 9:44:31 AM
This may not be the best way to do it, but it works. and no regex.
This wont trap "quoted quotes" but it works on the example given and is
more readable then regexes to my caveman brain.
--------------------
declare variable $data :=
'foo;bar;"spam;bletch";another;"se
. . . Read full entry »
Posted
6/19/2009 9:03:27 AM
I've now moved the blog post (unchanged) from preview to published
status. I would still welcome comments, especially if you participated
in the original conversation. The link is now:
http://garymlewis.com/instchg/2009/06/19/xquery-as-a-web-query-tool/
Thanks again.
Gary
On Thu, Jun 18, 2009 a
. . . Read full entry »
Posted
6/19/2009 1:23:38 AM
John Snelson wrote:
> The problem is the dynamic dispatch in XSLT - you can't
> know at compile time which template will be invoked where.
> This is a problem because:
> 1) You generally can't get accurate static type information
> across template application.
> 2) You generall
. . . Read full entry »
Posted
6/19/2009 1:05:41 AM
Robert Koberg wrote:
> Ideally I would use XQuery to gather the requested parts of
> various documents in the existing structure/schema. Then, allow
> XSL to transform the XQuery builtup nodeset without having to
> create some DOMish (even if it is the XSL processor's optimized
> D
. . . Read full entry »
Posted
6/19/2009 12:25:26 AM
On Thu, Jun 18, 2009 at 07:06:38PM -0400, Robert Koberg wrote:
> Sorry, I was not clear with what I meant by running natively. I mean
> that a transformation (XQuery or XSL) can occur straight on the XML DB
> with converting to something the processor (XQuery or XSL) can consume.
I se
. . . Read full entry »
Posted
6/18/2009 10:24:16 PM
Florent Georges wrote:
> Robert Koberg wrote:
>> I was talking about the ability for the XML DB vendors finding it
>> easier to have XQuery run natively in their DBs as opposed to XSL.
>
> Yes, but I wonder why XQuery would be more efficient than XSLT "natively on the
. . . Read full entry »
Posted
6/18/2009 10:10:47 PM
On Jun 18, 2009, at 8:23 PM, Florent Georges wrote:
>
> John Snelson wrote:
>
>> The problem is the dynamic dispatch in XSLT - you can't
>> know at compile time which template will be invoked where.
>> This is a problem because:
>
>> 1) You generally can't get
. . . Read full entry »
Posted
6/18/2009 9:10:07 PM
David A. Lee wrote:
> I believe from context Robert was referring to XQuery
> implementations at the DB/Server level which can take advantage
> of server side indexing etc.
> I think thats what he means by "runs natively"
> Compared to XSLT implementations which read th
. . . Read full entry »
Posted
6/18/2009 9:04:42 PM
Robert Koberg wrote:
> >> Why? To me, the best thing about XQuery is that it can run
> >> natively (and more efficiently than the more encompassing
> >> XSL)
> > Well, I think it depends (I mean XQuery more efficient
> > than XSLT.) If the query
. . . Read full entry »
Posted
6/18/2009 8:06:38 PM
On Jun 18, 2009, at 11:19 AM, Liam Quin wrote:
> On Thu, Jun 18, 2009 at 11:53:13AM +0000, Florent Georges wrote:
>> Robert Koberg wrote:
>>> Why? To me, the best thing about XQuery is that it can run
>>> natively (and more efficiently than the more encompassing
>>
. . . Read full entry »
Posted
6/18/2009 8:03:39 PM
On Jun 18, 2009, at 4:24 PM, John Snelson wrote:
> Florent Georges wrote:
>> Robert Koberg wrote:
>>> I was talking about the ability for the XML DB vendors finding it
>>> easier to have XQuery run natively in their DBs as opposed to XSL.
>> Yes, but I wonder
. . . Read full entry »
Posted
6/18/2009 7:59:44 PM
On Jun 18, 2009, at 4:04 PM, Florent Georges wrote:
>
> Robert Koberg wrote:
>
>>>> Why? To me, the best thing about XQuery is that it can run
>>>> natively (and more efficiently than the more encompassing
>>>> XSL)
>
>>> Well, I think it
. . . Read full entry »
Posted
6/18/2009 6:21:21 PM
David A. Lee schrieb:
> [...] I have real world test cases of XQuery which run on a high
> performance XML server "natively" and run 5x slower then the exact
> same XQuery running in the client (on the same machine). So I can
> assert that just because something runs "nat
. . . Read full entry »
Posted
6/18/2009 3:09:35 PM
Thanks, David. I believe the following link will work. If not, can you let
me know?
http://garymlewis.com/instchg/public/preview/xq.html
Gary
On Thu, Jun 18, 2009 at 1:36 PM, David A. Lee <http://x-query.com/mailman/listinfo/talk> wrote:
> This link doesn't work for me:
>
> http
. . . Read full entry »
Posted
6/18/2009 2:26:54 PM
Thanks to all of you who responded to my question yesterday. It was a
gracious welcome to a newcomer.
The conversation yesterday helped me. Just getting oriented sometimes
is a big hurdle, so I appreciate the time you all took in reply.
I do have a request. I think that others would benefit from
. . . Read full entry »
Posted
6/18/2009 1:04:30 PM
Robert Koberg wrote:
> Running XQuery in the browser seems like a huge waste of bandwidth where
> you would have to download everything you want to query against, perhaps
> to find only a tiny fragment. I would create a URL and just GET it from
> a server where XQuery creates the XML
. . . Read full entry »
Posted
6/18/2009 12:53:13 PM
Robert Koberg wrote:
Hi Robert,
> Why? To me, the best thing about XQuery is that it can run
> natively (and more efficiently than the more encompassing
> XSL)
Well, I think it depends (I mean XQuery more efficient
than XSLT.) If the query use dynamic dispatching of nodes
(aka pat
. . . Read full entry »
Posted
6/18/2009 12:19:37 PM
On Thu, Jun 18, 2009 at 11:53:13AM +0000, Florent Georges wrote:
> Robert Koberg wrote:
> > Why? To me, the best thing about XQuery is that it can run
> > natively (and more efficiently than the more encompassing
> > XSL)
The XQuery implementations in SQL databases such as IBM
. . . Read full entry »
Posted
6/18/2009 10:41:46 AM
Hello Michael,
let me quickly try to comment on your issues below:
On 17.06.2009, at 18:24, Michael Ludwig wrote:
> Adam Retter schrieb:
>> This may be of interest -
>> http://www.zorba-xquery.com/index.php/xquery-in-the-browser-xqib/
>
> I found this is a bad starting point
. . . Read full entry »
Posted
6/18/2009 10:36:02 AM
i think browser can act as proxy server to localhost-based eXist
database (or AMP if somebody still love it)
On Thu, Jun 18, 2009 at 2:53 AM, Robert Koberg<http://x-query.com/mailman/listinfo/talk> wrote:
>
> On Jun 17, 2009, at 10:13 AM, Gary Lewis wrote:
>
>> I'm a new membe
. . . Read full entry »
Posted
6/18/2009 9:34:54 AM
I believe from context Robert was referring to XQuery implementations at
the DB/Server level which can take advantage of server side indexing etc.
I think thats what he means by "runs natively"
Compared to XSLT implementations which read the document into the
"client" then pro
. . . Read full entry »
Posted
6/18/2009 9:33:00 AM
Hi,
On Jun 18, 2009, at 7:53 AM, Florent Georges wrote:
>
> Robert Koberg wrote:
>
> Hi Robert,
>
>> Why? To me, the best thing about XQuery is that it can run
>> natively (and more efficiently than the more encompassing
>> XSL)
>
> Well, I think it depen
. . . Read full entry »
Posted
6/18/2009 12:05:58 AM
>
> BOUNCED?
> Transmit Report:
>
> To: http://x-query.com/mailman/listinfo/talk, 2009/06/18 05:14:29, 452, This mailbox
> is temporarily disabled. This mailbox is automatically ena
>
That mailbox has been temporarily disabled, and generating bounce messages
on this list,
. . . Read full entry »
Posted
6/17/2009 8:26:32 PM
Hi Gary,
I surely see your point about XQuery in the browser - as stated before
by others: check out our project at http://www.xqib.org/
At the moment, the release works only with Internet Explorer - but the
next release (which is nearly finished - we hope to release it this
month) will also run
. . . Read full entry »
Posted
6/17/2009 8:21:08 PM
http://xqib.org
On Wed, Jun 17, 2009 at 6:42 PM, Michael Kay<http://x-query.com/mailman/listinfo/talk> wrote:
>
> There are a lot of people keen on the idea of xquery in the web browser.
>
> Unfortunately, though, I think there's a bit of a conflict. A lot of the
> benefits of
. . . Read full entry »
Posted
6/17/2009 7:53:56 PM
On Jun 17, 2009, at 10:13 AM, Gary Lewis wrote:
> I'm a new member of the talk list and am uncertain that my question is
> appropriate. Please ignore if it is off topic.
>
> Can anyone comment on the possibility that xquery could be used as a
> data integration/mashup tool running
. . . Read full entry »
Posted
6/17/2009 7:24:46 PM
Adam Retter schrieb:
> This may be of interest -
> http://www.zorba-xquery.com/index.php/xquery-in-the-browser-xqib/
I found this is a bad starting point, because of all the errors.
(1) "text/xqueryp" should probably be "text/xquery"
(2) XHTML namespace not declared in X
. . . Read full entry »
Posted
6/17/2009 5:46:09 PM
Sorry, all. In this post to Markus, I forgot to cc http://x-query.com/mailman/listinfo/talk
So I'm forwarding it now.
Also, it looks like an earlier reply I made was bounced. So here's the
bounced message. And then that is followed by the forwarded message.
What a mess.
BOUNCED?
Transmit Report:
. . . Read full entry »
Posted
6/17/2009 5:25:41 PM
Hello Gary,
On Wed, Jun 17, 2009 at 4:13 PM, Gary Lewis<http://x-query.com/mailman/listinfo/talk> wrote:
> I'm a new member of the talk list and am uncertain that my question is
> appropriate. Please ignore if it is off topic.
welcome, your question is fine.
> Can anyone comment
. . . Read full entry »
Posted
6/17/2009 4:42:02 PM
There are a lot of people keen on the idea of xquery in the web browser.
Unfortunately, though, I think there's a bit of a conflict. A lot of the
benefits of the web architecture come from the fact that the browser is
small, ubiqitous, and predictable. The more goodies you put in it, the less
tha
. . . Read full entry »
Posted
6/17/2009 4:32:56 PM
This may be of interest -
http://www.zorba-xquery.com/index.php/xquery-in-the-browser-xqib/
2009/6/17 Gary Lewis <http://x-query.com/mailman/listinfo/talk>:
> I'm a new member of the talk list and am uncertain that my question is
> appropriate. Please ignore if it is off topic.
>
. . . Read full entry »
Posted
6/17/2009 3:00:58 PM
>
> I'm also familiar with the zorba XQIB project but do not use a Windows
> OS so have not played with it yet. But my impression (probably wrong)
> is that XQIB is cast mostly as an alternative to JavaScript, using
> scripting extensions to XQuery. If true (please let me know
> o
. . . Read full entry »
Posted
6/17/2009 12:30:34 PM
A couple people have mentioned zorba. I've used and quite like zorba
xquery; even wrote a blog post about it and included some analysis of
Federal Reserve Economic Data time series accessed via an API with
zorba.
I'm also familiar with the zorba XQIB project but do not use a Windows
OS so have not
. . . Read full entry »
Posted
6/17/2009 11:25:41 AM
On Wed, Jun 17, 2009 at 7:42 AM, Michael Kay<http://x-query.com/mailman/listinfo/talk> wrote:
> There are a lot of people keen on the idea of xquery in the web browser.
>
> Unfortunately, though, I think there's a bit of a conflict. A lot of the
> benefits of the web architecture
. . . Read full entry »
Posted
6/17/2009 11:13:51 AM
I'm a new member of the talk list and am uncertain that my question is
appropriate. Please ignore if it is off topic.
Can anyone comment on the possibility that xquery could be used as a
data integration/mashup tool running in a browser that included a web
server? There's been quite a bit of excit
. . . Read full entry »
Posted
6/17/2009 8:31:52 AM
http://www.zorba-xquery.com/index.php/xquery-in-the-browser-a-user-testimonial/
- Mike
----- Original Message -----
From: "Gary M Lewis" <http://x-query.com/mailman/listinfo/talk>
To: "Talk" <http://x-query.com/mailman/listinfo/talk>
Sent: Wednesday, June 17, 2009
. . . Read full entry »
Posted
6/15/2009 10:36:16 PM
On Mon, Jun 15, 2009 at 9:28 PM, Brian Maso<http://x-query.com/mailman/listinfo/talk> wrote:
> Wouldn't it be great to use XQuery to access or modify relational data AND
> XML data instead of SQL/XML? I'm sure there are a few SQL/XML enthusiasts
> out there, but XQuery just makes so
. . . Read full entry »
Posted
6/15/2009 10:28:35 PM
(Ignoring the performance issue mentioned below altogether, since that is an
implementation difference only)
Wouldn't it be great to use XQuery to access or modify relational data AND
XML data instead of SQL/XML? I'm sure there are a few SQL/XML enthusiasts
out there, but XQuery just makes so much
. . . Read full entry »
Posted
6/15/2009 10:13:36 PM
To clarify:
1) SQL/XML defines an XML data type, a syntax for constructing XML
values from relational data, and functions for executing XQuery queries
against XML values, creating tables from XML values/sequences, etc. It's
worth noting that XML values are the same as XQuery sequences -- that
. . . Read full entry »
Posted
6/15/2009 9:44:57 PM
>> 2)Is there (or will there be) possibility to make a
>> database-connection just with XQuery ? So that I can give host, port,
>> login, passwort, etc and XQuery is able to connect to the database ?
>> Am I correct, that at the moment it is only possible if you use XQuery
&
. . . Read full entry »
Posted
6/15/2009 8:50:53 PM
I believe oracle's implementation lets you do that, but its not "standard".
David A. Lee
http://x-query.com/mailman/listinfo/talk
http://www.calldei.com
http://www.xmlsh.org
812-482-5224
Brian Maso wrote:
> Yea, I knew about SQL/XML. I was thinking more about intra-column
>
. . . Read full entry »
Posted
6/15/2009 7:43:22 PM
The SQL standard never defines indexing strategies. Not for relational data nor for XML.
All vendors provide indexing mechanisms.
Michael
From: http://x-query.com/mailman/listinfo/talk [mailto:http://x-query.com/mailman/listinfo/talk] On Behalf Of David A. Lee
Sent: Monday, June 15, 2009 4:51 PM
. . . Read full entry »
Posted
6/15/2009 6:21:56 PM
Not sure about a "standard" but the top DB vendors have done this
already years ago
Oracle:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14259/xdb13gen.htm#i1027254
MS/SQL
http://msdn.microsoft.com/en-us/library/aa286527.aspx
DB2
http://www.ibm.com/developerworks/db2/libra
. . . Read full entry »
Posted
6/15/2009 3:45:16 PM
Yea, I knew about SQL/XML. I was thinking more about intra-column indexing
-- so if I have an XML column I could write an efficient WHERE clause on the
value of a specific descendant element value. I don't believe SQL/XML
defines a way to ddefine indexes using, say, an XPath expression.
Best regar
. . . Read full entry »
Posted
6/15/2009 3:40:03 PM
Look at part 14 of the ISO/ANSI SQL Spec for the standardized support for XML and XQuery in SQL.
Best regards
Michael
PS: If your goal is to get XML out from relational data, I would recommend looking at http://msdn.microsoft.com/en-us/library/ms345137.aspx#forxml2k5_topic6 for MS/SQL.
From: htt
. . . Read full entry »
Posted
6/15/2009 3:19:39 PM
On Mon, Jun 15, 2009 at 2:10 PM, Brian Maso<http://x-query.com/mailman/listinfo/talk> wrote:
> I had heard that future versions of the SQL standard are to bring XML in to
> SQL -- basically make non-validated XML nodes as valid column types and add
> intra-XML indexing.
It's called
. . . Read full entry »
Posted
6/15/2009 3:10:44 PM
I had heard that future versions of the SQL standard are to bring XML in to
SQL -- basically make non-validated XML nodes as valid column types and add
intra-XML indexing. This was quite a while ago that I heard it, but it was
delivered by a reputable source. Seems like these two language have huge
. . . Read full entry »
Posted
6/14/2009 12:27:37 AM
> 3)
> When will there be a new/newer specification of XQuery (->XQuery 2.0)
> Is it possible to get an overview of the planed changes and new
> possibilities ?
>
XQuery 1.1 is already on the way:
http://www.w3.org/TR/xquery-11/
http://www.w3.org/TR/xquery-11-use-cases/
http:/
. . . Read full entry »
Posted
6/11/2009 12:16:25 PM
On Mon, Jun 08, 2009 at 05:08:40PM +0200, http://x-query.com/mailman/listinfo/talk wrote:
> I have several questions concerning XQuery :
>
> 2)Is there (or will there be) possibility to make a
> database-connection just with XQuery ? So that I can give host, port,
> login, passwort
. . . Read full entry »
Posted
6/9/2009 5:32:10 PM
> -> java.io.FileNotFoundException: http://localhost:8080/exist/rest/db/myConfig.xml
The query definitely works for me using saxon within oxygen as well as
on the command line. I guess there must be something wrong in the way
you are calling it.
Wolfgang
. . . Read full entry »
Posted
6/9/2009 5:21:22 PM
To pick up point 3)
I just read that the XQuery 1.1. specification exists (ok, it is "just" a working draft), but is not (really) used today.
And I also read that there are "insufficient resources to continue development of the Static Typing feature".
What does that mean ?
Is
. . . Read full entry »
Posted
6/9/2009 5:02:16 PM
> I just read that the XQuery 1.1. specification exists (ok, it
> is "just" a working draft), but is not (really) used today.
Yes, it's still under development. Various vendors have implemented various
parts of it even though it is still a draft.
> And I also read that there
. . . Read full entry »
Posted
6/9/2009 4:49:21 PM
http://x-query.com/mailman/listinfo/talk wrote:
> To pick up point 3)
>
> I just read that the XQuery 1.1. specification exists (ok, it is "just" a working draft), but is not (really) used today.
> And I also read that there are "insufficient resources to continue devel
. . . Read full entry »
Posted
6/8/2009 8:46:05 PM
> I am not running the query in the server. I use xquery "standalone", triggered with java or VB.net using saxon.
Sure, you can use saxon on the client to query a document stored in
eXist. As Michael already said, this makes sense in some cases. However,
to avoid misunderstandings:
. . . Read full entry »
Posted
6/8/2009 8:25:20 PM
> > Just use a relative URI: doc("/db/my.xml"). The xquery is
> > running on the server. It knows and has access to all
> > documents stored there. There's no need to use an HTTP URI here.
Hello,
I am not running the query in the server. I use xquery "standalone
. . . Read full entry »
Posted
6/8/2009 7:46:37 PM
Of course ;)
(that was a error due to copy and paste into the email ...
-------- Original-Nachricht --------
> Datum: Mon, 8 Jun 2009 11:15:06 -0400
> Von: "Houghton,Andrew" <http://x-query.com/mailman/listinfo/talk>
> An: http://x-query.com/mailman/listinfo/talk, http://x
. . . Read full entry »
Posted
6/8/2009 6:29:28 PM
Hi,
> how can I use a xml-file stored in a database ?
> I tried with eXist but i did not work:
please ask product specific questions on the corresponding mailing
lists. How you access a stored document depends on the database product
you use. There's no general answer to this.
> let $
. . . Read full entry »
Posted
6/8/2009 6:11:38 PM
>
> > let $path :='http://localhost:8080/exist/rest/db/my.xml'
> > ...doc(path )...
> >
> > -> FileNotFoundException:
> > -> http://localhost:8080/exist/rest/db/Abteilung_DocIDinRepo.xml
> > (I tried several other paths and combinations)
>
> Ju
. . . Read full entry »
Posted
6/8/2009 6:08:40 PM
Hi,
I have several questions concerning XQuery :
1)
how can I use a xml-file stored in a database ?
I tried with eXist but i did not work:
let $path :='http://localhost:8080/exist/rest/db/my.xml'
...doc(path )...
-> FileNotFoundException: http://localhost:8080/exist/rest/db/Abteilung_DocIDinR
. . . Read full entry »
Posted
6/8/2009 2:53:39 PM
I will be out of the office starting 06/08/2009 and will not return until
06/09/2009.
American Express made the following annotations on Mon Jun 08 2009 14:55:35
------------------------------------------------------------------------------
"This message and any attachments are solely for
. . . Read full entry »
Posted
6/8/2009 12:15:06 PM
> From: http://x-query.com/mailman/listinfo/talk [mailto:http://x-query.com/mailman/listinfo/talk] On
> Behalf Of http://x-query.com/mailman/listinfo/talk
> Sent: Monday, June 08, 2009 11:09 AM
> To: http://x-query.com/mailman/listinfo/talk
> Subject: XQuery and databases - XQuery 2
. . . Read full entry »
Posted
6/3/2009 3:47:30 PM
Michael and Adam,
thanks for your answers.
Michael Ludwig schrieb:
> I'm not sure what this kind of index is called; I thought of
> "contiguity index", or "range index", or "interval index", but
> can't find much in Google.
In an SQL server, it's a CHECK cl
. . . Read full entry »
Posted
6/3/2009 12:27:21 PM
As you broaden your question to ask about "*any* database", I can give
you a brief overview of how this could be done in the eXist XML Native
Database.
The functionality to restrict the ability to store a document based on
criteria in other documents (in this case start and end value
at
. . . Read full entry »
Posted
6/3/2009 12:26:01 PM
I think you'll be extraordinarily lucky to find a product that does this for
you automatically, and efficiently. However it's easy enough to check the
condition by hand, with reasonable efficiency so long as you can access
everything in the collection efficiently:
let $ranges :=
for $doc in col
. . . Read full entry »
Posted
6/3/2009 12:18:25 PM
I have a lot of documents in an XML database (Oracle Berkeley DB XML),
which look like this:
<doc start="100123" end="100456">Huhu</doc>
Do you see any possibility to define an index on a database (on *any*
database) such that no two documents with an overlappin
. . . Read full entry »
Posted
5/27/2009 4:38:12 PM
This workshop introduces an innovative data integration approach that
leverages the inherent power and flexibility of XML and XQuery. Based on a
typical scenario where a hypothetical IT organization needs to interact with
a variety of data sources to process business-critical data.
During this ha
. . . Read full entry »
Posted
5/21/2009 2:28:17 PM
> This way i only list the documents of a specific collection.
> How can i list the subcollections?
This question is implementation specific. I would suggest to ask such
questions on the corresponding product specific mailing list (which
should be the eXist list in your case). For a quick
. . . Read full entry »
Posted
5/21/2009 1:44:44 PM
I will submit the question in the eXist mailing-list.
My apologies for the wrong location of the post.
Thanks.
2009/5/21 Michael Kay <http://x-query.com/mailman/listinfo/talk>
> There's no such thing as a subcollection in standard XQuery.
>
> Your namespace prefix xmldb hints tha
. . . Read full entry »
Posted
5/21/2009 1:41:36 PM
There's no such thing as a subcollection in standard XQuery.
Your namespace prefix xmldb hints that you are using vendor extensions, so I
suggest you ask on a list that's specific to your chosen XQuery
implementation.
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
. . . Read full entry »
Posted
5/21/2009 1:22:34 PM
Hi to all,
I want to list all the content (documents and subcollections) of a specific
collection:
I'm using the following query:
let $host := 'http://localhost:8080'
let $col := xmldb:xcollection('/db')
for $p in $col
let $title := document-uri($p)
let $id := substring(document-uri($p),5,string-l
. . . Read full entry »
Posted
5/14/2009 11:41:31 PM
> Unfortunately though, I tried your suggestion but only returned one item
> which was had the greatest version of all items.
Which must be a bug. saxon returns a different result.
> As far as implementation, I'm querying eXist-db 1.2.5.
Using distinct-values to group by id could be an
. . . Read full entry »
Posted
5/14/2009 7:17:08 PM
>
> Which must be a bug. saxon returns a different result.
>
Perhaps, or I've lost something in translation from my simplified example.
> Using distinct-values to group by id could be another option, though maybe
> not the fastest:
>
> for $id in distinct-values(/items//id)
. . . Read full entry »
Posted
5/14/2009 7:14:00 PM
>
> I thought Pavel's suggestion was just fine and, indeed, the result is more
> than one item (transcript below).
Something must be lost in my translation from my real data to this
simplified example, because it definitely doesn't work with my real data. I
only get 1 result.
> Fin
. . . Read full entry »
Posted
5/14/2009 5:39:21 PM
At 2009-05-14 16:06 -0400, A. Steven Anderson wrote:
>Unfortunately though, I tried your suggestion but only returned one
>item which was had the greatest version of all items.
I thought Pavel's suggestion was just fine and, indeed, the result is
more than one item (transcript below).
>
. . . Read full entry »
Posted
5/14/2009 5:06:57 PM
Thanks for the quick replies.
To answer Ken's question, I'm looking for time efficiency (i.e. quickest
results returned) vs. space (i.e. RAM) efficiency.
Pavel, you were correct in your interpretation of my request; I'm looking to
return the set of items with the greatest version number within th
. . . Read full entry »
Posted
5/14/2009 3:23:24 PM
At 2009-05-14 14:18 -0400, A. Steven Anderson wrote:
>I've got a pretty complex xquery that returns only the latest
>version of all items in a collection, but I know there has got to be
>a more efficient way to do it.
>...
>What would be the most efficient way to do this?
By which
. . . Read full entry »
Posted
5/14/2009 3:18:40 PM
Greetings!
I've got a pretty complex xquery that returns only the latest version of all
items in a collection, but I know there has got to be a more efficient way
to do it.
A simplified example of the XML that I'm dealing with (i.e. not invented
here) is as follows:
<items>
<item>
. . . Read full entry »
Posted
5/14/2009 12:41:17 PM
On Thu, May 14, 2009 at 11:23 AM, G. Ken Holman
<http://x-query.com/mailman/listinfo/talk> wrote:
> At 2009-05-14 14:18 -0400, A. Steven Anderson wrote:
>>
>> I've got a pretty complex xquery that returns only the latest version of
>> all items in a collection, but I know
. . . Read full entry »
Posted
5/7/2009 8:57:25 PM
Dear all,
it my pleasure to announce the availability of MXQuery 0.6.0.
MXQuery is a lightweight, feature-complete XQuery processor available
under the Apache 2.0 license. It runs on a variety of Java environments,
including mobile/embedded platforms such as CLDC/MIDP.
Please go to http://mxqu
. . . Read full entry »
Posted
5/6/2009 12:53:13 PM
This is our last public announcement regarding these
separately-subscribed upcoming on classes ... the early-bird period
for lower registration prices ends next week for these in-depth and
comprehensive hands-on training classes in the Los Angeles area,
full-price registration available until J
. . . Read full entry »
Posted
5/2/2009 12:59:21 PM
Very nice.
A proof for Turing-completness can be found in the paper: 'A Simple
Proof for the Turing-Completeness
of XSLT and XQuery' by S. Kepser.
Thanks for help,
Michal
On Wed, Apr 29, 2009 at 6:06 PM, Michael Kay <http://x-query.com/mailman/listinfo/talk> wrote:
> XQuery is a Turin
. . . Read full entry »
Posted
4/30/2009 11:12:52 PM
Hello All,
Just released xprocxq, which is an experimental bootstrap
implementation of W3C XProc Draft Specification, written in xquery of
all things.
xprocxq project information and download
http://code.google.com/p/xprocxq/
xprocxq runs within eXist XML Database but the original prototype was
. . . Read full entry »
Posted
4/30/2009 11:46:49 AM
On Tue, Apr 28, 2009 at 9:34 PM, McBeath, Darin W (ELS-STL)
<http://x-query.com/mailman/listinfo/talk> wrote:
> > I'm curious if anyone has investigated or developed a transformation which
> > takes a query expressed in SPARQL syntax to one roughly expressed in an
> > equi
. . . Read full entry »
Posted
4/29/2009 7:05:53 PM
check out www.exquery.org which attempts to address some of the
limitations of XQuery
http://www.exquery.org/standards/use-cases.xql
lists out a few use cases (badly formatted) where XQuery has deficiencies.
hth, Jim Fuller
On Wed, Apr 29, 2009 at 5:42 PM, Michalmas <http://x-query.com/mailm
. . . Read full entry »
Posted
4/29/2009 6:42:17 PM
Hi gents,
I was wondering what are the limitations of XQuery? For instance,
there are some limitations of regular exp (you can't parse what is not
defined by a regular language). Since XQuery uses XPath which uses reg
exp - does it bring any limitations to XQuery search engine?
I tried to go
. . . Read full entry »
Posted
4/29/2009 6:06:45 PM
XQuery is a Turing complete functional language, so its computational power
is the same as that of all modern programming languages.
If there are limitations, they lie in the data model, not in the expressive
power of the language. For example, if your source documents have unparsed
entities, XQue
. . . Read full entry »
Posted
4/29/2009 12:52:59 PM
XQuery uses XPath which uses regeps in the same way C# or Java or Python use
regexps.
Regexps don't define XPath; they are just one tiny feature of XPaths, which
are one part of XQuery.
XQuery is a Turing-complete language.
On Wed, Apr 29, 2009 at 11:42 AM, Michalmas <http://x-query.com/mailma
. . . Read full entry »
Posted
4/29/2009 9:28:55 AM
XQuery is Turing-complete, so there shouldn't be any theoretical problems.
It could be that there are issues to do with data model coverage - for
example XQuery 1.0 doesn't give access to unparsed entities, and doesn't
provide any way to create namespaces whose names aren't known statically.
But
. . . Read full entry »
Posted
4/29/2009 4:07:08 AM
It's Turing-complete, so no, there is no inherent disadvantage to
being purely functional, but it does have the advantage that
computation over large amounts of data can be more easily
parallelized, which is a huge advantage for XQuery in database
systems.
To your other point: inferencing isn't do
. . . Read full entry »
Posted
4/29/2009 1:34:23 AM
SPARQL is not XML - i can bet that no one people did this convertor
to my opinion the best way is to declare some XML schema that contain
("query logic") and transform from this XML to SPARQL and/or XQuery
(maybe even MySQL, Google bigtable and so on)
with best wishes,
Slav
On Tue, Apr
. . . Read full entry »
Posted
4/29/2009 12:28:09 AM
> It might be *possible* to do in XQuery but its not a simple
> "translation" of one query language to another, it would take
> writing an inference engine in xquery. quite a project.
If you can write an interpreter for a query language then you can write a
compiler for it. A
. . . Read full entry »
Posted
4/28/2009 9:32:49 PM
I don't believe its impossible either, but I was thinking, as a purely
functional language (if that makes a difference?)
Is there any set of computations that xquery couldn't theoretically
execute, that say a procedural language could ?
Michael Kay wrote:
>> It might be *possible* to do i
. . . Read full entry »
Posted
4/28/2009 7:03:21 PM
The issue, IMHO, is that SPARQL is a lot more then an XML document query
language.
Its an inference query language.. thats a lot more then XQuery can do.
It might be *possible* to do in XQuery but its not a simple
"translation" of one query language to another,
it would take writing an
. . . Read full entry »
Posted
4/28/2009 5:48:16 PM
True, but the serialized RDF (which SPARQL can query) could be stored as XML.
-----Original Message-----
From: Vyacheslav Sedov [mailto:http://x-query.com/mailman/listinfo/talk]
Sent: Tue 4/28/2009 3:34 PM
To: McBeath, Darin W (ELS-STL)
Cc: http://x-query.com/mailman/listinfo/talk
Subject: Re: S
. . . Read full entry »
Posted
4/28/2009 1:34:46 PM
I'm curious if anyone has investigated or developed a transformation
which takes a query expressed in SPARQL syntax to one roughly expressed
in an equivalent XQuery syntax. I realize that there will likely not
always be a direct 1 to 1 mapping, will be dependencies on the
underlying XML document s
. . . Read full entry »
Posted
4/23/2009 7:30:45 PM
You're approaching this with a SQL mindset, and in my view that's not the
right place to start - we're dealing here with hierarchies rather than
tables.
I think it's often best to forget FLWOR expressions for this kind of thing
and go back to basic XPath, because XPath is more natural to the
hier
. . . Read full entry »
Posted
4/23/2009 7:09:10 PM
Do you need a for at all, if I understand your query, isn't it just
/book
[author='Dan Suciu']
[section[title='Syntax' or figure[title='Examples' and image/@source='example.gif']]]
David
________________________________________________________________________
The Numerical Algorithms
. . . Read full entry »
Posted
4/23/2009 5:12:00 PM
Thanks for the response. I will have to check Zorba out.
--- On Thu, 4/23/09, Matthias Brantner <http://x-query.com/mailman/listinfo/talk> wrote:
From: Matthias Brantner <http://x-query.com/mailman/listinfo/talk>
Subject: Re: outer for
To: http://x-query.com/mailman/listinfo/talk
Cc:
. . . Read full entry »
Posted
4/23/2009 12:28:59 PM
Just as a side note in the case you do not know that already. The
latest XQuery 1.1 working draft (see http://www.w3.org/TR/xquery-11/)
contains the concept of an outer for. In fact, your outer for query in
your first mail was already correct with respect to XQuery 1.1 (except
for a missing
. . . Read full entry »
Posted
4/23/2009 12:12:33 PM
Thanks for replying. That works for what I am doing.
--- On Thu, 4/23/09, David Carlisle <http://x-query.com/mailman/listinfo/talk> wrote:
From: David Carlisle <http://x-query.com/mailman/listinfo/talk>
Subject: Re: outer for
To: http://x-query.com/mailman/listinfo/talk
Cc: http://x-
. . . Read full entry »
Posted
4/23/2009 12:11:05 PM
Thanks for replying.
The solution worked for what I am trying to do.
The predicate I gave you was just an example I was trying to come up with to make the where a little more complicated and cover all the conditions I was having issues with.
--- On Thu, 4/23/09, Michael Kay <http://x-q
. . . Read full entry »
Posted
4/23/2009 11:50:25 AM
The XML Query and XSL Working Groups have now released Proposed Edited
Recommendations of the XQuery 1.0, XPath 2.0, and XSLT 2.0
specifications. These fix known bugs and problems, and are out for
community review. Some of these changes affect conformance. If these
documents pass public review, the
. . . Read full entry »
Posted
4/23/2009 10:49:31 AM
I was wondering if someone can help me with a xquery issue I am having.
What I am trying to do is create a web page that will allow a user to enter information about what they are looking for in a xml document and return to them the xml document if it matches their criteria. I thought I had
. . . Read full entry »
Posted
4/22/2009 6:22:24 AM
Dear all,
the XQuery Development Tools for Eclipse 2.0 (XQDT) are a complete
rewrite of XQDT 1.0 based on the DLTK Framework (Dynamic Languages
Toolkit). With DLTK, XQDT will have improved syntax highlighting,
error handling, and code completion. Furthermore, XQDT 2.0 is based on
an ANTLR
. . . Read full entry »
Posted
4/21/2009 9:08:32 AM
>
> I wonder if it makes at least some implementations not
> compliant in that respect, then - e.g. Saxon seems to reserve
> certain namespaces to map to Java/.NET types.
I've tried very hard in Saxon to do extensions in a way that preserves the
maximum level of interoperability. Th
. . . Read full entry »
Posted
4/21/2009 12:54:19 AM
It's normal practice with namespaces to rely on the fact that if you use a
namespace based on a domain name that you own, then it's yours and other
people can't walk all over it. However, making a namespace "magic" in ways
other than the extensibility mechanisms defined in the spec is pro
. . . Read full entry »
Posted
4/20/2009 7:47:08 PM
At 2009-04-20 15:29 -0700, Pavel Minaev wrote:
>I have two questions regarding implementation conformance to the XQuery spec.
>
>1) The spec requires every module and schema to be associated with a
>namespace, and seemingly doesn't restrict the value domain for such
>namespaces (exce
. . . Read full entry »
Posted
4/20/2009 5:08:44 PM
On Mon, Apr 20, 2009 at 3:47 PM, G. Ken Holman
<http://x-query.com/mailman/listinfo/talk> wrote:
>> 1) The spec requires every module and schema to be associated with a
>> namespace, and seemingly doesn't restrict the value domain for such
>> namespaces (except for restricti
. . . Read full entry »
Posted
4/20/2009 4:29:34 PM
I have two questions regarding implementation conformance to the XQuery spec.
1) The spec requires every module and schema to be associated with a
namespace, and seemingly doesn't restrict the value domain for such
namespaces (except for restricting clashes between several
modules/schemas imported
. . . Read full entry »
Posted
4/15/2009 11:34:37 PM
Hi,
In the past few months, we could hear more and more the demand
for a standardized set of extensions for XSLT and XQuery, as the
recent activity around EXSLT 2.0 and EXQuery (within which I am
involved) can tell.
Those projects try to fulfill real-world needs, in the
tradition of EXSLT,
. . . Read full entry »
Posted
4/15/2009 11:48:44 AM
George Feinberg schrieb:
> Michael,
>
> Your issue is somewhat product-specific. In this case you are using
> Berkeley DB XML and it's dbxml shell program for testing.
Hi George :-) Yes, exactly, dbxml shell for testing.
> The problem is not the URI for the file but the file's ref
. . . Read full entry »
Posted
4/11/2009 10:20:24 PM
declarr option lines are xquery prolog declarations, Like all
declare...; constucts they need to come first, before the xquery
expression. So in this case, with your function declarations, before the
let $phone :=
line that starts the xquery expression.
David
_________________________________
. . . Read full entry »
Posted
4/11/2009 8:31:24 PM
Michele Cleary wrote:
Hi,
> F [Saxon-B XQuery 9.1.0.5] XQuery syntax error in #...n
> declare option saxon:output#: Unexpected token
> "declare option" in path expression
I think declare option must be in the prolog, just before or after your declare namespace.
Reg
. . . Read full entry »
Posted
4/11/2009 12:59:23 PM
I'm trying to get the dtd into my voice xml xquery. For some reason, it's giving me a syntax error. Output looked great and syntax was fine before I added the declare option parts. I ran this in oxygen <oXygen/> XML Editor 10.1, build 2009022712 using the xquery debugger.
M
. . . Read full entry »
Posted
4/9/2009 6:57:57 PM
The XQuery implementation of an XML database fails to resolve the URI
of the DTD specified in the SYSTEM identifier.
dbxml> query { doc('file:/home/milu/xpg/xml/Sender.xml') }
1 objects returned for eager expression
' doc('file:/home/milu/xpg/xml/Sender.xml') '
dbxml> print
<?xml version
. . . Read full entry »
Posted
4/9/2009 3:58:13 PM
Michael,
Your issue is somewhat product-specific. In this case you are using
Berkeley DB XML and it's dbxml shell program for testing.
The problem is not the URI for the file but the file's reference to
the DTD. BDB XML uses Xerces-C for parsing/validation and
by default Xerces-C will look in th
. . . Read full entry »
Posted
3/31/2009 12:19:48 PM
James Fuller wrote:
> my latest article on using XQuery to create web dashboards
>http://www.ibm.com/developerworks/xml/library/x-xqdashboard/index.html?ca=drs-
Very interesting, Jim! Some parts sound familiar ;-)
> ... note these articles are geared towards a broader audience,
>
. . . Read full entry »
Posted
3/31/2009 11:35:47 AM
hope people don't mind me posting this here
my latest article on using XQuery to create web dashboards
http://www.ibm.com/developerworks/xml/library/x-xqdashboard/index.html?ca=drs-
... note these articles are geared towards a broader audience, others
have picked up on this and taken it to the n
. . . Read full entry »
Posted
3/30/2009 3:40:42 PM
>> exist 1.2.5 - set 4 is same as set 5 :(
>> anybody can check 1.3?
>
> I already noticed this as a bug and will take care of it. Thanks for the
> test.
I immediately fixed those issues in eXist trunk/1.3.
Wolfgang
. . . Read full entry »
Posted
3/29/2009 10:03:52 AM
The xsl:value-of instruction in XSLT 1.0, or in XSLT 2.0 when running in
backwards-compatibility mode, only displays the first item in the selected
node-set. To display all the nodes, use xsl:copy-of.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Geert Josten [
. . . Read full entry »
Posted
3/28/2009 7:55:10 PM
We had huge discussions around this in the beginning of the XQuery development, whether we need to preserve these confusing (to the end user) semantics of XPath 1.0. Backwards-compatibility and unification of XPath 2.0 for XSLT and XQuery won out in the end.
Best regards
Michael
-----Original Mes
. . . Read full entry »
Posted
3/28/2009 5:11:25 PM
*Laughing out loud*
Mystery solved, all results are as expected, for all processors I mentioned.
I turn my back to XSLT just a few months and I am already getting this rusty. I'll pay closer attention to what I am doing next time..
:-)
>
Drs. G.P.H. Josten
Consultant
http://www.daidalos.
. . . Read full entry »
Posted
3/28/2009 5:05:00 PM
At 2009-03-28 16:23 +0100, Geert Josten wrote:
>Hi Michael,
>...
> <set1><xsl:value-of select="
> /descendant-or-self::node()/p[position() = 2] "/></set1>,
>...
> <set2><xsl:value-of select=" //p[position() = 2] "/></set2
. . . Read full entry »
Posted
3/28/2009 4:23:56 PM
Hi Michael,
I ran it against msxsl 4.0, Xalan 2.7.0, Saxon 8 and Saxon 9. They all returned p2 in all cases..
Test.xml:
<?xml version="1.0"?>
<root>
<div>
<p>p1</p>
<p>p2</p>
</div>
<div>
<p>
. . . Read full entry »
Posted
3/28/2009 3:07:21 PM
> Is it true that Xpath 2.0 has changed the meaning of such
> expressions compared to Xpath 1.0?
No, this is unchanged since XPath 1.0.
Which processors did you try, and can we see your code?
Michael Kay
http://www.saxonica.com/
. . . Read full entry »
Posted
3/28/2009 3:03:19 PM
> >> But it isn't. The standard is very clear that $xml//p expands to
> >> $xml/descendant-or-self::node()/p. The ordering is also very clear:
>
> Just to add: I observed that this rule regularly causes
> irritations when teaching XPath/XQuery, as many users assume
&g
. . . Read full entry »
Posted
3/28/2009 1:55:26 PM
Oh, by the way..
I converted the testcases from David Sewell to XSLT 1.0 and 2.0 as well (removed the $xml in front of the Xpath expressions and stored the $xml contents in a file to do the trick), just to see what various XSLT processors would be returning. To my surprise all of the processors I
. . . Read full entry »
Posted
3/28/2009 1:12:47 PM
Geert,
I have checked your test cases; imho, all of them are correct.
Christian
2009/3/28 Geert Josten <http://x-query.com/mailman/listinfo/talk>:
> Yes,
>
> It starts making sense to me now as well. I keep forgetting that $xml/p actually means $xml/child::p. And we all understand
. . . Read full entry »
Posted
3/28/2009 12:56:03 PM
Yes,
It starts making sense to me now as well. I keep forgetting that $xml/p actually means $xml/child::p. And we all understand intuitively what $xml/p[2] means (especially when reading it as $xml/child::p[2])..
Just for the sake of completeness, I wrote a simplistic self-contained testsuite wit
. . . Read full entry »
Posted
3/28/2009 7:38:54 AM
>> But it isn't. The standard is very clear that $xml//p expands to
>> $xml/descendant-or-self::node()/p. The ordering is also very clear:
Just to add: I observed that this rule regularly causes irritations
when teaching XPath/XQuery, as many users assume that the two slashes
can be di
. . . Read full entry »
Posted
3/27/2009 10:46:45 PM
ML 4.0-4 in 3.2 compatibility mode? try (1,2,3,4,5)[2 to 3]
if no error and result is 2 3 then better not care about it - it in history.
On Fri, Mar 27, 2009 at 10:35 PM, David Sewell <http://x-query.com/mailman/listinfo/talk> wrote:
> For MarkLogic (4.0-4), sets 1 and 2 return the same a
. . . Read full entry »
Posted
3/27/2009 10:27:36 PM
exist 1.2.5 - set 4 is same as set 5 :(
anybody can check 1.3?
i did not get yet latest 1.3 from svn
Also would be helpful same info about Marklogic.
2Ronald for your case you can use brackets <set4>{ ($xml//p)[2] }</set4>
With best wishes,
Slav
On Fri, Mar 27, 2009 at 10:06 PM, Rona
. . . Read full entry »
Posted
3/27/2009 8:53:15 PM
At 2009-03-27 15:35 -0400, David Sewell wrote:
>For MarkLogic (4.0-4), sets 1 and 2 return the same as set 5 (only p2).
>In other words, [position() eq 2] is parsed differently from [2].
But 3.2.2(1) reads:
"If the value of the predicate expression is a singleton atomic
value of
. . . Read full entry »
Posted
3/27/2009 8:33:04 PM
> exist 1.2.5 - set 4 is same as set 5 :(
> anybody can check 1.3?
I already noticed this as a bug and will take care of it. Thanks for the
test.
Wolfgang
. . . Read full entry »
Posted
3/27/2009 8:00:28 PM
At 2009-03-27 14:31 -0400, David Sewell wrote:
>Over on another list there has been a discussion of unexpected results
>from an XQuery like the following. The issues are how the parser
>interprets, in particular, the abbreviated syntax '//' and '[N]' as an
>equivalent to '[position() eq
. . . Read full entry »
Posted
3/27/2009 6:57:43 PM
> My belief is that the standard requires that two nodes (p2,
> p4) should be returned for result sets 1-4 below, because the
> interpretation of the XPath should in each case be identical.
> Set 5, on the other hand, should return only p2.
Yes, you're right. Anything else is a bug.
. . . Read full entry »
Posted
3/27/2009 3:52:03 PM
No, it's in ML 4.0-4 in strict XQuery 1.0 mode as well.
On Fri, 27 Mar 2009, Vyacheslav Sedov wrote:
> ML 4.0-4 in 3.2 compatibility mode? try (1,2,3,4,5)[2 to 3]
> if no error and result is 2 3 then better not care about it - it in history.
>
> On Fri, Mar 27, 2009 at 10:35 PM, David
. . . Read full entry »
Posted
3/27/2009 3:35:25 PM
For MarkLogic (4.0-4), sets 1 and 2 return the same as set 5 (only p2).
In other words, [position() eq 2] is parsed differently from [2].
Before filing a bug report I wanted more input, as this seems to be an
area where informed people disagree about the standard. So I'm
temporarily resisting my d
. . . Read full entry »
Posted
3/27/2009 3:05:02 PM
COUTHURES Alain wrote:
> > I think there are three possible styles of XML
> > representation:
> > (a) one that looks as much as possible like current
> > human-readable XQuery. [...]
> > (b) one that uses a bit more XML markup, e.g. giving an
> > alternati
. . . Read full entry »
Posted
3/27/2009 2:34:38 PM
"We're seeing different behavior from a couple of XML parsers." I mean
"XQuery parsers", sorry.
On Fri, 27 Mar 2009, David Sewell wrote:
> Over on another list there has been a discussion of unexpected results
> from an XQuery like the following. The issues are how the p
. . . Read full entry »
Posted
3/27/2009 2:33:05 PM
Thank you again, Michael, for your response.
> Perhaps this should be a project for EXQuery.
Good idea !
> I suspect your chances of getting everyone to accept your design are
> much better if you have a forum for consultation rather than trying to
> present it as a fait accompli - ev
. . . Read full entry »
Posted
3/27/2009 2:31:41 PM
Over on another list there has been a discussion of unexpected results
from an XQuery like the following. The issues are how the parser
interprets, in particular, the abbreviated syntax '//' and '[N]' as an
equivalent to '[position() eq N]'.
My belief is that the standard requires that two nodes (
. . . Read full entry »
Posted
3/27/2009 2:08:45 PM
> I would like XQuery XML notation to be at the same level as XSLT.
If you make it look too much like xslt then essentially it is XSLT
since it's the same programming model, with (then) the same syntax.
This is explictly what xq2xml did
http://monet.nag.co.uk/xq2xml/
But I agree it would be
. . . Read full entry »
Posted
3/27/2009 1:52:58 PM
Pavel Minaev wrote:
> On Fri, Mar 27, 2009 at 12:06 PM, Ronald Bourret
> <http://x-query.com/mailman/listinfo/talk> wrote:
>> Hmmm. I would have thought that, in each case, only p2 is returned.
>>
>> According to the spec, "For each item in the input sequence, the
. . . Read full entry »
Posted
3/27/2009 1:27:29 PM
Michael Kay wrote:
>> I will add to my XML script engine "tXs" [...] my own XML
>> notation for XQuery.
> Perhaps this should be a project for EXQuery.
Yes, I think so.
> I think there are three possible styles of XML representation:
> (a) one that looks as mu
. . . Read full entry »
Posted
3/27/2009 1:04:41 PM
> I would have liked a reasonable XML notation for XQuery...
did you mean XQueryX (http://www.w3.org/TR/xqueryx/)
By the way - is it possible to have in xquery function similar to
XSLT`s doc(' ') which return XSLT itself, but for XQuery best case is
to return this in XML form - XQueryX)?
With
. . . Read full entry »
Posted
3/27/2009 12:48:28 PM
On Fri, Mar 27, 2009 at 12:06 PM, Ronald Bourret
<http://x-query.com/mailman/listinfo/talk> wrote:
> Hmmm. I would have thought that, in each case, only p2 is returned.
>
> According to the spec, "For each item in the input sequence, the predicate
> expression is evaluated us
. . . Read full entry »
Posted
3/27/2009 12:06:54 PM
Hmmm. I would have thought that, in each case, only p2 is returned.
According to the spec, "For each item in the input sequence, the
predicate expression is evaluated using an inner focus, defined as
follows: The context item is the item currently being tested against the
predicate. The co
. . . Read full entry »
Posted
3/27/2009 11:13:37 AM
Hello Vyacheslav,
>> I would have liked a reasonable XML notation for XQuery...
>>
>
> did you mean XQueryX (http://www.w3.org/TR/xqueryx/
I'm afraid XQueryX is just a notation for machines not for human beings
because each and every expression is represented in a tree notat
. . . Read full entry »
Posted
3/27/2009 11:08:50 AM
Hello Michael,
The same issue arises when one uses XQuery server-side code together
with XQuery client-side code: either the XQuery application server has
to serialise the content of the script tag as a CDATA section instead
of escaping special characters, or the browser/plug-in should decod
. . . Read full entry »
Posted
3/27/2009 10:59:32 AM
Hello Michael,
Thank you for your answer.
Because a recommendation needs a long time to be published, as soon as I
will write my own XRX application, I will add to my XML script engine
"tXs" (something in between XProc and the XSLT machine shown at XML
Prague) my own XML notation for
. . . Read full entry »
Posted
3/27/2009 10:49:59 AM
> Because a recommendation needs a long time to be published, as soon as I
will write my own XRX application, I will add to my XML script engine "tXs"
(something in between XProc and the XSLT machine shown at XML Prague) my own
XML notation for XQuery. I will publish it then...
Perh
. . . Read full entry »
Posted
3/27/2009 9:59:02 AM
Hello,
I also think that XQuery can be very nice at client-side, especially
with XForms. I already looked at Zorba...
When a plug-in is necessary, it means that public use is a problem and
that version management is difficult.
My project named XSLTForms is a client-side implementation of XForm
. . . Read full entry »
Posted
3/27/2009 9:46:25 AM
> I would have liked a reasonable XML notation for XQuery...
I think this requirement will keep coming up. It's frankly embarrassing that
in XProc, queries have to be escaped as CDATA. If we solved this problem,
all sorts of opportunities would open up - XQuery used for assertions in
XSD, XSD s
. . . Read full entry »
Posted
3/27/2009 7:52:38 AM
Hi Dana,
Not potentially stupid at all. This is probably as good a place to start as
any other:
http://tinyurl.com/dfyko5
Ta,
Howard
> -----Original Message-----
> From: daniela florescu [mailto:http://x-query.com/mailman/listinfo/talk]
> Sent: Thursday, March 26, 2009 1:42 PM
. . . Read full entry »
Posted
3/26/2009 10:51:26 PM
Markus Pilman wrote:
Hi,
> There is already an implementation which uses the XMLHttpRequest
> from the browser, but that one is not complete.
Good news.
> If you need any support, please feel free to write me directly.
Well, I am just having a look and evaluating the integratio
. . . Read full entry »
Posted
3/26/2009 8:45:36 PM
I posted feature request to OO to implement possibility to use XQuery
as scripting language (in addition to Basic, JavaScript, BeanShell &
Python).
http://qa.openoffice.org/issues/show_bug.cgi?id=100594
Please vote if you like this idea and stay tuned. By the way - it
would be nice to have Bu
. . . Read full entry »
Posted
3/26/2009 6:51:22 PM
I want the XQuery to determine if the @maxOccurs attribute exists in
an <xs:element> tag somewhere in the schema, and its value isn't 1. If this
is true, then, for all elements that have a @ref attribute in the schema
(because we now know there's at least one), the XQuery should get the st
. . . Read full entry »
Posted
3/26/2009 6:08:08 PM
At 2009-03-26 10:49 -0500, Philip Cantin wrote:
>I am trying to access the 'maxOccurs' attribute within the for-loop,
>where $ref is the 'ref' attribute, and return distinct <xf:bind>
>elements with no duplicate elements. However, I can't seem to set
>the $max variable properly
. . . Read full entry »
Posted
3/26/2009 6:04:14 PM
> I like the REST sample. From the source. But it does not
> work. It freeze for a while, then nothing. I am behind a proxy
> here, that's maybe the point (depends on Zorba configured to use
> the same connection settings as IE.) The weather forecast does
> not work in the same
. . . Read full entry »
Posted
3/26/2009 5:55:05 PM
Hi Slav,
Yes, JavaScript and XQuery can work together on the same page. They
can interact with one another through the DOM. This allows you to use
existing JavaScript code, e.g., to program mash-ups, without having to
completely rewrite this code with XQuery.
Kind regards,
Ghislain
> ca
. . . Read full entry »
Posted
3/26/2009 5:41:13 PM
Hello,
You are actually welcome to contribute to the project, especially if
you have experience in programming extensions for any browser (IE,
Firefox, Safari, Opera, Google Chrome...). There are also other
interesting features which could be added, e.g., a debugger.
So, if you would like t
. . . Read full entry »
Posted
3/26/2009 5:15:52 PM
________________________________
From: http://x-query.com/mailman/listinfo/talk [mailto:http://x-query.com/mailman/listinfo/talk] On
Behalf Of Philip Cantin
Sent: 26 March 2009 15:50
To: http://x-query.com/mailman/listinfo/talk
Subject: returning elements without duplicates,based
on an XM
. . . Read full entry »
Posted
3/26/2009 4:58:53 PM
> But it does not
> work. It freeze for a while, then nothing.
I have to say that one reason I quietly dropped the sample applet from Saxon
a couple of years ago was that it was so hard to help users with this kind
of problem. (That and the fact that the code was simply getting far too
bl
. . . Read full entry »
Posted
3/26/2009 4:36:50 PM
Florent Georges wrote:
> I like the REST sample.
BTW, the examples use type="text/xquery", while the XQuery rec. defines application/xquery, though it seems it has not been accepted by IANA yet:
http://www.w3.org/TR/xquery/#id-mime-type
Regards,
--
Florent Georges
http
. . . Read full entry »
Posted
3/26/2009 4:24:46 PM
daniela florescu wrote:
> we are happy to announce the public release of XQiB
Really nice!
I like the REST sample. From the source. But it does not
work. It freeze for a while, then nothing. I am behind a proxy
here, that's maybe the point (depends on Zorba configured to use
the same
. . . Read full entry »
Posted
3/26/2009 3:16:39 PM
We have started an effort called EXQuery http://www.exquery.org to try
and increase the portability of XQuery Applications.
We believe that a number of additional standards are required to
complement W3C XQuery 1.0. If we can develop such standards and get
broad vendor adoption then portability sh
. . . Read full entry »
Posted
3/26/2009 3:13:57 PM
Hi Slav,
> by the way i can suggest to your team next target - XQuery as
> OpenOffice scripting language :)
I am sure, there are a lot of use cases for XQuery in applications :-)
> i note in sample that element names in XPath is uppercase and don`t
> seen default namespace declaration
. . . Read full entry »
Posted
3/26/2009 3:05:06 PM
>> by the way i can suggest to your team next target - XQuery as
>> OpenOffice scripting language :)
> I am sure, there are a lot of use cases for XQuery in applications :-)
With my EXQuery hat on - We would love to here about them so that we
can make improvements, if you do have us
. . . Read full entry »
Posted
3/26/2009 2:37:44 PM
Michael,
Oh, yes...I forgot to mention earlier:
I'd like no two <xf:bind> element tags to be the same; that's why I was
using the distinct-values() function.
~PJC
On Thu, Mar 26, 2009 at 1:51 PM, Michael Kay <http://x-query.com/mailman/listinfo/talk> wrote:
>
> I want
. . . Read full entry »
Posted
3/26/2009 2:29:41 PM
good job - thank you very much, i did not demand something to do -just asked about plans
by the way i can suggest to your team next target - XQuery asOpenOffice scripting language :)
i note in sample that element names in XPath is uppercase and don`tseen default namespace declaration as xhtml, prob
. . . Read full entry »
Posted
3/26/2009 1:41:39 PM
> Mac's native XQuery support
Howard,
May I ask a potentially stupid question here:
does Mac has native XQuery support ?
Could you send a pointer?
Thanks
Dana
> onto the device because of memory
> constraints.
>
> Howard
>
>> -----Original Message-----
>> From
. . . Read full entry »
Posted
3/26/2009 1:12:44 PM
Michael and Ken,
Thanks a bunch for your responses and help!
Michael, I'll try and illustrate a bit better what I was trying to do
earlier.
I want the XQuery to determine if the @maxOccurs attribute exists in an
<xs:element> tag somewhere in the schema, and its value isn't 1. If this is
t
. . . Read full entry »
Posted
3/26/2009 12:47:24 PM
iPhone!
I just had to write a fairly complex SAX-type parser on the iPhone because
XQuery isn't supported; it probably took me ten times longer than it would
have using XQuery. I'm suspecting that the iPhone team decided not to move
the Mac's native XQuery support onto the device because of memory
. . . Read full entry »