Posted
11/19/2009 10:05:37 AM
Please ignore the following if you have no interest in XML-related training.
In Q1'2010 I will be in Europe a couple of times for some standards
meetings (OASIS and ISO) and conferences ( http://www.XMLPrague.cz
and PEPPOL) and I like to take advantage of my presence there by
offering Crane's h
. . . Read full entry »
Posted
11/10/2009 5:04:13 PM
Dear all,
there is a BOF session organized in the Web 2.0 Expo in New York
next week about the role of XQuery in the architecture for
new Web .20 applications.
If you are interested, please join.
Information bellow:
Nov 16-19 at the Javits center for the Web 2.0 expo and conference :
. . . Read full entry »
Posted
11/9/2009 8:09:39 PM
Hi,
> I need to count the total number of distinct collections in my db (eXist XML
> Database).
> How can i do this in a compact way using XQuery?
This won't be possible without using extension functions. Different
systems will have different ideas of what constitutes a "collection&
. . . Read full entry »
Posted
11/9/2009 7:24:51 PM
Thanks to all.
Both Wolfgang approaches work well.
Regards!
2009/11/9 G. Ken Holman <http://x-query.com/mailman/listinfo/talk>
> At 2009-11-09 18:55 +0000, Ricardo Queirós wrote:
>
>> I need to count the total number of distinct collections in my db (eXist
>> XML Dat
. . . Read full entry »
Posted
11/9/2009 6:55:18 PM
Hi,
I need to count the total number of distinct collections in my db (eXist XML
Database).
How can i do this in a compact way using XQuery?
Thanks!
--
Ricardo Queirós
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachm
. . . Read full entry »
Posted
11/9/2009 2:07:10 PM
At 2009-11-09 18:55 +0000, Ricardo Queirós wrote:
>I need to count the total number of distinct
>collections in my db (eXist XML Database).
How are you defining "distinct" in your
situation? There are many possible ways: string
value, tree structure, tree structure of str
. . . Read full entry »
Posted
11/4/2009 10:03:02 AM
look like "soup from stone" (or nails or axe - depend from country) -
php should leave our lives at all
Stephen Leacock - "I detest life-insurance agents: they always argue
that I shall some day die, which is not so." -
http://www.brainyquote.com/quotes/authors/s/stephen_leac
. . . Read full entry »
Posted
11/3/2009 10:34:54 PM
Hello,
The PHP bindings are featured in an IBM developerWorks article:
http://www.ibm.com/developerworks/xml/library/x-zorba/index.html.
Best regards,
William
On Fri, Oct 16, 2009 at 7:17 AM, Matthias Brantner
<http://x-query.com/mailman/listinfo/talk> wrote:
> Hello,
> the Zorba XQ
. . . Read full entry »
Posted
11/2/2009 6:14:07 PM
Back in August, the XML Query Working Group announced the availability of
version 1.0.0 of the XQuery Update Facility Test Suite [1]. This test
suite reflects the XQuery Update Facility 1.0 Candidate Recommendation [2]
that was published on June 9.
We are pleased to have received results from
. . . Read full entry »
Posted
11/1/2009 1:16:01 PM
Hello XQuery fans,
I am just curious, are there any XQuery fans participating in this
competition,
and using it as an app development language ?
http://datacamp.eventbrite.com/
If yes, it would be really interesting to know how XQuery performed
given the task.
Let us know !
Dana
Other rela
. . . Read full entry »
Posted
11/1/2009 9:39:32 AM
Hello XQuery lovers!
A couple of weeks ago we started a wiki at http://xquery.pbworks.com
in order to help XQuery enthusiasts from the same area to gather
around a snack and a beer. The aim is to promote knowledge sharing and
best practice amongst XQuery developers and business professionals
aroun
. . . Read full entry »
Posted
10/29/2009 5:11:40 PM
Altova is pleased to announce general availability version 2010 of its
MissionKit XML, database, and UML tools. v2010 is our MOST WANTED
release and includes over 70 new customer-requested features. Just a few
of these include:
* Support for WSDL 2.0, JSON, and SysML technologies
* Database s
. . . Read full entry »
Posted
10/29/2009 2:02:44 PM
I will be out of the office starting 10/25/2009 and will not return until
10/30/2009.
I am in Las Vegas for 2009 IBM IOD Conference. My availability is limited but
am available to any important or emergent matters. I will check my emails a
few times a day and be available from my cell. If you
. . . Read full entry »
Posted
10/29/2009 10:56:45 AM
Hi,
I am planning to research the comparison and benchmarking XQuery Implementation in DBMS (SQL Server, Oracle, DB2). There are a few question to discuss as following:
1. I wonder if anybody has ever done the similar research?
I would be appreciate if anybody could provide my any related sour
. . . Read full entry »
Posted
10/29/2009 10:37:16 AM
Hi,
There is also the TPoX Benchmark suite that might be worth taking a look at..
http://tpox.sourceforge.net/
Kind regards,
Geert
>
Drs. G.P.H. Josten
Consultant
http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +
. . . Read full entry »
Posted
10/29/2009 9:09:48 AM
A fair bit of work has been done but more is always needed.
I think you need to start out with very clear objectives, especially in the
following areas:
* are you going to try and measure how well the products handle something
close to a "real-life" workload (including factors such as
. . . Read full entry »
Posted
10/28/2009 10:18:02 PM
Hello,
You can find a partial list of XML query benchmarks at [1]. You should
also search DBLP [2] for XML and benchmark, as there may be more recent
research in this area. Finally, be sure to read your license agreements
carefully. Unfortunately, many databases do not allow you to publish the
. . . Read full entry »
Posted
10/16/2009 12:00:29 PM
Hello,
I am new in XQuery.
Could somebody suggest is there any free implementation of XQuery for PHP?
Thanks.
Regards,
Wely
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20091016/f9a8ce3f/attachment.htm
. . . Read full entry »
Posted
10/16/2009 9:17:20 AM
Hello,
the Zorba XQuery processor (zorba-xquery.org) provides language
bindings for PHP.
Matthias
On 16.10.2009, at 05:00, Wely Live wrote:
> Hello,
>
> I am new in XQuery.
> Could somebody suggest is there any free implementation of XQuery
> for PHP?
> Thanks.
>
> R
. . . Read full entry »
Posted
10/16/2009 9:02:03 AM
with eXist (http://exist-db.org) you don`t need php anymore (and even
nor Apache and nor MySQL)
On Fri, Oct 16, 2009 at 7:00 AM, Wely Live <http://x-query.com/mailman/listinfo/talk> wrote:
> Hello,
>
> I am new in XQuery.
> Could somebody suggest is there any free implementation
. . . Read full entry »
Posted
10/7/2009 9:46:33 AM
Maybe this is of interest to the XQuery developers in the Bay Area.
http://www.w3.org/2009/11/TPAC/DevMeeting.html
Best regards
Dana
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20091007/e529d039/attachment.h
. . . Read full entry »
Posted
10/6/2009 9:21:03 PM
>
> I think that's not quite correct. Typeswitch case clauses
> expect a SequenceType, which includes ItemType. So the tests
> can be any node type or any schema type (see
> http://www.w3.org/TR/xquery/#id-typeswitch and
> http://www.w3.org/TR/xquery/#doc-xquery-SequenceType)
. . . Read full entry »
Posted
10/6/2009 8:09:09 PM
> I think that's not quite correct. Typeswitch case clauses
> expect a SequenceType, which includes ItemType. So the tests
> can be any node type or any schema type (see
> http://www.w3.org/TR/xquery/#id-typeswitch and
> http://www.w3.org/TR/xquery/#doc-xquery-SequenceType).
>
>
. . . Read full entry »
Posted
10/6/2009 4:34:35 PM
On Tue, Oct 6, 2009 at 14:44, David Sewell <http://x-query.com/mailman/listinfo/talk> wrote:
> On Mon, 5 Oct 2009, Joe Wicentowski wrote:
>
>> As far as your specific question, you could run a series of "if ($date
>> castable as ...) then ... else" statements on th
. . . Read full entry »
Posted
10/6/2009 12:59:37 PM
Hi James,
Got it - now I understand.
Well, if your dates are normalized to yyyy-mm-dd, I'd suggest keeping
them as is in date/@when. This way, you can set up a range index on
@when, and you can do date comparisons (<, >, =) based on the
searches. See eXist's documentation on setting up in
. . . Read full entry »
Posted
10/6/2009 10:44:09 AM
On Mon, 5 Oct 2009, Joe Wicentowski wrote:
> As far as your specific question, you could run a series of "if ($date
> castable as ...) then ... else" statements on the following datatypes:
[...]
> As an alternative to conditional expressions, I'm not sure if
> typeswitch wo
. . . Read full entry »
Posted
10/6/2009 10:39:32 AM
On 2009-10-06 06:44, David Sewell wrote:
> On Mon, 5 Oct 2009, Joe Wicentowski wrote:
>
>> As far as your specific question, you could run a series of "if ($date
>> castable as ...) then ... else" statements on the following datatypes:
>
> [...]
>
>> As an
. . . Read full entry »
Posted
10/6/2009 8:09:56 AM
I don't know if eXist has any schema support. If it does, you can define a
type genericDate that is a union of xs:date, xs:gYearMonth, and xs:gYear.
You can't cast to the union type (sadly) but you can construct an element
and validate against a schema that defines the element as a union type, and
. . . Read full entry »
Posted
10/6/2009 1:05:27 AM
Hi there,
I've a silly question about the best way to parse dates. I'm passing
a parameter (in eXist) that is part of the URL for an xquery and I
want to separate it into its individual parts of year month and day. I
could test the string and do substring-before and after and such, or
create my o
. . . Read full entry »
Posted
10/5/2009 9:16:57 PM
James,
I've encountered the same issue with dates in TEI documents. What
follows are some thoughts/suggestions about using TEI dates in eXist.
I think the issue is The TEI Guidelines allows/encourages one to mix
date datatypes, thereby conflating data with precision in dates
(http://www.tei-c.or
. . . Read full entry »
Posted
10/3/2009 11:53:14 AM
Hi,
How about online articles, news feeds, blogs? Though these are typically relatively short in length..
Kind regards,
Geert
>
Drs. G.P.H. Josten
Consultant
http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0)
. . . Read full entry »
Posted
10/2/2009 11:03:46 PM
Hello People,
preparing an extensive XQuery workshop, I am looking for interesting sample data. What I have in mind is data that
- are public and available online via URL (either static or as REST-ful webservice)
- have intermediate complexity (> 50 data items, <= 5 MB)
- must be in English
. . . Read full entry »
Posted
10/2/2009 4:41:31 PM
Hans Juergen,
I only have three words of advise, given your request:
www.data.gov
http://www.recovery.gov/
www.programmableweb.com/
Best regards
Dana
On Oct 2, 2009, at 3:03 PM, Hans-Juergen Rennau wrote:
> Hello People,
>
> preparing an extensive XQuery workshop, I am looking for int
. . . Read full entry »
Posted
10/2/2009 2:19:00 PM
Hi,
the FLWOR Foundation has developed a set of library modules written in XQuery.
These modules currently consist of 217 functions that provide a functionality similar to the
functionality (e.g. statistic or logic functions) provided in today's spreadsheet applications
(e.g. Microsoft Excel).
Al
. . . Read full entry »
Posted
10/2/2009 2:38:04 AM
Hi Michael,
Thanks a lot for your reply. Sorry about not being more explicit or clear.
I'll bear that in mind for my future emails.
What I meant with "works" is that the search expression and the term did
match. When they matched, the output was the term searched for. When they
didn't m
. . . Read full entry »
Posted
10/2/2009 12:39:34 AM
Dear David and Hans-Juergen,
Thanks a lot for your replies and, notably, for Jans-Juergen's explanation.
Very useful indeed!
This is a bit more complex than perl's regular expressions but still quite
straightforward at the end of the day. The solution had crossed my mind very
fast, but then I got
. . . Read full entry »
Posted
10/2/2009 12:39:10 AM
It's very unhelpful to report that something "doesn't work" without saying
how it failed. And if you expected the expression to do something useful,
it's useful to say what you expected it to do: you can't expect us to guess
the intention behind incorrect code.
If $q is a variable conta
. . . Read full entry »
Posted
10/1/2009 10:13:38 PM
Hi Manual,
if I understand you correctly, you wonder how you can compose a match pattern from variable and fixed parts, e.g. framing a variable term by an initial ^ and a trailing $, right?
The solution is simple: use an _expression_ whose string value is the desired sequence of characters. Ofte
. . . Read full entry »
Posted
10/1/2009 9:53:29 PM
Hi,
I'm a bit stuck trying to run a regexp pattern in a XQuery search file.
(1) where $record/langSet[@xml:lang="en"]/tig/term[matches(., $q)]
works
(2) where $record/langSet[@xml:lang="en"]/tig/term[matches(.,
"$q")] doesn't work
(3) where $record/langSet
. . . Read full entry »
Posted
10/1/2009 7:29:31 PM
At 2009-10-01 15:18 -0700, Anil Shekhar wrote:
>Thanks Ken. It worked. I did learn something new today.
>
>I am able to successfully read from a database. However if I add the argum=
>ent to doc() to read files from the file system I do not see anything being=
> displayed - blank
. . . Read full entry »
Posted
10/1/2009 4:40:28 PM
you haven't said what you want to occur.
But I am guessing maybe this is what you are looking for
* where $record/langSet[@xml:lang="en"]/tig/term[matches(.,
fn:concat("^",$q,".*$"))] *
David A. Lee
http://x-query.com/mailman/listinfo/talk
http://www.calldei.co
. . . Read full entry »
Posted
10/1/2009 4:18:09 PM
Thanks Ken. It worked. I did learn something new today.
I am able to successfully read from a database. However if I add the argument to doc() to read files from the file system I do not see anything being displayed - blank page.
for $d in doc("file:///C:/Users/ashekhar/Desktop/Mark Logi
. . . Read full entry »
Posted
10/1/2009 12:50:41 PM
Anil,
Since this is a question specific to MarkLogic Server, I recommend
joining the mailing list at
http://developer.marklogic.com/discuss/subscribe.xqy?list=general
You can also search the list: for example, try
http://marklogic.markmail.org/search/?q=XDMP-UNEXPECTED+1.0-ml (the
second hit
. . . Read full entry »
Posted
9/30/2009 10:53:30 PM
At 2009-09-30 18:13 -0700, Anil Shekhar wrote:
>XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error,
>unexpected DeclareFunction_
The message says that your declaration of a function is unexpected.
>in /shakespeare.xqy, on line 8 [1.0-ml]Line 8 is where I have
>defined the
. . . Read full entry »
Posted
9/30/2009 7:13:51 PM
Dear Experts,
I am new to XQuery and I need your help. I am getting the following error when accessed ...
http://127.0.0.1:8010/shakespeare.xqy
500 Internal Server Error
XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected DeclareFunction_
in /shakespeare.xqy, on line
. . . Read full entry »
Posted
9/29/2009 9:23:12 PM
"UTF-8" is default value for encoding attribute in xml prolog
On Tue, Sep 29, 2009 at 8:14 PM, Jesus Rodrigues
<http://x-query.com/mailman/listinfo/talk> wrote:
> Dear,
>
> I needed read a lot of xml and some of this file haven't the attribute
> encoding="UTF-8&quo
. . . Read full entry »
Posted
9/29/2009 6:48:42 PM
If the XML document has an encoding declaration (<?xml encoding="...."?>) then you must ensure that the file is actually encoded using this encoding.
If the XML document has no encoding declaration, then it should typically be encoded in UTF-8 (though there are other ways of indic
. . . Read full entry »
Posted
9/29/2009 2:35:50 PM
Dear Vyacheslav Sedov
However, sometime the file that I'm try to read wasn't a UFT-8.
is it possible set the encoding dynamically? Or it's necessary open the file
and convert to UFT-8?
Regards
2009/9/29 Vyacheslav Sedov <http://x-query.com/mailman/listinfo/talk>
> "UTF-8"
. . . Read full entry »
Posted
9/29/2009 2:14:31 PM
Dear,
I needed read a lot of xml and some of this file haven't the attribute
encoding=*"UTF-8"*. And some xml has too a problem with utf-8 (invalid
character like this GA�?S). I haven't control about the xml I just needed
read.
Is possible solution this problem using the saxo
. . . Read full entry »
Posted
9/28/2009 12:21:10 PM
Bill,
Yes eXist provides mechanisms for transforming directly using XSLT
without the need for Java -
1) XQuery extension function transform:transform(...) which Andrew
already mentioned.
2) Some sort of custom pipeline using our Controller XQuery approach
3) XProc pipeline using our XProcXQ
4) XSL
. . . Read full entry »
Posted
9/28/2009 10:24:02 AM
Hi Bill,
The best thing to do is sign up to one of the mailing lists:
"xquery talk" http://x-query.com/mailman/listinfo/talk
"xml dev" http://www.xml.org/xml-dev/
Ask your question there, hopefully get a helpful response, and then
the email chain gets archived so its useful
. . . Read full entry »
Posted
9/24/2009 5:39:11 PM
Schwartz, Christine wrote:
> I’m helping teach some basic XQuery and was asked this question: In a
> FLWOR expression, does the where clause have to come before an order by
> clause?
>
> Seems like it should, but can’t seem to find this written down anywhere.
The order
. . . Read full entry »
Posted
9/24/2009 5:27:16 PM
Ken and John,
Thanks for your help with this. It's interesting to know that XQuery 1.1 will be changing this required order.
Regards,
Chris
> Snelson, John wrote:
>
> Schwartz, Christine wrote:
> > I’m helping teach some basic XQuery and was asked this question: In a
&
. . . Read full entry »
Posted
9/24/2009 12:18:33 PM
At 2009-09-24 11:08 -0400, Schwartz, Christine wrote:
>I'm helping teach some basic XQuery and was asked this question: In
>a FLWOR expression, does the where clause have to come before an
>order by clause?
Yes, because it qualifies the set that is to be ordered.
>Seems like it shou
. . . Read full entry »
Posted
9/24/2009 12:08:55 PM
Hi,
I'm helping teach some basic XQuery and was asked this question: In a
FLWOR expression, does the where clause have to come before an order by
clause?
Seems like it should, but can't seem to find this written down anywhere.
Thanks,
Chris
Christine Schwartz
Metadata Libraria
. . . Read full entry »
Posted
9/19/2009 12:00:53 AM
Good start.
The next section before you go into specification should perhaps be
"Requirements", including assumptions and constraints. This might include
statements such as:
* Serialized XDM will retain information about the descendants of nodes in
the sequence being serialized, but it
. . . Read full entry »
Posted
9/18/2009 9:06:51 PM
Thanks Michael. I think my next step will be to document what
attributes of XDM should be maintained through serialization and what
will be dropped.
I agree that Node Identity is not something that can reasonably be
maintained.
Ancestry is an interesting concept I hadn't considered ...
e.g. if
. . . Read full entry »
Posted
9/18/2009 6:07:21 PM
I have created a first pass at documenting the problem of XDM
Serialization and created some use cases.
I would love any feedback or comments. This is on a new wiki I created
for this purpose. If you would like to comment directly on the wiki
please reply to me and I will give you the invite c
. . . Read full entry »
Posted
9/16/2009 2:55:47 PM
Florent Georges wrote:
> John Snelson wrote:
>
>> Yes - that's what I originally suggested. However the XQuery
>> working group felt it was important to be able change a function
>> to be exported / not-exported without changing every place that
>> function is called.
. . . Read full entry »
Posted
9/16/2009 12:54:47 PM
John Snelson wrote:
> Yes - that's what I originally suggested. However the XQuery
> working group felt it was important to be able change a function
> to be exported / not-exported without changing every place that
> function is called.
Thanks, John and Martin, for those helpful pr
. . . Read full entry »
Posted
9/15/2009 3:35:25 PM
You clearly didn't understand David's answer.
You can no more "ignore" a namespace declaration in your source document
than you can ignore the first character of each element name. The namespace
is an intrinsic part of the names of your elements, and when selecting
elements by name, you
. . . Read full entry »
Posted
9/15/2009 3:29:00 PM
> XQueryCompiler comp = proc.newXQueryCompiler();
>
> XdmNode source = proc.newDocumentBuilder().build(new
> StreamSource(inputFile));
>
>
>
>
. . . Read full entry »
Posted
9/15/2009 3:26:43 PM
> > There is no standard or even 'community accepted' way of
> serializing XDM
> What is wrong with JSON for this?
Nearly everything, starting with the fact that the target user community is
likely to want something that can be manipulated using XML tools.
In fact, what is right wi
. . . Read full entry »
Posted
9/15/2009 3:10:46 PM
but nice idea "keep it XML"
http://kixml.blogspot.com/2009/09/serving-xml_04.html
it can help to combine XQuery&XSLT into one engine
for example how eXist and Saxon perform exchange? xml as string?
On Tue, Sep 15, 2009 at 10:58 AM, Michael Kay <http://x-query.com/mailman/listinfo
. . . Read full entry »
Posted
9/15/2009 11:44:30 AM
Ok now it's correct.
thank you very much by the help.
2009/9/15 Michael Kay <http://x-query.com/mailman/listinfo/talk>
> You clearly didn't understand David's answer.
>
> You can no more "ignore" a namespace declaration in your source document
> than you can ignore t
. . . Read full entry »
Posted
9/15/2009 11:07:15 AM
Hi,
This is a complete code test:
//---------------------------------------------------------------------------------------------------------------------------------
Processor proc = new Processor(false);
XQueryCompiler comp = proc.newXQueryCompiler();
XdmNode so
. . . Read full entry »
Posted
9/15/2009 8:58:05 AM
>
> > is it important that
> > $a[1]/foo/bar is $a[2]
>
Someone needs to sit down and write down the requirements and use cases.
One requirement that someone suggested was of the nature of "lossless
round-tripping". That would imply that given a sequence (N, M)
. . . Read full entry »
Posted
9/15/2009 8:34:58 AM
Excellent points.
IMHO, asking for 100% lossless is asking too much.
So if its not 100% where's the line ? A lossy implementation would still
be very useful
If one were to start writing down intent, use cases and a proposal, what
would be a good forum for this ?
A web page ? A document via email
. . . Read full entry »
Posted
9/15/2009 3:45:48 AM
> is it important that
> $a[1]/foo/bar is $a[2]
well it's inportant if the next process in the pipeline needs to do any
kind of query processing, which is presumably the point of wanting to
pass an xdm instance in the first place.
if the sequence appears to the next process as $input
. . . Read full entry »
Posted
9/15/2009 1:38:28 AM
Crane Softwrights Ltd. of Ottawa Canada is pleased to announce a US
east-coast (Washington DC/Falls Church VA area) training delivery of
its XML material in partnership with Mark Logic Corporation of San
Carlos California. Through four separately-subscribed classes over
11 consecutive weekdays
. . . Read full entry »
Posted
9/15/2009 12:31:13 AM
> On first glance I can imagine the former being fairly easy, but the
> later much more complex.
The latter isn't a problem as they are different elements in the result,
the $a nodes are _copied_ into their parent as <bar>{$a}</bar> copy here
doesn't copy node identity.
David
. . . Read full entry »
Posted
9/14/2009 11:31:09 PM
David A. Lee wrote:
Hi David,
> let $a := <foo/>
> return
> ( $a , $a , $a )
> ---> recognize all 3 are the same
> let $a := <foo/>
> return
> (
> <bar>{$a}</bar>,<bar>{$a}</bar>,<bar>{$a}</bar>)
> --> do
. . . Read full entry »
Posted
9/14/2009 10:16:22 PM
> On the other hand, it seems to me that we already have such a
> serialization format, and it's XQuery itself - or rather the
> subset that involves literals, sequence "constructor" (i.e.
> comma operator), and direct element/attribute/namespace/text
> constructors. It
. . . Read full entry »
Posted
9/14/2009 9:42:36 PM
>
> I believe this lack of standardization for serialization of
> XDM is both
> a "Problem" and a "BIG Problem"
> Before I extend the topic to "suggested solutions" I would love some
> feedback.
>
> Q: Does anyone else agree this is a "
. . . Read full entry »
Posted
9/14/2009 8:08:59 PM
On Mon, Sep 14, 2009 at 5:48 PM, Evgeny Gazdovsky <http://x-query.com/mailman/listinfo/talk> wrote:
> We had forgot about JSON! :)
congratulations - right move to forget JSON
> _______________________________________________
> http://x-query.com/mailman/listinfo/talk
> http://x-
. . . Read full entry »
Posted
9/14/2009 8:02:27 PM
Still think that JSON may be a variant
. . . Read full entry »
Posted
9/14/2009 7:36:20 PM
What about this document ?
Input:
<foo>
<bar/>
</foo>
Query:
( / , /foo/bar )
If serialized then re-parsed into say :
declare variable $a as external; -> stuck into here
is it important that
$a[1]/foo/bar is $a[2]
David A. Lee
http://x-query.com/mailm
. . . Read full entry »
Posted
9/14/2009 7:12:07 PM
Michael Kay wrote:
>
> Incidentally, one deficiency of the Saxon -wrap format that I mentioned
> earlier is that it doesn't contain any information about node identity. If
> you have a sequence of three elements with the same name and content, it
> won't tell you whether the sequen
. . . Read full entry »
Posted
9/14/2009 6:48:58 PM
We had forgot about JSON! :)
. . . Read full entry »
Posted
9/14/2009 5:06:13 PM
Somewhat Ironically, this solves the same problem the same way JSON did
i.e.
make the serialization format the same as the Code (in Jason's case
Javascript).
It also has the same problem though.
It requires an XQuery paser to parse. Suppose you want to send the
results to something that isnt XQ
. . . Read full entry »
Posted
9/14/2009 3:36:11 PM
David A. Lee wrote:
Hi,
> There is no standard or even 'community accepted' way of
> serializing XDM
While I used to think this is a problem, more and more I think
it is not (or at most a little problem we can live with.) XDM
is a convenient (and needed) data structure to work with wi
. . . Read full entry »
Posted
9/14/2009 2:29:30 PM
On Mon, Sep 14, 2009 at 1:16 PM, Michael Kay <http://x-query.com/mailman/listinfo/talk> wrote:
>> On the other hand, it seems to me that we already have such a
>> serialization format, and it's XQuery itself - or rather the
>> subset that involves literals, sequence "co
. . . Read full entry »
Posted
9/14/2009 2:20:02 PM
On Mon, Sep 14, 2009 at 1:06 PM, David A. Lee <http://x-query.com/mailman/listinfo/talk> wrote:
> Somewhat Ironically, this solves the same problem the same way JSON did i.e.
> make the serialization format the same as the Code (in Jason's case
> Javascript).
> It also has the sam
. . . Read full entry »
Posted
9/14/2009 1:55:51 PM
In Mon, Sep 14, 2009 at 8:02 AM, Evgeny Gazdovsky <http://x-query.com/mailman/listinfo/talk> wrote:
> Still think that JSON may be a variant
I don't see how JSON could be any sort of serious contender to
serialize XDM data, given that the latter is much richer than JSON
primitives.
On th
. . . Read full entry »
Posted
9/14/2009 11:56:24 AM
What about RDF (any not XML notation) and SPARQL/xSPARQL?
. . . Read full entry »
Posted
9/14/2009 11:48:31 AM
I agree with your sentiment
*"if not you can serialize and parse them without loosing any information."
*but not the implication.
This is (partially) true, but the problem with this is there is not
*standardized* way to do this.
For simple things like say sequences of nodes, you can wr
. . . Read full entry »
Posted
9/14/2009 9:32:10 AM
A step towards defining an XDM Serialization would be to knock at the
edges of the problem.
1) I think people would agree that a Document should be Serialized (and
read) in existing standard XML text form.
-- This preserves the most common use case
2) I think it is desirable that a single atom
. . . Read full entry »
Posted
9/14/2009 2:13:43 AM
I'm inclined to thing here that there are multiple issues hiding in the
question of serialization of XDM. Serialization of turtle node, as Evgeny
suggests, points to a non-XML syntax serialization. Similarly, consider a
simple sequence of values:
for $a in (1 to 5) return $a * 5
This cannot be se
. . . Read full entry »
Posted
9/13/2009 11:53:38 PM
David,
in my opinion it is a BIG problem if one feels (like I do) that you are heading for a GREAT idea: advancing from the concept of a byte stream to the concept of an info stream. (info stream = XDM-modelled character stream.) If one remembers what is gained by enabling the interconnection of
. . . Read full entry »
Posted
9/13/2009 3:06:27 PM
I'm dual-posting this because I think it is relevant to XML in general,
but perhaps more so to xquery
Summary (postulate)
There is no standard or even 'community accepted' way of serializing XDM
Why is this a problem
XML languages which produce XDM (such as XPath and XQuery) and can
accept XD
. . . Read full entry »
Posted
9/12/2009 6:00:29 PM
> thanks for the observation! This problem was recently posted in the
> W3C's bugzilla system:
Thanks Christian, somehow the W3C Bugzillas search doesn't like me
(the feeling is mutual).
Pretty annoying thing though, I think there are already quite a lot of
(partial) XQFT implementations ou
. . . Read full entry »
Posted
9/12/2009 4:37:28 PM
Martin,
thanks for the observation! This problem was recently posted in the
W3C's bugzilla system:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=7247
..and is currently discussed by the XQFT task force. A decision how to
solve to this issue will be posted at the same place in near future.
Hop
. . . Read full entry »
Posted
9/12/2009 4:27:53 PM
Hi all,
maybe I'm just a bit late to the party, but is it possible that the
full text grammar from XQFT makes the XQuery grammar ambiguous?
Consider the expression:
element ftcontains { 'x' }
As far as I can see, it's impossible to tell whether this should be
parsed as an element constructor f
. . . Read full entry »
Posted
9/11/2009 5:23:17 PM
> XQuery 1.1 is introducing the "private" function modifier, which will
> allow the definition of functions that aren't exported from a module.
Simply dropping the namespace requirement and mandating that only the
properly namespaced functions are exported might have accomplished t
. . . Read full entry »
Posted
9/11/2009 4:40:39 PM
Martin Probst wrote:
>> XQuery 1.1 is introducing the "private" function modifier, which will
>> allow the definition of functions that aren't exported from a module.
>
> Simply dropping the namespace requirement and mandating that only the
> properly namespaced func
. . . Read full entry »
Posted
9/11/2009 4:05:35 PM
Martin Probst wrote:
> Indeed, you may not define functions or variables in modules that
> don't have the same namespace URI as the module:
>
> "The name of every variable and function declared in a library module
> must have a namespace URI that is the same as the target names
. . . Read full entry »
Posted
9/11/2009 4:02:13 PM
With a big caveat as I have not been involved in any of this, just how
it seems to me.
> From what I can see in the XQuery 1.0 REC, the "local" namespace
> is aimed to be used only in a main module, and only to locally
> define functions (not variables.)
I think this simp
. . . Read full entry »
Posted
9/11/2009 2:01:05 PM
> I have a problem to ignore a xmls attribute in a tag and did not found
> information how to ignore this attribute. Somebody can help me.
A namespace declaration is not an attribute in the XDM model used by
XPath and Xquery. The name of an element includes the namespace.
Most likely the
. . . Read full entry »
Posted
9/11/2009 9:45:08 AM
Dear all,
I have a problem to ignore a xmls attribute in a tag and did not found
information how to ignore this attribute. Somebody can help me.
I'm using the saxon HE 9.2 to read a xml. My xml have a tag with "xmlns="
http://www. ..."", how ignore the "xmlns" whe
. . . Read full entry »
Posted
9/10/2009 3:09:58 PM
Hello Lisa,
the article was very interesting to me, thank you! Whereas hitherto I only thought of "schema reports", your work shows me that there is a parallel approach one might call "schema querying". (In fact, I borrowed this term from the namespace URI you used in your arti
. . . Read full entry »
Posted
9/10/2009 2:24:52 PM
Hi,
From what I can see in the XQuery 1.0 REC, the "local" namespace
is aimed to be used only in a main module, and only to locally
define functions (not variables.) This is a bit surprising to me,
as I thought we could define both local:* functions & variables,
both in main and
. . . Read full entry »
Posted
9/9/2009 11:02:50 PM
i guess XForms in any case better then ordinar HTML forms - so i can
assume that you just underinvestigate this case :)
On Wed, Sep 9, 2009 at 5:32 PM, Jesse Wu<http://x-query.com/mailman/listinfo/talk> wrote:
> Hi Sedov,
>
> I tried XForms but found when the XML model is loaded fro
. . . Read full entry »
Posted
9/9/2009 5:50:19 PM
> copy $x := ...
> transform (
> delete nodes $x//branch[ID != (4, 8)], $x//leaf[ID != 15]
> )
> return $x
Whoops, that should have been
copy $x := ...
transform (
delete nodes ($x//branch[every $x in (4, 8) satisfies ID != $x],
$x//leaf[ID != 15])
)
return $x
If you compar
. . . Read full entry »
Posted
9/9/2009 4:00:17 PM
> I am trying to prune an xml tree based on known ids for the nodes in that
> tree.
> [...]
> For example if I know that I’m in tree id 1 and the branches I
> took in order are 1,4,8,
Are you doing this using copy/transform like the last time?
What about deleting those nodes
. . . Read full entry »
Posted
9/9/2009 1:39:41 PM
i am very seriously thinking about XSLT-based convertor from XSD to
Schematron rules - i have opinion that Schematron power underestimated
in XML world
On Wed, Sep 9, 2009 at 11:55 AM, ricardo
queiros<http://x-query.com/mailman/listinfo/talk> wrote:
> Hi,
> I develop a tool for browsin
. . . Read full entry »
Posted
9/9/2009 1:29:58 PM
Rick Jelliffe published a number of articles on this, the last one is
http://broadcast.oreilly.com/2009/08/converting-xml-schemas-to-sche-1.html
Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Vyacheslav Sed
. . . Read full entry »
Posted
9/9/2009 1:26:44 PM
The commercial Saxon 9.2 EE (previous Saxon-SA) XML Schema processor has
a command line switch that outputs an XML file with the schema
information in a format suitable for further processing.
For details see the -scmout:filename option
http://www.saxonica.com/documentation9.2/schema-processing/c
. . . Read full entry »
Posted
9/9/2009 11:54:05 AM
As a typical use case, schema information is frequently used to process
GML(Geography Markup Language) instance data. Mostly, the schema
querying part is done with the help of Xerces-J XML schema processing
library in Java. But I do think it is quite useful to have the same
thing done in XML proce
. . . Read full entry »
Posted
9/9/2009 10:32:05 AM
Hi Sedov,
I tried XForms but found when the XML model is loaded from a very
large file with many attributes (vary for each element) for each of
the element, the screen editing is not practical. May be there is a
better way to do this using XForms but I could not find a good
example.
Thanks -Jes
. . . Read full entry »
Posted
9/9/2009 9:55:02 AM
Hi,
I develop a tool for browsing XML Schema files in a easy way.
The tool calls http://x-query.com/mailman/listinfo/talk and can be downloaded as open source at
http://www.dcc.fc.up.pt/schemaDoc/.
It is based on a XSLT file that transforms the schema file in XHTML code to
be interpreted in a gener
. . . Read full entry »
Posted
9/9/2009 9:44:18 AM
All,
I am trying to prune an xml tree based on known ids for the nodes in that tree.
For example in the following code:
<tree ID="1">
<branch ID="1">
<branch ID="4">
. . . Read full entry »
Posted
9/9/2009 9:30:03 AM
what about XRX? XForms-REST-XQuery
On Wed, Sep 9, 2009 at 3:06 AM, Martin Probst<http://x-query.com/mailman/listinfo/talk> wrote:
>> {for $parsed-query-term in $parsed-data
>> let $parse-query-value := substring-after(
. . . Read full entry »
Posted
9/9/2009 2:06:41 AM
> {for $parsed-query-term in $parsed-data
> let $parse-query-value := substring-after($parsed-query-term,"=")
> return <row attr="{???}">{xmldb:decode($p
. . . Read full entry »
Posted
9/9/2009 12:14:37 AM
Hello People,
XQuery is _the_ language for agile and efficient evaluation of XML resources (who would contradict me?). But there is another important technology, of course, XML Schema: though its use is often reduced to document validation or data binding, schemas offer a great wealth of static in
. . . Read full entry »
Posted
9/8/2009 4:42:05 PM
Probably not the most elegant way ...
==========
declare variable $s :=
"v1=v1&a1=a1&v2=v2&a2=a2&v3=v3&a3=a3" ;
let $a := tokenize($s , "&" )
for $i in 0 to xs:integer(count($a) div 2 - 1)
return <row attr='{ tokenize(
. . . Read full entry »
Posted
9/8/2009 4:22:08 PM
Sorry for the newbie question, I am still in the process of learning XQuery.
What will be the the best way to get HTML form post data into a XML.
For example:
get-data returns
v1=v1&a1=a1&v2=v2&a2=a2&v3=v3&a3=a3& .... v10=v10&a10=a10
need to get it into XML as
<ro
. . . Read full entry »
Posted
9/7/2009 1:50:07 PM
what about remote job?
On Mon, Sep 7, 2009 at 12:42 PM, Marcus Clemens<http://x-query.com/mailman/listinfo/talk> wrote:
> Hi
>
>
>
> Marklogic are looking to hire a couple of permanent consultants . you will
> be based in the UK and there will be some travel to Europe and t
. . . Read full entry »
Posted
9/7/2009 10:42:03 AM
Hi
Marklogic are looking to hire a couple of permanent consultants . you
will be based in the UK and there will be some travel to Europe and the
USA
Please send a cv if this is of any interest
Kind regards
Marcus Clemens
Director & Senior Consultant
Mercator IT Ltd
Tel
. . . Read full entry »
Posted
9/6/2009 10:19:27 AM
Hello, Hans-Juergen
I do believe you are understanding my perspective. It give me hope that
perhaps it is not a singular one and I'm not utterly and entirely insane.
You've made some interesting comments !
> 2. (but also) XML Schemas (!)
> => xsd info commands
>
I had never tho
. . . Read full entry »
Posted
9/5/2009 11:09:25 PM
Hello David,
gradually I start to get a feeling for your perspective. Pulling "an efficient mechanism for interconnecting them" into focus you move across the boundaries of the XQuery spec's field of vision. Your criticism that design is not only function and module design gains power. V
. . . Read full entry »
Posted
9/5/2009 8:57:12 AM
Hello Hans-Juergen
I do agree with a lot of your comments ...
However to add to this one There's another side to this.
> When it comes to the other dimension of scaling - the number of processing steps (rather than the number of units processed in a given step) - it is not at all per se better
. . . Read full entry »
Posted
9/4/2009 10:24:34 PM
Hello David,
yes, I agree that it is desirable to be free in one's choice how to shape the units of functionality, large or small. Still, I would like to make a couple of points.
You wrote:
"... so they have instead built 'monolithic' programs that do all the work within 1 program (xquery, x
. . . Read full entry »
Posted
9/4/2009 3:24:47 PM
David A. Lee schrieb:
>>> * Encourage scripting languages developers to embed these XML
>>> languages directly into the scripting languages (say perl).
>> More precisely, write bindings to implementations in C/C++.
>>
> Only if the scripting language itself is writ
. . . Read full entry »
Posted
9/4/2009 3:12:03 PM
> If you can find one vendor/ implementation that has all the pices its a tad
> easier (document types match !) but its still a bit of hell.
That is where I'd say at least in Java land, you can get everything to
accept SAX or DOM. It might not be the absolute best choice (e.g.
Saxon and its
. . . Read full entry »
Posted
9/4/2009 2:59:53 PM
Jakob Fix schrieb:
> Talking of tools, what is the experience of people on this list with
> xmlstarlet (http://xmlstar.sourceforge.net/) which seems to me like a
> close contender to xmlsh (but haven't looked closely)?
It is built on LibXML2 and LibXSLT by Daniel Veillard. It is like a ba
. . . Read full entry »
Posted
9/4/2009 2:50:13 PM
David A. Lee schrieb:
>> Now my questions:
>> - would you recommend alternatives for rapid tool development?
>> - if taking a similar approach - would you like to recommend special
>> details, perhaps the script language actually used, or other aspect?
>>
> In my op
. . . Read full entry »
Posted
9/4/2009 2:36:10 PM
Talking of tools, what is the experience of people on this list with
xmlstarlet (http://xmlstar.sourceforge.net/) which seems to me like a
close contender to xmlsh (but haven't looked closely)?
cheers,
Jakob.
On Fri, Sep 4, 2009 at 13:09, David A. Lee<http://x-query.com/mailman/listinfo/talk
. . . Read full entry »
Posted
9/4/2009 2:29:03 PM
> This is why I suggest either (both)
>
> * Use a scripting language that already is 'in process' with all the XML
> core languages you want to use (xquery, xslt etc)
> -> examples XProc, xmlsh
>
> * Encourage scripting languages developers to embed these XML languages
>
. . . Read full entry »
Posted
9/4/2009 2:10:37 PM
I agree that if you stick to use case #1 (only call xquery once or few
times) and all your input and output are files (or file names) then
pretty much any scripting language that lets you launch a subprocess is
equivalent and you will have very little performance hit.
Historically, I suggest m
. . . Read full entry »
Posted
9/4/2009 11:39:10 AM
Hans-Juergen Rennau wrote:
> As Daniela Florescu emphasized, XQuery is an information processing language, rather than a query language, and this makes it a great implementation language for tool development. But two problems discourage the use of "raw queries" - without frontent or wr
. . . Read full entry »
Posted
9/4/2009 10:59:19 AM
Hello David,
scripting and tool devlopment using script-wrapping are akin, but not quite the same. It seems to me important to distinguish clearly between two usecases:
1. the tool's functionality is provided by executing XQuery once (or only a few times)
2. the tool's functionality is provided b
. . . Read full entry »
Posted
9/4/2009 10:11:56 AM
On Fri, Sep 4, 2009 at 5:03 AM, David A. Lee<http://x-query.com/mailman/listinfo/talk> wrote:
> But equally important, IMHO, is to be able to "glue" the data from one
> module to another efficiently. That needs common in-memory formats.
> And a way in the langua
. . . Read full entry »
Posted
9/4/2009 9:39:50 AM
>
> That's the downside of issuing specifications and waiting for the
> implementations to happen. Thank God XML does have a standard
> serialization, so any document can migrate from one implementation
> to another :-)
>
I wish that were true. Its true for "Documents"
. . . Read full entry »
Posted
9/4/2009 9:03:21 AM
>
>> * Use a scripting language that already is 'in process' with all the
>> XML core languages you want to use (xquery, xslt etc)
>> -> examples XProc, xmlsh
>>
>> * Encourage scripting languages developers to embed these XML
>> languages directly into
. . . Read full entry »
Posted
9/4/2009 8:51:15 AM
xmlstar looks very useful !!!
Taking a quick look though it seems it will suffer exactly the same
performance problems as most other scripting languages because it has no
way to "glue" the commands together in process. So you end up having a
process execution for each command and ful
. . . Read full entry »
Posted
9/4/2009 8:46:52 AM
> While XProc is probably the cleanest solution, another approach in
> particular for ad-hoc scripting might be to use an existing scripting
> language that can run on top of the JVM (1), e.g. jython or jruby.
> This gives you the flexibility of handy scripting but doesn't incur
>
. . . Read full entry »
Posted
9/4/2009 8:09:21 AM
>
> Now my questions:
> - would you recommend alternatives for rapid tool development?
> - if taking a similar approach - would you like to recommend special details, perhaps the script language actually used, or other aspect?
>
In my opinion the problem with doing this in pe
. . . Read full entry »
Posted
9/4/2009 12:08:09 AM
As Daniela Florescu emphasized, XQuery is an information processing language, rather than a query language, and this makes it a great implementation language for tool development. But two problems discourage the use of "raw queries" - without frontent or wrapping of any sort - as tools:
. . . Read full entry »
Posted
9/3/2009 5:00:32 PM
On Thu, Sep 3, 2009 at 8:21 AM, Gary Lewis<http://x-query.com/mailman/listinfo/talk> wrote:
> ... but the various implementors might want to consider what they
> have in common and then do something (eg, create an xquery learning
> resource site) that would benefit all xquery develop
. . . Read full entry »
Posted
9/3/2009 2:57:01 PM
The XQSharp team are pleased to announce the long-awaited release of
XQSharp 1.0
XQSharp is an XQuery processor for the .NET Framework. It is developed
by Clinical & Biomedical Computing Limited, a member of the W3C.
XQSharp 1.0 is the first complete release of XQSharp containing our .NET
. . . Read full entry »
Posted
9/3/2009 12:35:18 PM
Ivan Pedruzzi schrieb:
> On Wed, Sep 2, 2009 at 4:49 AM, Michael Ludwig <http://x-query.com/mailman/listinfo/talk>
> wrote:
>> Also, it never fails to amaze me how people can think that documents
>> exceeding a certain size - 1 MB, okay: 5 MB - are a good idea. Just
>>
. . . Read full entry »
Posted
9/3/2009 11:21:39 AM
The difference between R and XQuery however is that R is a language
with one implementation.
Thus the site for downloading R can also provide all this information
to users, for XQuery it is too fragmented.
Best Regards,
Bryan Rasmussen
On Tue, Sep 1, 2009 at 5:40 PM, Gary Lewis<http://x-query.
. . . Read full entry »
Posted
9/3/2009 9:21:52 AM
> The difference between R and XQuery however is that R is a language
> with one implementation.
> Thus the site for downloading R can also provide all this information
> to users, for XQuery it is too fragmented.
>
> Best Regards,
> Bryan Rasmussen
Hi Bryan - Absolutely true.
. . . Read full entry »
Posted
9/2/2009 5:15:33 PM
dengping wei wrote:
> staticContext.declareNamespace("sawsdl",
> " http://www.w3.org/ns/sawsdl");
> xmlns:sawsdl="http://www.w3.org/ns/sawsdl"
Both strings do not match (see the extra whitespaces in Java.)
Regards,
--
Florent George
. . . Read full entry »
Posted
9/2/2009 2:08:46 PM
> But when I want to get value of attribute "sawsdl:modelReference", I use the
> query
>
> for $x in
> doc(\"aa.wsdl\")/wsdl:definitions/wsdl:types/xsd:schema/xsd:complexType
> return <node>{$x/@sawsdl:modelReference}</node>
>
> It returns not
. . . Read full entry »
Posted
9/2/2009 1:36:50 PM
Dear all,
I have a question when I using xquery the get the attribute value of an
element.
when my query is
for $x in doc(\"aa.wsdl\")/wsdl:
definitions/wsdl:types/xsd:schema/xsd:complexType
return <node>{$x}</node>
It returns the results as follows:
<node>
<xsd:
. . . Read full entry »
Posted
9/2/2009 11:57:41 AM
dengping wei wrote:
Hi,
> Then I want to get the value of attribute "name",
> I use the query [...] return <node>{$x/@name}</node>
BTW, that does not give you the value of the attribute @name but that gives you the attribute node itself (that's why you end up with
. . . Read full entry »
Posted
9/2/2009 11:49:57 AM
A. Steven Anderson schrieb:
> How timely....;-)
> http://dataspora.com/blog/xml-and-big-data/
Well, if data is tabular, what benefits can be obtained by storing it as
XML? None that I could see. If you later need XML, it is really easy to
generate. So why would you store it as XML in the fir
. . . Read full entry »
Posted
9/2/2009 11:44:02 AM
John Snelson wrote:
Hi,
> > This makes sense, though it would be a nuisance to have to
> > define ref() and deref() every time. Is there any
> > consideration to make them standard library functions?
> My recollection is that the WG considered adding them and
> rejecte
. . . Read full entry »
Posted
9/2/2009 10:36:59 AM
On Wed, Sep 2, 2009 at 3:44 AM, Florent Georges<http://x-query.com/mailman/listinfo/talk> wrote:
>> > This makes sense, though it would be a nuisance to have to
>> > define ref() and deref() every time. Is there any
>> > consideration to make them standard lib
. . . Read full entry »
Posted
9/2/2009 10:33:10 AM
I guess your approach is a bit different than what the spec planned -
their idea was that you'd just want to perform the updates, but not
"witness" the effects.
A different approach would be this:
copy $x := doc("tree.xml")
modify (
let $node := $x//tree[@ID = 1] /branch
. . . Read full entry »
Posted
9/2/2009 12:31:57 AM
How timely....;-)
http://dataspora.com/blog/xml-and-big-data/
--
A. Steven Anderson
Independent Consultant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20090901/ddaefb71/attachment.htm
. . . Read full entry »
Posted
9/1/2009 9:37:30 PM
Ron Bourret wrote:
>> What's the single killer app for SQL?
Ad hoc queries.
For the most part, the DBMS platforms that preceded the arrival of SQL, the hierarchical and CODASYL models, implemented queries with traversal logic in application programs. There were exception
. . . Read full entry »
Posted
9/1/2009 8:41:00 PM
Hmmmmm. What's the single killer app for SQL?
In both cases, I don't think there is one, in the sense that the Web is
the killer app for the Internet or spreadsheets were the killer app for PCs.
I think that the combination of XQuery and XML databases simply make it
possible to build applicatio
. . . Read full entry »
Posted
9/1/2009 8:36:42 PM
I agree with Daniela. For some real-world examples of this kind of
thing, see:
http://www.rpbourret.com/xml/UseCases.htm
It's worth noting that people tried to build many of these applications
on relational databases and failed. The article explains some of the
reasons why.
This article is
. . . Read full entry »
Posted
9/1/2009 5:38:41 PM
Pavel Minaev wrote:
> On Tue, Sep 1, 2009 at 6:44 AM, John Snelson<http://x-query.com/mailman/listinfo/talk> wrote:
>> Tuple types won't make it into XQuery 1.1, but the closures support in
>> higher order functions allows you to effectively return sequences of
>> sequenc
. . . Read full entry »
Posted
9/1/2009 4:35:13 PM
Thanks Martin, that works. Except the 3rd delete doesn't run on the updated tree from the 2nd delete, so 2 copy statements are necessary. Is there a different way to do this, so the delete statements operate on the updated tree w/o doing a copy each time? i.e. some sort of piping construct ?
co
. . . Read full entry »
Posted
9/1/2009 3:44:36 PM
Hi Pavel,
Tuple types won't make it into XQuery 1.1, but the closures support in
higher order functions allows you to effectively return sequences of
sequences:
(: Wrap a sequence as a function item :)
declare function local:ref($arg as item()*) as function() as item()*
{
function() { $arg
. . . Read full entry »
Posted
9/1/2009 1:34:02 PM
> why do developers and architects so stubbornly refuse just to _listen_ ?
Maybe we should try listening to them? To find out why they are not including xquery products in their architectures.
I can make a few guesses -
This are somethings that customers might tell you:
1) u
. . . Read full entry »
Posted
9/1/2009 1:13:18 PM
Hans-Juergen Rennau schrieb:
>
> of course you are right in that XSLT and XQuery are built on the XDM,
> not on XML as a serialization format, and you are right in that the
> XDM can be completely separated from the serialization format. But I
> prefer to view XML and the XDM as one
. . . Read full entry »
Posted
9/1/2009 12:40:42 PM
On Wed Aug 26 17:39:05 PDT 2009, Daniela Florescu wrote:
> ... XQuery has tremendous potential for adding
> value to customers, but the proof isn't there yet, and the path isn't
> clear either.
>
> There has to be a larger XQuery pool of expertise ...
Hi Daniela - I finally got aro
. . . Read full entry »
Posted
9/1/2009 12:33:51 PM
This really is the interesting question. My bet is something in search.
Given that all Excel/Word/Outlook/etc. documents are or can be represented
in XML, and that standard text search doesn't do a great job generally in
the space (top vendors in the enterprise use facets, entity extraction, and
o
. . . Read full entry »
Posted
9/1/2009 12:30:54 PM
> With all due respect, one major reason why XML/XQuery/XSLT isn't as popular
> as many other programming languages has less to do with ignorance of it's
> capabilities and more to do with it's 1) lack of performance, 2) overall
> information bloat, and 3) unintuitive language construct
. . . Read full entry »
Posted
9/1/2009 12:21:06 PM
Andrew Welch schrieb:
> What is the number one "killer app" for XQuery, shining example that
> can be given to people when talking about XML databases - one that is
> high profile enough that they may have heard of it?
Maybe Markmail. But being a commercial endeavour, it does n
. . . Read full entry »
Posted
9/1/2009 10:52:33 AM
2009/8/29 Martin Probst <http://x-query.com/mailman/listinfo/talk>:
> JSON [expletive deleted] for mixed content, while XML/XQuery is pretty bad at
> supporting key/value maps. Both is possible in each of them, but
> painful.
Sequences of sequences would help here...
--
Andrew W
. . . Read full entry »
Posted
9/1/2009 10:50:48 AM
2009/8/31 Daniela Florescu <http://x-query.com/mailman/listinfo/talk>:
>> why do developers and architects so stubbornly refuse just to _listen_ ?
>
> Because we don't talk to them (a) enough and (b) with a message that they
> understand.
What is the number one "killer ap
. . . Read full entry »
Posted
9/1/2009 10:09:08 AM
> it will always be a marginal language (for example, that's how I
> see the XQ scripting in the browser situation; it's simply not THAT
> much better than JavaScript, and has the disadvantage of not having
> a million libraries and code snippets and programmers).
XQuery in the
. . . Read full entry »
Posted
9/1/2009 10:09:05 AM
And let me add two more things that you could do with XQuery that you
can hardy do otherwise
-- because there are more cool :-)
6) virtualize it for the cloud execution. Scale it up and down for
cloud execution.
The more layers, and less declarative the layers, the harder is this
to do.
7)
. . . Read full entry »
Posted
9/1/2009 9:55:54 AM
>
>
> I honestly think that all the talk about XDM as a data model and XQ
> as a turing complete declarative language, etc., is sort of moot
> unless they do somehow enable something that RDBMS/BI/Data
> warehouses/search vendors can't readily do with existing approaches.
W
. . . Read full entry »
Posted
9/1/2009 9:21:28 AM
On Tue, Sep 1, 2009 at 6:44 AM, John Snelson<http://x-query.com/mailman/listinfo/talk> wrote:
> Tuple types won't make it into XQuery 1.1, but the closures support in
> higher order functions allows you to effectively return sequences of
> sequences:
>
> (: Wrap a sequence as a
. . . Read full entry »
Posted
8/31/2009 8:55:03 PM
Daniela Florescu schrieb:
>> a widespread lack of a _deep_ understanding of XML.
>
> Hans-Juergen,
>
> Yes, you are right. There is a deep misunderstanding in IT of our
> core message about the role of XML in the new architectures.
What is that core message? (If it is not wha
. . . Read full entry »
Posted
8/31/2009 7:21:35 PM
With all due respect, one major reason why XML/XQuery/XSLT isn't as popular
as many other programming languages has less to do with ignorance of it's
capabilities and more to do with it's 1) lack of performance, 2) overall
information bloat, and 3) unintuitive language constructs.
Sure disk space
. . . Read full entry »
Posted
8/31/2009 5:32:46 PM
> I remember years ago, when I was really frustrated that architects
> would not _listen_ that Xquery
> was this wonderful and useful thing, I asked advice from Jim Gray.
> He was always ready to listen and help,
> and, even though he was too much of a believer in SQL and schemas
. . . Read full entry »
Posted
8/31/2009 4:52:55 PM
Yes, of course there are domains where XML cannot be afforded due to performance and data volume issues. I suggest that we take this for granted, I assure you there is no "one-size-fits-all" ambition - let us now consider the domains where those issues do not play a primary role.
Your hi
. . . Read full entry »
Posted
8/31/2009 4:39:08 PM
>
> Only a few days ago it occurred to me that "information processing
> language" may be better than "data processing language",
Thanks for saying this. As soon as I hit the send button I remembered
that I promised
myself never use "data" in connection t
. . . Read full entry »
Posted
8/31/2009 4:19:40 PM
Daniela,
the term you use - data processing language - is exactly the term I arrived at when trying to label what XQuery is. And indeed, "XQuery" is a terrible misnomer which may be much more guilty of the present niche existence than one suspects. This is because anyone having used some
. . . Read full entry »
Posted
8/31/2009 3:37:38 PM
Hello Michael,
of course you are right in that XSLT and XQuery are built on the XDM, not on XML as a serialization format, and you are right in that the XDM can be completely separated from the serialization format. But I prefer to view XML and the XDM as one organic whole, and exactly this is wha
. . . Read full entry »
Posted
8/31/2009 11:39:11 AM
I can't find the link now, but I recall seeing some mentions of a
possibility of introducing some form of tuple type (in a sense of an
aggregate of arbitrary-typed values - including sequences) in XQuery
1.1, specifically to tackle the multiple-return-values and
sequences-of-sequences problems. Are
. . . Read full entry »
Posted
8/31/2009 9:58:34 AM
> a widespread lack of a _deep_ understanding of XML.
Hans-Juergen,
Yes, you are right. There is a deep misunderstanding in IT of our
core message
about the role of XML in the new architectures. XML is not syntax, it
can/should be
the primary way of modeling data. XQuery is not a query la
. . . Read full entry »
Posted
8/30/2009 5:38:21 PM
The question why XQuery has not yet become a widely used language has certainly many facets! But there is one which is easily overlooked: a widespread lack of a _deep_ understanding of XML. The vast majority of developers (and architects?) view XML essentially as a portable encoding. In other words
. . . Read full entry »
Posted
8/29/2009 11:25:31 PM
Hi Martin,
Thanks for sharing this study. I won't comment on siding with
particular vendors :) Though, I would like to further say a bit,
generally about data management for software applications.
I have felt, and also think that even today, data modelers like
keeping an enterprise data in Rela
. . . Read full entry »
Posted
8/29/2009 8:31:01 PM
On Sat, Aug 29, 2009 at 11:26 AM, Pavel Minaev<http://x-query.com/mailman/listinfo/talk> wrote:
> It is clearly deprecated in XML Namespaces and XML Infoset. However, I
> don't see how this deprecation applies to XQuery directly. Literal
> result elements in the latter, for example,
. . . Read full entry »
Posted
8/29/2009 6:06:14 PM
> As I wrote earlier, people who design relational plus XML combined
> data models, have a good choice with hybrid SQL plus XQuery
> processing, for manipulating such data. Most of the large DB vendors,
> seem to be promoting this design.
It might just be me, but looking at SQL/XML mak
. . . Read full entry »
Posted
8/29/2009 6:00:32 PM
> There is also the option of JSON DBs like Perservere, MongoDB (and maybe
> CouchDB if you like the flatness). Gives you the same schema-less storage
> capabilities, but using JavaScript instead of XQuery. Which do you think is
> easier for someone to pick up? Of course, you are kind o
. . . Read full entry »
Posted
8/29/2009 5:47:16 PM
> After I spent a nice chunk of time testing this in stylus studio, I took the
> concept and ported it into our application. Only to discover that the
> implementation we are using, MXQuery 0.6.0, does not support ancestor!
> Argh.. =) So if anyone thinks it can possib
. . . Read full entry »
Posted
8/29/2009 4:30:56 PM
> So far as I can see, there's nothing restricting the use of
> such namespaces in the spec: "foo" in above code sample is an
> UriLiteral, and portable XQuery code must ensure that it is
> in the lexical namespace of xs:anyURI; and the latter
> explicitly allows for re
. . . Read full entry »
Posted
8/29/2009 12:11:31 PM
Martin Probst wrote:
>> Beyond that, the relational databases do support XML and XQuery
somehow, but XML standards beyond that are virtually nonexistant.
The analysis at https://community.emc.com/docs/DOC-2999 covers:
* Oracle XML DB 11g Release 1(11.1)
* IBM DB2 pureXML 9.5
* E
. . . Read full entry »
Posted
8/29/2009 10:14:22 AM
On Sat, Aug 29, 2009 at 8:08 AM, Pavel Minaev<http://x-query.com/mailman/listinfo/talk> wrote:
> Also, if indeed allowed, is the practice of using relative namespace
> URIs in any way deprecated in XQuery spec (or other documents that it
> normatively references), the same way they a
. . . Read full entry »
Posted
8/29/2009 1:32:29 AM
Hello there,
Look like XQuery developers very respectable peoples in UK
http://www.itjobswatch.co.uk/jobs/uk/xquery.do
But in Russia...
Well... Now i am looking for remote XQuery/XSLT job - today i got
final notification about eviction from flat owner.
It is true. I have only one month to resto
. . . Read full entry »
Posted
8/28/2009 11:56:00 PM
On Fri, Aug 28, 2009 at 8:44 PM, Mukul Gandhi<http://x-query.com/mailman/listinfo/talk> wrote:
> On Sat, Aug 29, 2009 at 8:08 AM, Pavel Minaev<http://x-query.com/mailman/listinfo/talk> wrote:
>> Also, if indeed allowed, is the practice of using relative namespace
>> URIs
. . . Read full entry »
Posted
8/28/2009 11:30:54 PM
Hi Martin,
I agree to many of your points. Kindly see my answers to some
specific points, you have mentioned.
On Fri, Aug 28, 2009 at 5:35 PM, Martin Probst<http://x-query.com/mailman/listinfo/talk> wrote:
> exploiting this benefit leads to the schema evolution problems that
> plagu
. . . Read full entry »
Posted
8/28/2009 8:38:54 PM
I'm trying to find out what is the defined semantics for the use of
relative URIs for namespaces. For example:
declare namespace foo = "foo";
<foo:bar/>
So far as I can see, there's nothing restricting the use of such
namespaces in the spec: "foo" in above code s
. . . Read full entry »
Posted
8/28/2009 7:51:49 PM
>Or better yet, can anyone think of a one pass solution to this problem?
Change the second delete to
delete node $x//branch[count(.//leaf[@ID != 25]) = 0]
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
_____
From: http://x-query.com/mailman/listinfo/ta
. . . Read full entry »
Posted
8/28/2009 5:10:41 PM
Thank you Michael.
One thing I should have mentioned in the original email, is that the leaf IDs can be shared across different branches. But branches are only used once across all trees. So if there is
<branch ID="2">
<branch ID="4">
. . . Read full entry »
Posted
8/28/2009 4:09:24 PM
Hi Mike,
I have no doubts, about usefulness of XML format. It's tremendously useful.
But I also think, that relational format is much useful even today. We
know, various reasons why relational model is beneficial (like high
security, faster processing, transactional support etc).
Today, many p
. . . Read full entry »
Posted
8/28/2009 3:05:01 PM
> But I also think, that relational format is much useful even today. We
> know, various reasons why relational model is beneficial (like high
> security, faster processing, transactional support etc).
While there is certainly a potential performance benefit in processing
fixed length rec
. . . Read full entry »
Posted
8/28/2009 2:07:02 PM
>> schema evolution was one of the common use cases (the others being managing/querying documents, certain types of data integration, and semi-structured data).
PODS at the UCLA Health System fits the common use case you describe. It is part of a service-oriented architecture
. . . Read full entry »
Posted
8/28/2009 1:35:12 PM
Maybe the XQuery community should start local and informal XQuery User
Group Meetup in some area.
I would be a great indicator of the size of the community and maybe
boost a little bit the interest of some developers.
Best regards,
William
On Fri, Aug 28, 2009 at 11:39 AM, Mukul Gandhi<http:/
. . . Read full entry »
Posted
8/28/2009 1:30:39 PM
Hello,
I have a tree structure and I am trying to use XQuery to delete nodes from it. Here's a simple example of what I have and what needs to happen:
<tree ID="1">
<branch ID="1">
<branch ID="4"
. . . Read full entry »
Posted
8/28/2009 12:44:15 PM
William Candillon wrote:
> I would be a great indicator of the size of the community
^^^
:-)
--
Florent Georges
http://www.fgeorges.org/
. . . Read full entry »