I have been trying this out recently, in part to look at service workers
[1]
I am using BaseX 9 betas for this. This has a newer jetty version.
I have put a jetty.xml that is working for me as a gist [2]
You will need to change the keystore location [3] to something that points
to your keystore.
Hi Giuseppe,
It has been moved to be the 1st button on the toolbar "New"(or ctl-T)
/Andy
On 16 April 2018 at 09:55, Giuseppe Celano wrote:
> I see that in the 9.0 version the "+ button" to add a new tab is missing.
> I think it was very useful: can it be
Hi Ron,
I took a quick look at Joe's module and made the following changes:
1. Change datetime:format-date(..,"-MM-dd") to
format-date(..,"[]-[MM]-[DD]")
2. *Change xdt*:dayTimeDuration("P1D") -> *xs*:dayTimeDuration
3. Change function in namespace *local:* to *dates:*
And
Hi Giuseppe,
You can use the dba app to see what settings are in use. Goto url
/dba/settings and check WEBPATH.
/Andy
On Fri, 9 Nov 2018 at 13:10, Giuseppe G. A. Celano <
cel...@informatik.uni-leipzig.de> wrote:
> Hi Marco,
>
> I think you are right, but I cannot find the webapp folder which
', map {
> 'catfile': '/path/to/catalog.xml',
> 'dtd': true()
> })
>
> file.xml:
>
>
>
> catalog.xml:
>
>rewritePrefix="file:///path/to/dtd/" />
>
>
> Hope this helps (a little),
> Christian
>
>
>
Sounds good. Of course I meant the etc/ folder not lib/.
/Andy
On 17 September 2018 at 17:28, Bridger Dyson-Smith
wrote:
> Andy -
> thank you for that suggestion!
>
> On Mon, Sep 17, 2018 at 12:13 PM Andy Bunce wrote:
>
>> If you look in lib/ folder the file modules.z
If you look in lib/ folder the file modules.zip contains the BaseX modules
as .xqm stub files with functions marked as external.
The entry for archive:delete is shown below. At one point I am sure these
*.xqm could be parsed by functions like inspect:module and inspect:xqdoc
Currently they raise
If you put your "possibles" in an array rather than a sequence then the
index of the first non-empty item
identifies the match.
let $results := [$possible1,$possible2,$possible3,$possible4,$
possible5,'FAILED']
let $index:= array:fold-left($results,
-1,
Hi,
Using a recent 9.1 Beta on windows.
I create an XML catalog at c:\tmp\mycatalog.xml
http://nowhere.com/doc;
uri="file:///c:/tmp/doc.xml" />
Then in the GUI
fetch:xml("http://nowhere.com/doc;,
map{"catfile": "C:\tmp\mycatalog.xml"}
)
It goes to nowhere, I was hoping to get back
sorry typo there, should be:
I expected *BEP *to appear only in the Read locking, as it does if I remove
the db:create call
On Fri, 8 Feb 2019 at 16:03, Andy Bunce wrote:
> Using 9.1.2
>
> let $d:=db:open(``[BEP]``)
> return db:create(``[BEP-staging]``,$d,$d!base-uri(.))
>
Using 9.1.2
let $d:=db:open(``[BEP]``)
return db:create(``[BEP-staging]``,$d,$d!base-uri(.))
The GUI query info reports:
- Read Locking: (none)
- Write Locking: BEP,BEP-staging
I expected BEP-staging to appear only in the Read locking, as it does if I
remove the db:create call
Is this correct?
Hi,
Before BaseX 9 jobs:list-details would return the query string used in the
jobs:eval (or the uri if that was used) - as per the current docs [1]
Versions 9+ returns a "dummy" file name in this case.
jobs:eval("2+4",(),map{"cache":true()})
jobs:list-details("job2")
ing that should work
> similar to the original one.
>
> A new snapshot is online [1], your feedback is welcome.
> Christian
>
> [1] http://files.basex.org/releases/latest/
>
>
>
> On Tue, Feb 12, 2019 at 7:05 PM Andy Bunce wrote:
> >
> > Hi,
> >
>
I look forward to the longer term solution :)
But in the meantime these pragmas, although not pretty, would allow
solutions to specific multitasking performance issues to be explored where
currently they can be difficult/impossible. I think there is a certain
elegance in advisory nature of
Hi Andreas,
Ignoring for a moment the mysteries of tail recursion, I wonder if a simple
regex can give you the wrapping you are looking for. See [1]
declare function local:word-wrap($string,$width){
$string=>normalize-space()=>concat(" ")=>replace(``[(.{0,`{ $width }`})
]``,'$1')
};
"This is a
Thanks for this.
I particularly like db:dir, which I think will help with creating
performant collection-based views of databases.
I am not clear what is meant by:
> - no need to import basex-api modules anymore!
Does this just mean all modules listed at
http://docs.basex.org/wiki/Module_Library
Hi Florian,
It can be done, but it is perhaps a bit fragile.
You need to see now the class you want to reference is named after
compilation(e.g in the jar). Often it will be of the form
outerclass$innerclass.class
A BaseX example accessing a inner class Builder from a Parser class [1].
Some
Reminds me of a similar issue I had with inline script blocks containing <
characters..
xhtml sets the serialization but the content type will stay as text/html
unless you explicitly set it.
%output:media-type('application/xhtml+xml')
/Andy
On Thu, 22 Aug 2019 at 16:47, Tim Thompson wrote:
>
Hi Ben,
GUI Menu... Options>Preferences>Language
As it says, a GUI restart is required.
Cheers
/Andy
On Wed, 26 Feb 2020 at 08:46, Ben Engbers wrote:
> Hi,
>
> My default language for basexgui is Dutch but I want to create
> screenshots from a GUI that uses English.
>
> How can I switch the
If some updating of the docker image is undertaken it would be good to try
to enable multi-architecture support.
Currently the BaseX docker image fails on ARM machines. It is far from
alone in this.
It is a shame as BaseX seems to run surprisingly well on ARM64 machines
such as the Odroid N2 and
Hi Bridger,
How about..
declare function local:pathbuild($result as xs:string,$this as node()){
concat(
$result, "/" , name($this),
$this/@*! concat("[@" , name(.) , "='" , data(.),
"']")=>string-join('')
)
};
If you really don't want the leading /
declare function local:pathbuild($result as xs:string,$this as node()){
concat(
$result, '/'[$result], name($this),
$this/@*! concat("[@" , name(.) , "='" , data(.),
"']")=>string-join('')
)
};
O
Hi Andreas,
I think Martin has it right, I have some old code that does it like that
[1]. You can try it via[2]
/Andy
[1]
https://github.com/expkg-zone58/ex-markdown/blob/master/src/main/content/markdown.xqm#L12
[2] https://github.com/expkg-zone58/ex-markdown/releases
On Sun, 20 Sep 2020 at
Hi Elina, (cc: basex-talk)
Happy to help. That email correspondence is a bit old, and the code
referenced is ancient. I suspect your problems creating the headers in
XQuery restxq are due to default namespace prefix changes, rest vs restxq,
way back when.
You are correct that enabling the
I am sure it is already on your list but just in case...
There are some map:new references that need to be map:merge in
https://files.basex.org/modules/org/basex/modules/map-extras.xqm
/Andy
On Fri, 11 Dec 2020 at 15:50, Christian Grün
wrote:
> Hi Jérôme,
>
> I just learned there are some more
Hi BR,
When called from within a WebApp this should give the result you are
looking for..
*request:header*( 'User-Agent')
See https://docs.basex.org/wiki/Request_Module#request:header
/Andy
On Tue, 15 Jun 2021 at 15:33, dudz...@yahoo.com wrote:
> Dear all,
>
> I do not see an option to
I remember seeing similar stacktraces with an old BaseX version. Could even
have been 9.1.
I would inspect[1] the database and run against latest version
/Andy
[1] .https://docs.basex.org/wiki/Commands#INSPECT
On Thu, 29 Jul 2021 at 20:54, Christian Grün
wrote:
> Maybe you could try to find
Hi,
"Module imports are not transitive—that is, importing a module provides
access only to function and variable declarations contained directly in the
imported module. For example, if module A imports module B, and module B
imports module C, module A does not have access to the functions and
I find httpbin.org a useful resource to test this kind of thing [1] and [2]
/Andy
[1] http://httpbin.org/#/Auth/get_basic_auth__user___passwd_
[2] http://httpbin.org/basic-auth/user1/mypass
On Wed, 2 Feb 2022 at 16:58, Christian Grün
wrote:
> Good to hear; so at least Digest is detected at
Hi,
I have used EXPath packaging, often to package some Java code and a calling
xquery module [1].
>the URL of the expath-pkg.xml library module which will be imported from
outside must match the name of the package
In my experience this is not required, see [2] for example.
I think the problem
Hi Tom,
Can you ping the remote machine?
Can you connect using basexclient.bat?
Which version of basex?
/Andy
On Wed, 16 Aug 2023, 22:00 Furst, Thomas, wrote:
> Never got any response on this. Does anyone have any help they can provide?
>
>
>
> *From:* BaseX-Talk *On
> Behalf Of *Furst,
BaseX
> locally there.
>
>
>
> I connected using basexclient.bat on the remote machine. I saw no way to
> connect remotely using that .bat file.
>
>
>
> Version of BaseX is 10.6
>
>
>
> *Tom Furst*
>
> Developer, S1000D SME
>
>
>
>
Hi Omar,
Thanks for this.
I also enjoyed your earlier message re:
>I tried to get creative at finding a way to optimize querying the data
without having many long lasting global lock situations
I have been in a similar situation and discovered how alternative code
approaches using different
analysis and the minimized example.
>
>
> On Sun, Apr 24, 2022 at 2:05 PM Andy Bunce wrote:
>
>> Thanks for the resolution hint and the clue that there is no error when
>> running locally.
>>
>> I dug a bit deeper. It seems running modules via http shines a light on
>&
Thanks for the resolution hint and the clue that there is no error when
running locally.
I dug a bit deeper. It seems running modules via http shines a light on
some less common codepaths #[2091]
I get an error from just:
inspect:xqdoc("
I imagine reworking the scopes will be very much non-trivial.
(I am just happy I found that "simple" example - XQST0049 has been
troubling me for years)
Thanks, for this and all your great work on BaseX.
/Andy
On Mon, 25 Apr 2022 at 15:13, Christian Grün
wrote:
> Although this can run into
Hi Markus,
I don't think the messages are misleading, however the rules here can be
hard to follow at first.
My understanding of the updating rules is:
All the updating must be done together as the very last thing to happen.
This means ONLY in the final 'return' statement of the main expression
Hi Markus,
Possibly the below is helpful to you
/Andy
declare function local:foo($item as array(*)){
let $f:=$item(1)
let $v:=$item(2)
return array:for-each($v, function($q){ [$f,$q] }) ?*
};
(["f", [1, 2, 3]], ["g", [4, 5]]) ! local:foo(.)
On Fri, 13 May 2022 at 11:47, Markus Elfring
> a bottleneck shows in the way BaseX handles file access.
I wonder if this issue is relevant?
https://github.com/BaseXdb/basex/issues/1574
/Andy
On Mon, 2 May 2022 at 16:11, Omar Siam wrote:
> What I like about BaseX is that it is very good at optimizing
> self-contained queries about the
Following Omar's message on lock management [1]
I thought I would share a technique that I have tried. It makes use of the
function inspect:functions [2].
The code below shows two versions of an eval-update function. After running
each version the info.result view reports:
-
Hi Christian,
>I’m somewhat sorry this bug is fixed now
Me too :)
> As we can’t assess at compile time if locking is necessary.
I guess there are two compile times at play here, as with xquery-eval.
It would be nice to find a way to downgrade locks as well as upgrade them.
But easier said than
Hi,
Using 9.7.1
(: test transform :)
let $xslt:=http://www.w3.org/1999/XSL/Transform;
version="3.0">
I want to see all of the very long message
a
a bbb
gg gg
Ah, yes I see now. I never noticed this before. Looks good now I realise
what is happening.
/Andy
On Fri, 29 Apr 2022 at 19:11, Christian Grün
wrote:
> Hi Andy,
>
> It’s the BaseX standard serializer that truncates maps and arrays.
> Some more examples:
>
> [ string-join(1 to 1000) ],
> map {
ted the documentation.
>
> On Wed, May 4, 2022 at 3:12 PM Andy Bunce wrote:
>
>> Hi,
>>
>> Using BaseX 9.7.1 and saxon9he-9.9.1.jar
>> The documentation suggests the ?result from xslt:transform-report should
>> be *a* document-node where possible [1]
&
"There are only two hard things in Computer Science: cache invalidation
and naming things." [1]
This topic combines the two ;)
As for alternative names I offer: the exotic: entrepot, the industrial:
kvstore, the bohemian: stash. Personally I think cache is fine.
I have sometimes thought of
Hi,
Using BaseX 9.7.1 and saxon9he-9.9.1.jar
The documentation suggests the ?result from xslt:transform-report should be
*a* document-node where possible [1]
This seems not quite to be the case when there are processing instructions
or comments at the top level. In these cases a sequence of
t time for BohemiaX.
>
> Similar to Redis, we could either work with expiry dates or limit the
> cache to a maximum number of entries (and drop the ones with the
> oldest access time).
>
>
> On Sat, May 7, 2022 at 5:30 PM Andy Bunce wrote:
> >
> > "There are onl
Hi,
I am trying to write a Java property file using v9.5.1 and no new Java code.
The code below runs in 9.7.3. Although it only uses 9.5 features in 9.5.1
it produces the error message
props:store·java.io.Writer·String cannot be called with (Writer, String).
but
Got it I think...
props:store·java.io.Writer·*java.lang.String*(
Q{java:java.io.FileWriter}new($source), "The saucer has landed")
On Mon, 22 Aug 2022 at 15:11, Andy Bunce wrote:
> Hi,
>
> I am trying to write a Java property file using v9.5.1 and no new Java
> code.
Hi Loren,
>I am looking at maybe doing some updates to the xqDoc spec and the
codebase.
I have some suggestions for additions to the xqDoc schema:
1. Add optional boolean attribute 'external' to xqDoc:function and xqDoc:
variable. I see the main use for this as allowing documentation to show
Looks good to me.
I like the renamings and I look forward to taking a look at how the locking
changes play out
One minor issue I have is: in the GUI editor Mouse-down+ drag is not
selecting text. This is on Win10 with a trackpad and Java version as below.
/Andy
IMPLEMENTOR="Eclipse Adoptium"
Hi Bridger,
> is even possible; e.g. map{ "key": [1,2,3,4,5] }
Well that works fine for me, so yes.
For your other examples, I think the answer is that map:merge with map{
"duplicates":"combine"} always generates value *sequences *on duplicate
keys.
So, maybe, generate the array you want, then
>>
>> ...which is well-formed (to rule out non-XML parser issues), and indeed
>> has no redirection, which seems consistent with Andy's observation. Yet,
>> https://w3.org also is retrieved successfully, which has an initial 301
>> response (instead of 303).
>&g
There seems to be a 303 redirect. Maybe this is relevant
https://stackoverflow.com/a/66325588/3210344
/Andy
[image: image.png]
On Thu, 4 Aug 2022 at 16:19, Christian Grün
wrote:
> What I have assessed so far is that it’s the Java Client that fails to
> retrieve the result. It’s the same
Hi,
Since around 9.7 the DBA has an option to upload backup zip files.
However it appears the backups are uploaded to data/.dba rather than data/
so can not be restored via the DBA UI.
Maybe the problem is here [1]
/Andy
[1]
Hi Shuxin Li,
It certainly is very impressive work and I am also keen to know more.
I see you have also been working with eXist [1]
I assume it builds on "Query Plan Guidance (QPG), a test case generation
method with the guidance of query plans."? [2]
Best wishes
/Andy
[1]
Hi Burkhard,
The thing about the warn argument is that it can be updated by the Java
call. So I think you will need to pass in a suitable Java object.
For this case I tried an ArrayList
import module namespace bdrc = "io.bdrc.ewtsconverter.EwtsConverter";
let $warn:=Q{java.util.ArrayList}new()
and your reply really
> saved my bacon.
>
> Thank you ever so much,
>
>
>
> Burkhard
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows
>
>
>
> *From: *Andy Bunce
> *Sent: *11 April 2023 19:54
>
Hi Christian,
You are right about Saxon. The documentation appeared, to me, to suggest
the default was preserve, and I didn't check!
The documentation is now very clear[1].
"The default is strip, in accordance with Appendix C.1 of the XQuery
specification."
I have added a few words to the Wiki
Perhaps this addition would be more findable if moved to the STRIPWS
description?
/Andy
On Wed, 5 Jul 2023 at 16:54, Andy Bunce wrote:
> Hi Christian,
>
> You are right about Saxon. The documentation appeared, to me, to suggest
> the default was preserve, and I
Hi,
In the GUI when viewing an open database with many namespaces via database
-> properties->information.
The properties window is excessively tall, often larger than the screen
height.
There seems to be extra blank space below the "Resource Properties" section
and perhaps the namespaces section
Hi Montse,
I believe the current behavior is correct. The important feature of your
example is that the XML is constructed in the XQuery source.
In this case the, somewhat obscure, boundary-space setting applies [1].
This has been discussed on the list [2]
Your example works for me if the
you very much for your quick response.
>
>
>
> Regards,
>
> Montse.
>
>
>
> *De:* Andy Bunce
> *Enviado el:* jueves, 29 de junio de 2023 12:07
> *Para:* Montserrat Matías
> *CC:* basex-talk@mailman.uni-konstanz.de
> *Asunto:* Re: [basex-talk] Whitespaces
Hi Tim,
You don't say what OS or version but on Windows it is true the search boxes
have no right click context menu, but they do support Ctl-V.
/Andy
On Wed, 17 Jan 2024 at 17:03, Thompson, Timothy
wrote:
> Hello,
>
>
>
> In the BaseX GUI, it’s not possible (as far as I can tell) to paste
Hi,
I am following the guide at [1] with the aim of loading some XML with a
variety of DTD doctypes.
I have a catalog.xml set (which works in another app) and in lib/custom I
have
- saxon-he-10.9.jar
- xmlresolver-5.2.2-data.jar
- xmlresolver-5.2.2.jar
- xmlresolver.properties
It
In addition to Gerrit's comments...
This line jumped out as problematic to me.
%rest:path('theocom/static/{$dir=.+}/{$file=.+}')
The pattern =.+ matches the rest of the path. You only need this once at
the end of the path.
Maybe just:
%rest:path('theocom/static/{$dir}/{$file=.+}')
/Andy
On
I wanted to look up the hof:until[1] syntax in the wiki. It tells me that
it has been replaced with fn:iterate-while. Well, I hope, when the dust
settles, there is something similar to this in the spec, but it looks like
it may not be iterate-while .
Today a user of the current BaseX
> for a reliable version of the BaseX 10 documentation, we point to the
> archived PDF version:
>
> https://docs.basex.org/wiki/Documentation
>
> Hope this helps,
> Christian
>
>
> Andy Bunce schrieb am Fr., 2. Feb. 2024, 19:25:
>
>>
>> I wanted
Hi,
Back in the winter of 2017, BaseX 8.6 , I reported an issue with job
duration [1]
A question about jobs:list-details[2]
I had expected the attribute duration: evaluation time (for running and
cached jobs) to be frozen once the job is cached.
Using BaseX 10.7 it seems this issue is back
```
Hi,
The documentation for the utility module [1] says certain functions will be
removed in version 11 because they will be in XPath 4.0.
However, util:if has been removed from the documentation and I think there
is no equivalent function in this case.
util:if is an alternative syntax for the
s.basex.org/releases/latest/
>
>
> On Mon, Nov 20, 2023 at 12:36 PM Andy Bunce wrote:
>
>> Hi,
>>
>> Back in the winter of 2017, BaseX 8.6 , I reported an issue with job
>> duration [1]
>>
>> A question about jobs:list-details[2]
>> I had
Hi Régis,
I am pretty sure your issue comes from the SSL certificates available to
your Java VM, and is not a problem with your xar package.
Running Basex with -d shows more information [2]
Something like [1] may fix it for one machine, but it is a slow process and
far from ideal.
/Andy
[1]
stian Grün
wrote:
> I agree it's somewhat unexpected. As we are working on the string result
> that is returned by Saxon, it's currently not that easy indeed to decide
> how to interpret the character stream.
>
>
>
> Andy Bunce schrieb am Mi., 4. Mai 2022, 23:11:
>
>> O
hof:until is not gone, it is just hiding [1]
- In 10.7 it is there but undocumented in Wiki
- In BaseX 11 you need to use XQuery 4 fn:while-do⁺, fn:do-until⁺ [2]
Hope this helps
/Andy
[1]
https://www.mail-archive.com/basex-talk%40mailman.uni-konstanz.de/msg15596.html
[2]
0/Overview.html#func-do-until
>
>
>
> On Thu, Mar 28, 2024 at 5:41 PM Graydon wrote:
>
>> Hi Andy --
>>
>> On Thu, Mar 28, 2024 at 01:06:10PM +, Andy Bunce scripsit:
>> > hof:until is not gone, it is just hiding [1]
>> > - In 10.7 it is there but
Hi Graydon,
>I'm trying to regularize the formatting of some XSLT files
I don't think this can or should be done with BaseX serialization. I would
use a dedicated formater/ pretty printer.
For me the sign of a good formatter is that it tidies random indentation
while preserving what looks
Maybe: https://help.basex.org/main/Profiling_Module
/Andy
On Thu, 29 Feb 2024 at 09:40, Eliot Kimber
wrote:
> Using the latest build, 11.0 beta 17d8426, the prof:dump() function is
> reported as an unknown function.
>
>
>
> What replaces it (or where can I find the V11 docs)?
>
>
>
> Thanks,
>
201 - 277 of 277 matches
Mail list logo