Hi,
no solution, but I can share my observations:
* base-uri(.) in your example equals 'null'. On the other hand, the same
happens for example when validating with Xerces in Oxygen.
* Saxon EE does validate your xsd OK.
Looks like base-uri() is failing in general in this context with Xerces.
Thank you for the clarification and the example – I wasn’t aware of this option.
Von: Christian Grün
Gesendet: Montag, 1. Juli 2024 10:34
An: Zimmel, Daniel
Cc: basex-talk@mailman.uni-konstanz.de
Betreff: Re: [basex-talk] Command line "-i" directory does not update files
when file
Hi,
is the following behaviour a bug or does it need better documentation?
When in a directory of XML files
one file extension is not .xml but .xsl
then with
java -cp BaseX.jar org.basex.BaseX -u -w -i"localpath/" update.xquery
only .xml-files get updates (not .xsl)
Only with
Nothing substantial to contribute right now to the discussion, but since you
asked for feedback: I really like the Store Module for its ease of use and
access. It is fast, reliable, flexible and short.
With my main use case, when running a handful of updating queries in a row,
accessing a map
xample and avoid the entity problems.
Von: Christian Grün <christian.gr...@gmail.com>
Gesendet: Mittwoch, 22. November 2023 12:41
An: Zimmel, Daniel <d.zim...@esvmedien.de>
Cc: BaseX <basex-talk@mailman.uni-konstanz.de>
Betreff: Re: [basex-talk] Bug in parse-xml-fragment() and ampersan
or internal parser velocity!
Von: Christian Grün <christian.gr...@gmail.com>
Gesendet: Dienstag, 21. November 2023 18:54
An: Zimmel, Daniel <d.zim...@esvmedien.de>
Cc: BaseX <basex-talk@mailman.uni-konstanz.de>
Betreff: Re: [basex-talk] Bug in parse-xml-fragment() and ampersand en
been deleted.
Daniel
Von: Christian Grün
Gesendet: Dienstag, 21. November 2023 16:59
An: Zimmel, Daniel
Cc: basex-talk@mailman.uni-konstanz.de
Betreff: Re: [basex-talk] Bug in parse-xml-fragment() and ampersand entity?
Hi Daniel,
Yes, I assume we’ll need to call it a bug… Although what BaseX
Hi,
is this a bug?
Query:
parse-xml-fragment('Tom Jerry')
Result:
Tom ? Jerry
Same result with:
parse-xml-fragment('Tom DUMMY; Jerry')
BaseX 10.7
Saxon complains correctly that the resulting document node is not well-formed.
BaseX should also return an error,
stian Grün
Gesendet: Dienstag, 3. Oktober 2023 14:38
An: Zimmel, Daniel
Cc: BaseX
Betreff: Re: [basex-talk] use-character-maps vs parameter-document with
db:export()
Hi Daniel,
Is it?
It is. Maybe the parameter could be introduced with the 4.0 version of the
spec. I invite you to add
Hi,
when using db:export, the serialization parameter use-character-maps works just
fine.
But can someone explain why it is not possible to use parameter-document? At
least, it does not work here with 10.3.
As in:
db:export($dbname,$path, map{
'indent':'no',
'omit-xml-declaration':'no',
XQS looks like an interesting approach, thanks for the pointer.
I guess you do know about it, but if you do not, for "an implementation of
Schematron that would work well with BaseX" I use SchXslt quite heavily, which
can be installed with your BaseX installation with the REPO command, see
> Just to be sure: You are pointing to the (as we call it) input bar,
> containing the dropdown menu for the input mode and the text field, right [1]?
right
>> * hit Strg-A to mark the line so I can start with a new query
> And just a note: When placing the cursor in this field, previously
Hi,
somewhere between BaseX 9 and 10 there was a change in the behaviour of the
Find/XQuery window (which I use quite a lot for quick access to data):
* with 9.5, I can enter any valid XPath, and then delete it for a fresh start
with another expression...
* with 10.3, whenever I do the
>> 1. changes that are not saved to disk do not get respected - as
>> opposed to other queries
> True, this feels confusing. Maybe it would be better to disable the test icon
> if the current file has not been saved?
Yes that would be less confusing (to me).
> If you prefer to, you can
Hi,
while I am trying to find my way around the Unit Module, I noticed the
following unexpected behavior.
0. Using the test example from https://docs.basex.org/wiki/Unit_Module#Query in
the GUI
1. changes that are not saved to disk do not get respected - as opposed to
other queries
2.
. Perhaps there is a way to do this with Ant, but I do not
think this is a good idea for portability...
Thanks for the insight, Daniel
-Ursprüngliche Nachricht-
Von: Christian Grün
Gesendet: Mittwoch, 15. März 2023 17:37
An: Zimmel, Daniel
Cc: basex-talk@mailman.uni-konstanz.de
Betreff: Re
: Christian Grün
Gesendet: Donnerstag, 9. März 2023 17:25
An: Zimmel, Daniel
Cc: basex-talk@mailman.uni-konstanz.de
Betreff: Re: [basex-talk] Progress bar (again)
Hi Daniel,
> can anyone say what might be needed to implement this as a module?
Looks interesting! I hope our Wiki article on creat
While this may not solve your problem, I can confirm that your files import
just fine with BaseX 10.3 GUI on my Windows machine.
There is a checkbox in the import dialog "Use XInclude", but it works
regardless whether the I check or uncheck the box.
-Ursprüngliche Nachricht-
Von:
Hey,
I have a task that may take longer to execute (several minutes), so I felt I
got to have a fancy progress bar on the command line to entertain me.
No progress bar though, found this in the archives:
https://mailman.uni-konstanz.de/pipermail/basex-talk/2020-November/015845.html
So this is
Kimber
Gesendet: Donnerstag, 22. Dezember 2022 15:01
An: Zimmel, Daniel ; basex-talk@mailman.uni-konstanz.de
Betreff: Re: Possible to get line number of node?
Interesting—I did not know Oxygen provided this option.
I’m wondering what I could put in an Excel spreadsheet that would make this
work
I can’t answer anything helpful for the reliability of line numbers, but can
tell you how we are doing this in a similar use case:
we make use of what Oxygen calls “simplified XPath index path”
(https://www.oxygenxml.com/doc/versions/25.0/ug-editor/topics/opening-document-from-cli.html)
Not sure why you have the doctype declaration in there... perhaps your parser
is missing XMLSchema.dtd?
In my xml.xsd there is no such declaration, I fetched it from
https://www.w3.org/2001/xml.xsd
Best, Daniel
Von: BaseX-Talk Im Auftrag von
Hans-Juergen Rennau
Gesendet: Mittwoch, 31. August
catalog to the XML parser that is invoked by
> Saxon. This definitely isn’t a fun task.
>
> Gerrit
>
> On 02.06.2022 14:44, Zimmel, Daniel wrote:
>> Hi,
>>
>> after reading https://docs.basex.org/wiki/Catalog_Resolver and
>> digging in the list archives
>
Hi,
after reading https://docs.basex.org/wiki/Catalog_Resolver and digging in the
list archives
(https://mailman.uni-konstanz.de/pipermail/basex-talk/2019-March/014199.html )
I still have trouble understanding catalog files.
Is this supposed to work with xslt:transform() and BaseX GUI 9.7.2?
HE as well.
Thanks!
-Ursprüngliche Nachricht-
Von: Christian Grün
Gesendet: Freitag, 29. April 2022 10:29
An: Zimmel, Daniel
Cc: basex-talk@mailman.uni-konstanz.de
Betreff: Re: [basex-talk] Date picture and xslt:transform()
Hi Daniel,
What do you get if you invoke xslt:processor() ?
If i
e.
Daniel
-Ursprüngliche Nachricht-
Von: Zimmel, Daniel <>
Gesendet: Freitag, 29. April 2022 10:05
An: basex-talk@mailman.uni-konstanz.de
Betreff: Date picture and xslt:transform()
Hi,
why do I get different results with the following two queries?
xslt:transform() does not respect
Hi,
why do I get different results with the following two queries?
xslt:transform() does not respect my date picture.
Expected result:
29. März 2022
Query 1:
{format-date(xs:date('2022-03-29'), '[D]. [MNn] [Y]', 'de', (),
())}
Result:
29. März 2022
How about some custom logging?
for $i in (1 to 10)
return
if ($i = 4) then error()
else file:append-text-lines('C:\tmp\file',string($i))
There might be more sophisticated ways.
Daniel
-Ursprüngliche Nachricht-
Von: BaseX-Talk Im Auftrag von
Patrick Durusau
Gesendet: Dienstag,
If any CSV parser complains about the perfectly valid data in this example, I
would definitely say it is poorly implemented, because it does not comply to
the RFC.
I took a glance at the mail thread and I could not find a hint where exactly
you are having trouble with the quotes missing apart
Are you simply counting the wrong items?
It seems to me you wanted to count:
for $Beurt at $CountInner in $Debat//spreekbeurt
Daniel
-Ursprüngliche Nachricht-
Von: BaseX-Talk Im Auftrag von Ben
Engbers
Gesendet: Mittwoch, 9. März 2022 13:11
An: Basex Mail-lijst
Betreff:
Why not pass both schemas as a string? You could then tokenize it and get two
validation reports.
Or do you want one validation report for two schemas at once? I am not sure if
that’s possible...
let $schema:=
"http://inspire.ec.europa.eu/schemas/bu-base/4.0/BuildingsBase.xsd
> Ok, at least in the GUI using as separator works.
> Is this a HTML-specific separator?
no, this is the decimal notation of a line feed in UTF-8.
Not sure what you environment expects your encoding, you might want to try
carriage return instead ()
Line endings can be fun.
Best Daniel
or, if you prefer, you could even use a function for this, see
https://docs.basex.org/wiki/Output_Module
out:nl()
Von: BaseX-Talk Im Auftrag von
Bridger Dyson-Smith
Gesendet: Donnerstag, 24. Februar 2022 16:57
An: ben.engb...@be-logical.nl
Cc: Basex Mail-lijst
Betreff: Re: [basex-talk]
Wait – my tea kettle is not yet prepared for 3 seconds! When shall I do my
breaks?
Can’t wait to try this in my updating pipelines.
It is always intriguing to learn from this list about performance
optimizations, be it in the implementation or giving example designs, thanks!
Daniel
Von:
only go
so far.
Thanks!
-Ursprüngliche Nachricht-
Von: Christian Grün
Gesendet: Freitag, 7. Januar 2022 18:49
An: Zimmel, Daniel
Cc: BaseX
Betreff: Re: [basex-talk] Questions about the performance of bulk string
matching
Hi Daniel,
Thanks for your code.
My reply is a fairly general
Hi,
recently I ran into serious (as in SERIOUS) performance trouble regarding
expensive regexes, and no wonder why.
Here is my scenario:
* XML text documents with a total of 1m text nodes
* A regex search string, including a huge string dictionary list of 50.000
strings (some of them
Thanks Christian for the confirmation of this behaviour and the useful hints.
I have not tried the IntelliJ plugin but I will! Also interesting feature on
Linux desktops, I have to try this.
Best Daniel
Von: Christian Grün
Gesendet: Mittwoch, 1. Dezember 2021 13:14
An: Zimmel, Daniel
Cc
Hi,
while the BaseX GUI is really great, there are times I want to use Oxygen (for
its features or even for a silly reason like "hey why is there no dark mode in
BaseX-GUI I need a dark mode now because I have eye strain!").
According to the wiki, there is no way to get 3.1 support in Oxygen
then?
-Ursprüngliche Nachricht-
Von: BaseX-Talk Im Auftrag von
Zimmel, Daniel
Gesendet: Mittwoch, 26. Mai 2021 17:31
An: basex-talk@mailman.uni-konstanz.de
Betreff: [basex-talk] Running XQuery Update via apply Ant task
Hi,
is there anyone using BaseX in an Apache Ant scenario?
I have
Hi,
is there anyone using BaseX in an Apache Ant scenario?
I have the following target for XQuery Updating some files (no database
access), but I am too dumb to make an apply task that reads every file in a
fileset.
Usually you place the where you need it to be in your external
command, but
Thank you for the insight on how this works:
so you cannot update a scheduled job, but you can update the
jobs-to-be-scheduled.
Helps a lot,
Daniel
-Ursprüngliche Nachricht-
Von: Christian Grün
Gesendet: Donnerstag, 6. Mai 2021 13:52
An: Zimmel, Daniel
Cc: basex-talk@mailman.uni
Hi,
can someone clarify on the following behaviour?
The docs say:
"Job services can be updated: If a new job is registered, and if there
is already a job with the same id, the old entry will be replaced."
https://docs.basex.org/wiki/Jobs_Module#Services
So when I try to update
en setting is quite useful indeed.
Now I can make a comfortable button for an XML editor to produce a PDF report
with Levenshtein distance markings. BaseX modules are fun.
Thanks, Daniel
-Ursprüngliche Nachricht-
Von: Christian Grün
Gesendet: Donnerstag, 22. April 2021 12:16
An: Zimmel,
Hi,
am I right in assuming that in order to use the XQJ interface as described here
(https://docs.basex.org/wiki/Integrating_oXygen) , you will always need a
running local database instance of BaseX?
I am not able to use the BaseX.jar standalone in a transformation scenario as I
would for
es(): $body: foo=bar=key $key: key
Von: Marco Lettere
Gesendet: Donnerstag, 23. April 2020 10:40
An: Zimmel, Daniel ; basex-talk@mailman.uni-konstanz.de
Betreff: Re: AW: AW: [basex-talk] A question about RESTXQ rest:form-param()
I set up this restxq [1].
And call it with something like [2].
Go
An: Zimmel, Daniel ; basex-talk@mailman.uni-konstanz.de
Betreff: Re: AW: [basex-talk] A question about RESTXQ rest:form-param()
Are you setting the mime type to "application/x-www-form-urlencoded"?
This is the prerequisite in order to get the body of a post parsed to form
parameters.
M.
On 22/0
://docs.basex.org/wiki/Request_Module
On 22/04/20 12:18, Zimmel, Daniel wrote:
> Hi Daniel,
>
> RTFM. Simply pass the body in %rest:POST("{$body}").
>
> Sorry for disturbing!
>
> Daniel
>
> -Ursprüngliche Nachricht-
> Von: Zimmel, Daniel
> Gesendet: Mittwoch,
Hi Daniel,
RTFM. Simply pass the body in %rest:POST("{$body}").
Sorry for disturbing!
Daniel
-Ursprüngliche Nachricht-
Von: Zimmel, Daniel
Gesendet: Mittwoch, 22. April 2020 11:27
An: BaseX
Betreff: [basex-talk] A question about RESTXQ rest:form-param()
Hi,
in an
Hi,
in an HTML form with a RESTXQ POST action, do I really have to declare
%rest:form-param() for every param, or is there a way to pass the full query
component in one parameter?
Best, Daniel
ava:18)
at org.basex.query.func.file.FileFn.item(FileFn.java:25)
... 15 more
Von: Christian Grün
Gesendet: Dienstag, 11. Februar 2020 17:54
An: Zimmel, Daniel
Cc: BaseX
Betreff: Re: [basex-talk] file:move() fails when moving to another file system
>: Die Operation ist nicht erlaubt
A last try: What do you get i
fail
sequentially before the delete if something goes wrong with the copy (?)
Thanks, Daniel
Von: Christian Grün
Gesendet: Dienstag, 11. Februar 2020 16:47
An: Zimmel, Daniel
Cc: BaseX
Betreff: Re: [basex-talk] file:move() fails when moving to another file system
Hi Daniel,
BaseX uses
Hi,
I am able to file:copy() or file:write() a file from a Linux system to a
Windows mount (via cifs).
I am not able to file:move() to the same target.
The error says "file:io-error: Die Operation ist nicht erlaubt"
BaseX version is 9.2.1
Is this a bug or a known restriction with moving
Hi Tom,
I think that trying to copy/modify a huge tree is definitely the bottleneck
here.
Why don’t you copy only your third Message element and then reconstruct the
wrapping Container with ContainerMetaData?
Since the wanted result is a transformation, perhaps a typeswitch expression
might
I would second that using Schematron here seems more complicated than actually
writing the code in XQuery; it is even shorter.
We do this kind of checks in XQuery all the time, similar to the examples below.
Schema validation can also be quite slow when compared to optimized queries in
With xquery:parse(), I wondered about this myself, so I second this question
without having an answer :-(
You will get a query plan if it is a non-static error:
xquery:parse("let $a := return $a + 1", map
{'compile':true(),'pass':true()})
… but what the pass option does is not clear to me.
Hi,
I found out that after adding the third-party jar to the classpath as described
here (http://docs.basex.org/wiki/XQuery_3.1#Collations), I can finally
alphanumeric-sort my map:keys:
map:keys($map_ev) =>
sort('http://www.w3.org/2013/collation/UCA?lang=de;numeric=yes')
Which I like
> In your first query, ADDCACHE was set to false. Does the problem exist
> in both cases?
Definitely.
> Just guessing:
> • Did you get any errors reported while performing updates?
No.
> • Do you have any symbolic links (and potential circular dependencies)
> in the directory you are parsing?
> It looks as if databases are not cleaned up in your environment that
> are temporarily created during the update step.
>
> I guess it will be difficult for you to get this reproduced for us?
Indeed.
It does happen on Windows and Linux, though. I pretty much run the default
setup.
This is a
Hi,
sometimes in my update operations BaseX deliberately is spawning several
databases like the following, with a name of the database plus underscore and
number:
DBNAME_2618234251
caused by
db:replace($dbname, $dbpath|| '/' || $fname, $file-to-import, map {
'intparse': true(),
Gesendet: Mittwoch, 19. Juni 2019 09:56
> An: Zimmel, Daniel
> Cc: BaseX
> Betreff: Re: [basex-talk] Hyphenation with XQuery
>
> Hi Daniel,
>
> I’m not aware of any XQuery implementation. Would you like to give it a try?
> ;)
>
> Best,
> Christian
>
>
>
Hi,
somewhat off-topic to BaseX, but I wonder if anybody already tried to port the
TeX hyphenation algorithm to XQuery?
See for example this Python port:
https://nedbatchelder.com/code/modules/hyphenate.py
>>> hyphenate_word("supercalifragilisticexpialidocious")
['su', 'per', 'cal',
> > * Optimize DB
> > * The first db:replace() via RESTXQ creates a second file with the same
> > base-uri()
> > * The second db:replace() via RESTXQ replaces the earlier created second
> > file (duplicate)
> Do you perform the next steps in the database instance that has been copied
> to
che Nachricht-
> Von: Christian Grün [mailto:christian.gr...@gmail.com]
> Gesendet: Montag, 29. April 2019 16:00
> An: Zimmel, Daniel
> Cc: BaseX
> Betreff: Re: [basex-talk] db:replace() in DBA resulting in duplicates
>
> > Still, when I browse the database, the /DB/pa
Yes, the snapshot seems to fix this.
Thanks, Daniel
> -Ursprüngliche Nachricht-
> Von: Christian Grün [mailto:christian.gr...@gmail.com]
> Gesendet: Donnerstag, 2. Mai 2019 11:16
> An: Zimmel, Daniel
> Cc: BaseX
> Betreff: Re: [basex-talk] 9.2: http://localhost:8984/d
Hi,
in 9.2 web admin I get an HTTP 400 with any file upload:
Stopped at D:/BaseX92/webapp/dba/files/file-upload.xqm, 23/10:
[XPTY0004] Cannot convert empty-sequence() to map(xs:string, xs:base64Binary):
().
The file seems to be sent, but $files is empty.
Is this a bug?
This was working with
n Grün [mailto:christian.gr...@gmail.com]
> Gesendet: Montag, 29. April 2019 11:08
> An: Zimmel, Daniel
> Cc: BaseX
> Betreff: Re: [basex-talk] db:replace() in DBA resulting in duplicates
>
> Hi Daniel,
>
> seems hard to reproduce. Could you tell me what you did step by step?
>
Hello,
something has gone awry in my database after a db:replace():
query:
db:open('DB','/path/file.xml')/base-uri()
result:
/DB/path/file.xml
This is as expected. The result is the replaced file. But when I
query:
db:open('DB')/root[@id='id']/base-uri()
result is a
Thanks for the clarification. This sound like a wise thing to do.
> -Ursprüngliche Nachricht-
> Von: Christian Grün [mailto:christian.gr...@gmail.com]
> Gesendet: Mittwoch, 3. April 2019 13:18
> An: Zimmel, Daniel
> Cc: BaseX
> Betreff: Re: [basex-talk] jobs
Hi,
when I try to register jobs:eval as a service, BaseX 9.2 says: "no variables
allowed".
Is it not possible to register a service with a variable?
Not working:
jobs:eval("declare variable $xml external; $xml",
map { 'xml': 'XML' },
map { 'id':'TEST', 'start':'11:31:50', 'interval':'P1D',
Nothing wrong here with BaseX behavior.
If your xml import chops the whitespace, following-sibling::text()[1] will of
course always match “.-“ for the first two word nodes.
Cheers, Daniel
Von: Mark Bordelon [mailto:markcborde...@yahoo.com]
Gesendet: Freitag, 1. März 2019 22:51
An: Michael
019 14:38
> An: Zimmel, Daniel; George Sofianos
> Cc: basex-talk@mailman.uni-konstanz.de
> Betreff: Re: [basex-talk] Schema 1.1 validation and Xerces cta-full-xpath-
> checking?
>
> Hi Daniel, hi George,
>
> With the latest snapshot of BaseX, XSD validation features can now
With 1.1, I found that validate:xsd() requires you to explicitly give ‘1.1’ as
third parameter.
Having vs:minVersion is not being honored by BaseX.
Daniel
Von: Hans-Juergen Rennau [mailto:hren...@yahoo.de]
Gesendet: Dienstag, 22. Januar 2019 15:15
An: BaseX Support
Betreff: [basex-talk] XSD 1.1
lto:christian.gr...@gmail.com]
> Gesendet: Donnerstag, 13. Dezember 2018 14:26
> An: Zimmel, Daniel
> Cc: BaseX
> Betreff: Re: [basex-talk] Command line options not working with update
> operation
> on input file
>
> > With the same query, when CHOP=false in the .bas
TTT
eins und zwei
.basex:
CHOP=false
Result
TTTeinsundzwei
> -Ursprüngliche Nachricht-
> Von: Christian Grün [mailto:christian.gr...@gmail.com]
> Gesendet: Donnerstag, 13. Dezember 2018 13:49
> An: Zimmel, Daniel
> Cc: BaseX
> Betreff: Re: [basex-talk] Co
> Gesendet: Donnerstag, 13. Dezember 2018 12:41
> An: Zimmel, Daniel
> Cc: BaseX
> Betreff: Re: [basex-talk] Command line options not working with update
> operation
> on input file
>
> > The only thing is I prefer the Saxon default about not changing anything on
&g
-defined.
Thanks for the update,
Daniel
> -Ursprüngliche Nachricht-
> Von: Christian Grün [mailto:christian.gr...@gmail.com]
> Gesendet: Mittwoch, 12. Dezember 2018 18:47
> An: Zimmel, Daniel
> Cc: BaseX
> Betreff: Re: [basex-talk] Command line options not working with u
n Grün [mailto:christian.gr...@gmail.com]
> Gesendet: Mittwoch, 12. Dezember 2018 17:04
> An: Zimmel, Daniel
> Cc: BaseX
> Betreff: Re: [basex-talk] Command line options not working with update
> operation
> on input file
>
> Hi Daniel,
>
> > Unfortunately, I still have not foun
on the command line,
whitespace gets chopped (not expected!)
Thanks, Daniel
> -Ursprüngliche Nachricht-
> Von: Christian Grün [mailto:christian.gr...@gmail.com]
> Gesendet: Freitag, 7. Dezember 2018 17:41
> An: Zimmel, Daniel
> Cc: BaseX
> Betreff: Re: [basex-talk] Command line o
Hello,
can anyone give me a hint on the behaviour of the command line options in BaseX
9.0.2?
When I try an update operation on a file given with "-i", neither the option
"-w" nor any serialisation option gets evaluated; while the update operation
with "-u" is working correctly, my whitespace
Hi,
is there any chance BaseX will support the cta-full-xpath-checking option (see
https://xerces.apache.org/xerces2-j/features.html)? Without it, schema 1.1
validation is limited.
I could not find any switches to configure Xerces features, but did find
someone mentioning it from two years
80 matches
Mail list logo