> I think this query is wrong
Yes it is. Please try to understand what you are doing in this query,
otherwise you won't be very successful in the middle term.
Thank you it works.Just a last question please.i need to write a query which
means: return titles of all docs in database where the item/qcode ="tx"and
where one of the subject name contains any one of those string: "FH" or "HG"
let $db := db:open('mybase')for $x in $db//item[@qcode="tx"]where
> ok i understand now. In fact i am looking for results which have this
> condition of qcode=tx . I do not want to know if it's true or false.
Perfect, so use the predicate, as suggested by Max
$d// item[@qcode="tx"]
For more details, please spend some time on an XPath/XQuery primer,
such as h
ok i understand now. In fact i am looking for results which have this condition
of qcode=tx . I do not want to know if it's true or false.
On Tue, Jul 19, 2016 at 6:23 PM +0100, "Christian Grün"
wrote:
$d// item/@qcode="tx"
…returns a boolean value (true or false). Hence,
$d// item/@qcode="tx"
…returns a boolean value (true or false). Hence,
for $d in $d// item/@qcode="tx"
is the same as
for $d in true()
or
for $d in false()
As a result,
$d//subj
will give you an error (node expected, boolean found).
On Tue, Jul 19, 2016 at 7:16 PM, Mohamed kharr
Thank you, it works :)What about the error? error: [XPTY0019] descendant::subj:
node expected, xs:boolean found: false().Any idea please?
De : Maximilian Gärber
À : Mohamed kharrat
Cc : BaseX Talk
Envoyé le : Mardi 19 juillet 2016 17h44
Objet : Re: [basex-talk] querying database
Hi Jiri,
Quite some time has passed, and it may well be that you don’t remember
your question on the list… But I wanted to report that BaseX should
now be capable of sending and receiving multipart data with binary
contents [1]: Multipart data will now be transfered as Base64 if it
contains non-AS
Hi Max,
> especially with the FTINDEX, say I indexed all elements with a
> fulltext query that asks for any elments, e.g.
>
> //*[text() contains text { 'bar', 'baz' } any]
Queries of this type will be evaluated by sequential scans, because
all nodes need to be accessed anyway. You can check the
Hi,
especially with the FTINDEX, say I indexed all elements with a
fulltext query that asks for any elments, e.g.
//*[text() contains text { 'bar', 'baz' } any]
would this only use the elements or traverse all other elments
(without index) as well?
How about ft:search("DB", "bar") - would thi
Hi,
you do not need to use doc() or collection() if your documents are
stored in a database.
The documents are just nodes as well, so doing something like:
let $db := db:open('some-db')
for $d in $db//item/@qcode="tx"
return $d
would return the items from all nodes (all files)
BTW: I guess yo
Hi,i have created a database in BaseX GUI but i did not understand how to use
it inside FLWR query.So since i would like to create one FLWR query to query
all my files in the database not only one file with doc()i have tried
collection() is that right? (i have putted all my xml files inside pa
Indeed, looking at the code seems it's already using it. I wonder what
creates that delay though. I will have to investigate it a bit, probably
by debugging BaseX, unless someone already knows. Could a SaxSource vs
StreamSource be the issue? Or that doesn't affect performance? If my
question is
Looks like it wants to use it [1]. You could try running below in the GUI:
Q{java:org.basex.util.Reflect}find("org.apache.xerces.jaxp.validation.XMLSchemaFactory")
/Andy
[1]
https://github.com/BaseXdb/basex/blob/b8c1ae7738664aa3912ade783b8a01a0a2285d25/basex-core/src/main/java/org/basex/query/fu
Thanks, it looks like it's in the classpath. But is it actually used? I
can't be sure. I have seen some strange things happening with Xerces
versions in the past with Saxon.
Anyway, it would be great if BaseX can have a feature to change the
validation options. Should I open a BaseX ticket abo
Hi George,
Just on point #1
I think BaseX does not install Xerces. Entering the line below in the GUI
will tell you the version from the JDK
Q{java:com.sun.org.apache.xerces.internal.impl.Version}getVersion()
For me this returns:
Xerces-J 2.7.1
If you have manually added Xerces to the classpath
Hi, I wonder what is the status of schema validation in BaseX? I have a
Java web service that is used to validate some schemas, which is using
xerces2 to validate XML files. I want to transfer some of this work to
my XQuery scripts in BaseX, so I can minimize the bandwidth on large
files (the X
Reading through the list from the hot shores of Italy!
This *is* a PHP error. PHP has an execution time limit, most probably defined
in an ini-file. However, an "easy way out" is setting the limit for the current
script separately. However, I advise you to only do this for testing purposes,
thi
17 matches
Mail list logo