Re: [basex-talk] Running basexclient Command From a Bash Script

2015-03-22 Thread Eliot Kimber
Small hick-up: the script works under OS X (and I'll assume under Linux) but not in the git shell under Windows. I should be able to use a separate batch script for Windows but it would be easiest if a single script was cross platform. Hmph. Cheers, E. — Eliot Kimber, Owner Contrext, LLC

Re: [basex-talk] Running basexclient Command From a Bash Script

2015-03-22 Thread Eliot Kimber
Cool, Thanks for all the info. I knew it was due to my very weak understanding of bash scripting. The improved script you suggested worked. I'll do the reading necessary to understand *why* it works, but that gets me over the immediate hurdle. Cheers, E. — Eliot Kimber, Owner Contrext

[basex-talk] Configuration File for Basexclient Connection Details?

2015-03-25 Thread Eliot Kimber
. Is this correct or am I missing a configuration option somewhere? What I'm looking for is the ability to call the basexclient command from git hooks without those scripts having to maintain their own configuration file for the connection details. Thanks, Eliot — Eliot Kimber, Owner Contrext, LLC

[basex-talk] Failure on Second Update to Database

2015-03-25 Thread Eliot Kimber
is committing literal XML on the command while the first is committing a file on the file system. This behavior is consistent: if I drop the database, restart the server, the repeat this test, I get the same failure. Is this my user error or a bug? Cheers, E. — Eliot Kimber, Owner Contrext, LLC

Re: [basex-talk] Failure on Second Update to Database

2015-03-25 Thread Eliot Kimber
-failure.zip Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 3/25/15, 12:40 PM, Christian Grün christian.gr...@gmail.com wrote: https://gist.github.com/dc9f6d55d891b06ecae9.git Hm, it still gives me 404.. I also tried to download it from a machine with a different IP

Re: [basex-talk] Configuration File for Basexclient Connection Details?

2015-03-25 Thread Eliot Kimber
and .basexhome in the installation directory, the user and password from the ~/.basex file is used. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 3/25/15, 1:25 PM, Christian Grün christian.gr...@gmail.com wrote: However, when I ran basexclient, I got this: Contrext01:dfst

Re: [basex-talk] Simple xQuery functions do not work as expected

2015-03-25 Thread Eliot Kimber
Note that I'm not using the GUI, I'm using the basexclient command via a bash script. I have the basexserver running as a service (meaning it's a background task under OS X and then I'm using git commit hooks to run bash scripts that call the basexclient command. Cheers, E. — Eliot Kimber

Re: [basex-talk] Simple xQuery functions do not work as expected

2015-03-25 Thread Eliot Kimber
Sorry--just realized I confused the threads. Ignore me. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 3/25/15, 1:19 PM, Eliot Kimber ekim...@contrext.com wrote: Note that I'm not using the GUI, I'm using the basexclient command via a bash script. I have

Re: [basex-talk] Configuration File for Basexclient Connection Details?

2015-03-25 Thread Eliot Kimber
and it was not set. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 3/25/15, 12:39 PM, Christian Grün christian.gr...@gmail.com wrote: Looking through the docs and trying to tests locally, it appears that the basexclient command does not use the USER or PASSWORD fields

Re: [basex-talk] Failure on Second Update to Database

2015-03-25 Thread Eliot Kimber
Cool--always happy to reveal a bug. Let me know if I can help in testing a fix. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 3/25/15, 1:23 PM, Christian Grün christian.gr...@gmail.com wrote: Pardon me… I just tried to call the gist in the browser. Using git

[basex-talk] DITA for Small Teams Git-to-BaseX Hooks

2015-03-26 Thread Eliot Kimber
that might be necessary for certain use cases, hmmm). Thanks for all the help here, especially Charles Duffy's help with bash script coding. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] Failure on Second Update to Database

2015-03-26 Thread Eliot Kimber
Is there a workaround for this bug? Do I understand the issue that this only occurs if the first document has a namespace declaration? Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 3/25/15, 1:44 PM, Christian Grün christian.gr...@gmail.com wrote: Cool--always

[basex-talk] Optimizing Element Access By Attribute Value Matching

2015-04-13 Thread Eliot Kimber
by @class token, e.g., an index where keys are topic/topic, topic/p, etc. Is there a way to construct such an index in BaseX? Is there a better to address type of string-match-based lookup? Thanks, Eliot — Eliot Kimber, Owner Contrext, LLC http://contrext.com

[basex-talk] Best Forum for Generate XQuery How To Discussions?

2015-04-23 Thread Eliot Kimber
What is the best forum for asking general how-to XQuery questions that are not BaseX specific? Thanks, Eliot — Eliot Kimber, Owner Contrext, LLC http://contrext.com

[basex-talk] Separate Databases vs. Directories Within One Databse?

2015-05-14 Thread Eliot Kimber
supports maintaining knowledge of the links within the XML content, could get intense. Cheers, Eliot — Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] Separate Databases vs. Directories Within One Databse?

2015-05-16 Thread Eliot Kimber
are, but that is not a concern for what I'm doing now. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 5/16/15, 5:10 AM, Christian Grün christian.gr...@gmail.com wrote: Hi Eliot, As usual, there is no simple answer to such a question. However, I can say that sounds like a good choice

[basex-talk] Way to React To Updates Using XQuery?

2015-04-15 Thread Eliot Kimber
the case where documents were loaded by some other route. Is such a mechanism available? Thanks, Eliot — Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] Way to React To Updates Using XQuery?

2015-04-16 Thread Eliot Kimber
that function after any load or update operation from my git hooks. For my current use case that will be as good as having some sort of trigger feature. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/16/15, 12:03 AM, Christian Grün christian.gr...@gmail.com wrote

Re: [basex-talk] Mystery Failure on REPLACE but Not ADD

2015-04-13 Thread Eliot Kimber
into play. I'll log an issue for it and try to track it down once I have a bit more time. Definitely don't want to have this sort of failure hanging about if we can avoid it. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/13/15, 8:41 AM, Christian Grün christian.gr

Re: [basex-talk] Mystery Failure on REPLACE but Not ADD

2015-04-13 Thread Eliot Kimber
865411b193f76b19e9565d/commit/gitstate/dfst_metadata' -U admin -P admin -p 1984 -n localhost Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/12/15, 12:40 PM, Eliot Kimber ekim...@contrext.com wrote: No obvious cause for the failure yet but it feels like a bug that is revealed

[basex-talk] HTTP Server Not Serving Any RESTXQ Results

2015-04-11 Thread Eliot Kimber
. Any suggestions on where my configuration might be bad? Thanks, Eliot — Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] HTTP Server Not Serving Any RESTXQ Results

2015-04-12 Thread Eliot Kimber
Christian, I'm using the Zip distribution. The REST service works and WebDAV works, it is only RESTXQ that doesn't appear to be correctly configured. So either I'm missing some essential configuration detail or there's an OS X-specific problem that I'm tripping over. Thanks, Eliot — Eliot

Re: [basex-talk] HTTP Server Not Serving Any RESTXQ Results

2015-04-12 Thread Eliot Kimber
diagnostics here would have helped, e.g. WEBPATH directory 'foo/bar' does not exist. I'll create an issue and try to circle back to implementing a fix once my current crunch has passed. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/12/15, 8:33 AM, Eliot Kimber ekim

[basex-talk] Mystery Failure on REPLACE but Not ADD

2015-04-12 Thread Eliot Kimber
is not very helpful in this case. Any idea what the problem might be or how I would diagnose this failure? Thanks, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] Mystery Failure on REPLACE but Not ADD

2015-04-12 Thread Eliot Kimber
It's definitely a function of my local .basex settings. If I revert to the default settings (make the basex install dir .basexhome and remove ~/.basex) then the replace succeeds. Trying to figure out what the setting is that results in the failure. Cheers, E. — Eliot Kimber, Owner Contrext

Re: [basex-talk] Documentation on Module Imports Missing a Detail

2015-04-12 Thread Eliot Kimber
Yes, I can update the documentation. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/12/15, 11:56 AM, Christian Grün christian.gr...@gmail.com wrote: Hi Eliot, I agree, the documentation could surely be more precise here. Would you possibly be interested

Re: [basex-talk] Mystery Failure on REPLACE but Not ADD

2015-04-12 Thread Eliot Kimber
No obvious cause for the failure yet but it feels like a bug that is revealed by a particular configuration organization. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/12/15, 12:19 PM, Eliot Kimber ekim...@contrext.com wrote: It's definitely a function of my

[basex-talk] Documentation on Module Imports Missing a Detail

2015-04-12 Thread Eliot Kimber
I was trying to have a RESTXQ module import a library module stored in the configured REPO directory. I copied my module into that directory and verified that it was listed: NameVersion Type Path - basex-utils -

Re: [basex-talk] URLs for BaseX Documents and resolve-uri()

2015-04-17 Thread Eliot Kimber
that is not explicitly BaseX specific. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/17/15, 12:07 PM, Christian Grün christian.gr...@gmail.com wrote: Hi Eliot, This fails under BaseX: [FORG0002] Base URI is not absolute: dfst^dfst-sample-project^develo

Re: [basex-talk] URLs for BaseX Documents and resolve-uri()

2015-04-17 Thread Eliot Kimber
remove any potential ambiguity about the intent of a given URL. Thus, document-uri(root($node)) would return either /foo/bar or basex:/foo/bar, but not foo/bar. Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/17/15, 12:07 PM, Christian Grün christian.gr...@gmail.com

[basex-talk] URLs for BaseX Documents and resolve-uri()

2015-04-17 Thread Eliot Kimber
-in XQuery functions. Thanks, Eliot — Eliot Kimber, Owner Contrext, LLC http://contrext.com

[basex-talk] How To Reflect XML Source in HTML Output?

2015-04-17 Thread Eliot Kimber
to generate escaped XML for use in e.g., HTML pre or is there some silly thing I need to do in my typeswitch to make sure the newlines make it to the HTML result? Thanks, Eliot — Eliot Kimber, Owner Contrext, LLC http://contrext.com

[basex-talk] Working With Maps Using FLOWR Expressions?

2015-04-18 Thread Eliot Kimber
expression I'm not seeing how to effectively update the same map instance. What fundamental aspect of map manipulation am I missing? Thanks, Eliot — Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] Working With Maps Using FLOWR Expressions?

2015-04-18 Thread Eliot Kimber
Of course. Must be my lack of sleep that kept me from seeing that solution :-) Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/18/15, 11:43 AM, Andy Bunce bunce.a...@gmail.com wrote: Hi Eliot, Take a look at map:entry and map:merge[1] let $map:=map{a:old,x:43

Re: [basex-talk] URLs for BaseX Documents and resolve-uri()

2015-04-17 Thread Eliot Kimber
. Cheers, Eliot — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/17/15, 10:51 AM, Eliot Kimber ekim...@contrext.com wrote: I'm migrating XSLT functions for working with DITA documents to XQuery. As part of this function package I have functions that resolve URI references from

Re: [basex-talk] How To Reflect XML Source in HTML Output?

2015-04-17 Thread Eliot Kimber
serialize() does just what I want: pre { let $map := dftest:testResolveTopicOrMapUri($repo, $branch) return serialize($map) } /pre Cheers, E. — Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/17/15, 12:43 PM, Christian Grün

Re: [basex-talk] Run Queries in Background from RESTXQ App?

2015-07-04 Thread Eliot Kimber
it's not really an issue. And if I wanted things to be a bit more sophisticated I would use Javascript to submit the REST URL and manage the response, however long it took to return. Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 7/4/15, 1:26 PM, Eliot Kimber basex-talk

[basex-talk] Run Queries in Background from RESTXQ App?

2015-07-04 Thread Eliot Kimber
Eliot Kimber, Owner Contrext, LLC http://contrext.com

[basex-talk] Organizing Large Numbers of Small Documetns?

2015-07-05 Thread Eliot Kimber
of documents. Thanks, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com

[basex-talk] Returning REST Response From Updating Function

2015-07-05 Thread Eliot Kimber
. Is there a way to do what I want? Thanks, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] Organizing Large Numbers of Small Documetns?

2015-07-05 Thread Eliot Kimber
practice) then there would be 1 million where-used records (one for each link to a given topic). So if managing 1 million documents is not a problem then I should be fine. Cheers, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com On 7/5/15, 10:43 AM, Christian Grün christian.gr

Re: [basex-talk] question

2015-07-29 Thread Eliot Kimber
to that. There is also instance of, which might be I also found this paper, which might be interesting: http://www.balisage.net/Proceedings/vol8/html/Holstege01/BalisageVol8-Holst ege01.html Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 7/29/15, 9:54 AM, Rob Stapper basex-talk

Re: [basex-talk] Getting More Diagnostic Info From DBA Query Runner?

2015-07-28 Thread Eliot Kimber
I looked at the Javascript for this but my feeble Javascript skills were insufficient to adjust this in the small amount of time I had to work on it. I'll try to look at it again when I can. Cheers, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com On 7/20/15, 10:53 AM

Re: [basex-talk] question

2015-07-29 Thread Eliot Kimber
I am happy to be corrected. Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 7/29/15, 10:42 AM, Florent Georges fgeor...@gmail.com on behalf of li...@fgeorges.org wrote: Hi, That would base the type annotation on the lexical value. For instance, the string '0

[basex-talk] RESTXQ: Call a Page With A Parameter That Does not Persist in the URL

2015-08-01 Thread Eliot Kimber
be a way to do what I want but I'm not sure what it is. Based on my research I think I can do a form POST instead of a GET but that seems kind of heavy weight. Is there a simpler/better way to achieve this effect? I didn't see anything obvious in the RESTXQ docs. Thanks, Eliot Eliot Kimber

Re: [basex-talk] Returning REST Response From Updating Function

2015-08-01 Thread Eliot Kimber
Kimber, Owner Contrext, LLC http://contrext.com On 7/6/15, 8:14 AM, Eliot Kimber basex-talk-boun...@mailman.uni-konstanz.de on behalf of ekim...@contrext.com wrote: Christian, Thanks for those pointers--lots of interesting stuff. Looking at how those two apps are using db:output

[basex-talk] Running BaseX In A Docker Container?

2015-08-05 Thread Eliot Kimber
configured with the DFST Web app and supporting modules, configuration details, etc. Just curious if anyone has experience putting BaseX in a container and if there's anything we should look out for or anything we can contribute back out of this effort. Cheers, E. Eliot Kimber, Owner

[basex-talk] Using BaseX With oXygenXML: Validate XQuery 3.1 Syntax

2015-08-08 Thread Eliot Kimber
: is it possible to configure oXygenXML so it validates the 3.1 expressions BaseX supports? I'm not sure if this an oXygenXML or a BaseX issue. Thanks, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] Merging databases?

2015-07-24 Thread Eliot Kimber
, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com On 7/24/15, 2:30 PM, Amanda Galtman basex-talk-boun...@mailman.uni-konstanz.de on behalf of amanda.galt...@mathworks.com wrote: Hi, Is there a simple, fast way to merge databases? For example, suppose I have 200 databases, each

[basex-talk] More Array Troubles: Syntax Subtlety That I'm Missing

2015-07-17 Thread Eliot Kimber
not sure what my error is, but there must be one. Thanks, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] Any Way to Create A Database And Commit To It From REST Service?

2015-07-13 Thread Eliot Kimber
() and redirection). Cheers, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com On 7/13/15, 2:59 AM, Dirk Kirsten basex-talk-boun...@mailman.uni-konstanz.de on behalf of d...@basex.org wrote: Hello Eliot, You can add the documents directly using the db:create() function, thus being able

[basex-talk] Getting More Diagnostic Info From DBA Query Runner?

2015-07-18 Thread Eliot Kimber
? Or is that information in a log somewhere? Thanks, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com

[basex-talk] BaseX Pegging Java Process: How To Diagnose?

2015-07-18 Thread Eliot Kimber
Using BaseX 8.2.1 HTTP server, not actively performing any queries (but having performed some after restarting the server), BaseX is pegging one of my processors. What can I do to determine what BaseX is doing when it's in this state? Thanks, E. Eliot Kimber, Owner Contrext, LLC http

Re: [basex-talk] Getting More Diagnostic Info From DBA Query Runner?

2015-07-20 Thread Eliot Kimber
the full trace result if I for example try to run one of my own RESTXQ functions and there is an error, but not in the DBA app. I'm using the DBA app to test and debug my code (and it's very convenient for that). Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 7/20/15

Re: [basex-talk] Getting More Diagnostic Info From DBA Query Runner?

2015-07-20 Thread Eliot Kimber
If you can point me at the relevant code I'll put aside my distaste for Javascript and take a look. Cheers, E Eliot Kimber, Owner Contrext, LLC http://contrext.com On 7/20/15, 10:32 AM, Christian Grün christian.gr...@gmail.com wrote: Ok, I got it. The full error is returned

Re: [basex-talk] Finding document based on filename

2015-08-31 Thread Eliot Kimber
Eliot Kimber, Owner Contrext, LLC http://contrext.com On 8/31/15, 11:35 AM, "Martín Ferrari" <basex-talk-boun...@mailman.uni-konstanz.de on behalf of ferrari_mar...@hotmail.com> wrote: >Hi Mansi, I have a similar situation. I don't think there's a fast >way to

Re: [basex-talk] BaseX and Git versioning of XML at the same time

2016-02-10 Thread Eliot Kimber
repo. You wouldn't do it directly from the file system. My work is part of the DITA for Small Teams project, http://dita-for-small-teams.org. I'll be speaking about it remotely on Friday at the BaseX user meetup in advance of the XML Prague conference. Cheers, Eliot Eliot Kimber, Owner

Re: [basex-talk] Unrecognized Options Running Basex in Docker Container

2016-01-29 Thread Eliot Kimber
write .basex file" message and debug showed me a java traceback but I resolved that issue. Cheers, E. ---- Eliot Kimber, Owner Contrext, LLC http://contrext.com From: Christian Grün <christian.gr...@gmail.com> Date: Friday, January 29, 2016 at 2:20 AM To: Eliot Kimber <ekim...@contre

Re: [basex-talk] Unrecognized Options Running Basex in Docker Container

2016-01-28 Thread Eliot Kimber
options. I verified that I can add data to the database itself. Thanks, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 1/28/16, 6:10 PM, "Eliot Kimber" <basex-talk-boun...@mailman.uni-konstanz.de on behalf of ekim...@contrext.com> wrote: >I'm seeing a di

Re: [basex-talk] Unrecognized Options Running Basex in Docker Container

2016-01-29 Thread Eliot Kimber
basex Docker image with the version Michael is maintaining (basex/basexhttp). One less thing for me to worry about :-) Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com From: <basex-talk-boun...@mailman.uni-konstanz.de> on behalf of Eliot Kimber <ekim...@contrext.

Re: [basex-talk] Status of BaseX Docker Container?

2016-01-26 Thread Eliot Kimber
OK, I'm going to proceed with making a generic basex Docker container in the DFST Docker project on GitHub. I'm using Andreas' as a starting point but it's pretty trivial. I'm working/testing on OS X, Windows, and CentOS so I should be able to get something going. Cheers, E. Eliot Kimber

Re: [basex-talk] Status of BaseX Docker Container?

2016-01-26 Thread Eliot Kimber
Under Windows: The DockerFile is in GitHub here: https://github.com/dita-for-small-teams/dfst-docker My next task will be to create a container based on this one that includes specific configuration and the DFST Web application modules. Should be easy once I get to it. Cheers, E. Eliot

Re: [basex-talk] Status of BaseX Docker Container?

2016-01-26 Thread Eliot Kimber
lient to connect to it. Haven't been able to find a good solution in my searching. Very annoying. Cheers, E. ---- Eliot Kimber, Owner Contrext, LLC http://contrext.com On 1/26/16, 3:50 PM, "Eliot Kimber" <basex-talk-boun...@mailman.uni-konstanz.de on behalf of ekim...@contrex

[basex-talk] Status of BaseX Docker Container?

2016-01-24 Thread Eliot Kimber
/docker-basex And pushed it to the Docker Hub in the basex namespace. I'm wondering what the relationship of this is, if any, to any official BaseX Docker support? Thanks, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com

[basex-talk] Where Is Documentation On Module Lookup?

2016-02-17 Thread Eliot Kimber
I'm trying to find the documentation on how BaseX looks up modules and I can't find it in the current documentation. I know I found it in the past. Where should I be looking? Thanks, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] Where Is Documentation On Module Lookup?

2016-02-17 Thread Eliot Kimber
Ah, thanks. For some reason the title "Repository" did not suggest the information I was looking for. But it's all coming back to me now. I was looking for "how to implement custom XQuery modules". Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com

[basex-talk] Sending Bytes, Not Strings, To BaseX Using the Ruby Client

2016-02-18 Thread Eliot Kimber
if I run the command twice. If I try: @basex.execute("replace #{path} #{bytes}") Then I get the same failure. So something is not right. My Docker container is running 8.4.1 beta. What am I missing? Thanks, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] Sending Bytes, Not Strings, To BaseX Using the Ruby Client

2016-02-18 Thread Eliot Kimber
I turned my UTF-8 file into a UTF-16 file and trying to commit it to BaseX via the Ruby client it did not work: BaseXClient.rb:50:in `execute': Resource "/opt/basex/?" not found. (RuntimeError) Where "?" is some kind of "unrecognized character" indicator Cheers,

Re: [basex-talk] Sending Bytes, Not Strings, To BaseX Using the Ruby Client

2016-02-18 Thread Eliot Kimber
not going to work in a naive way. Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 2/18/16, 11:04 AM, "Eliot Kimber" <basex-talk-boun...@mailman.uni-konstanz.de on behalf of ekim...@contrext.com> wrote: >I turned my UTF-8 file into a UTF-16 file a

Re: [basex-talk] Sending Bytes, Not Strings, To BaseX Using the Ruby Client

2016-02-19 Thread Eliot Kimber
with a byte sequence that starts with 0xFFFE, 0xFEFF, 0x003C003F, or 0x3C003F00 that it would treat it as UTF-16. Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 2/18/16, 4:58 PM, "Christian Grün" <christian.gr...@gmail.com> wrote: >Hi Eliot, > >

Re: [basex-talk] Sending Bytes, Not Strings, To BaseX Using the Ruby Client

2016-02-19 Thread Eliot Kimber
; I would expect that if I provide the remote API with a byte sequence >>that >> starts with 0xFFFE, 0xFEFF, 0x003C003F, or 0x3C003F00 that it would >>treat >> it as UTF-16. >> >> Cheers, >> >> E. >> >> Eliot Kimber, Owner >> Cont

Re: [basex-talk] Automated Docker Build: basex/basexhttp

2016-02-19 Thread Eliot Kimber
in using Dockerfiles). Cheers, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com On 2/19/16, 3:54 PM, "Jens Erat" <basex-talk-boun...@mailman.uni-konstanz.de on behalf of jens.e...@uni-konstanz.de> wrote: >Dear BaseX community, > >over the last

Re: [basex-talk] Automated Docker Build: basex/basexhttp

2016-02-19 Thread Eliot Kimber
containers and provide a convenient way to manage everything through one command). Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 2/19/16, 4:27 PM, "Jens Erat" <jens.e...@uni-konstanz.de> wrote: >Hi Eliot, > >> Looks like this versi

[basex-talk] Odd Behavior from Ruby Client

2016-02-20 Thread Eliot Kimber
a really subtle user error or a flaw in the basic API mechanism. Cheers, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] Catalog Resolution Under Windows

2016-03-13 Thread Eliot Kimber
This code would fail to construct a good Windows file: URL because it misses out the "/" after the "file:". Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 3/14/16, 5:02 AM, "Kendall Shaw" <basex-talk-boun...@mailman.uni-k

Re: [basex-talk] Catalog Resolution Under Windows

2016-03-12 Thread Eliot Kimber
heers, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com On 3/13/16, 9:05 AM, "Eliot Kimber" <ekim...@contrext.com> wrote: >I tried some more experiments. > >I used the BaseX GUI as follows: > >1. Created a new database and used the GUI to select

Re: [basex-talk] Catalog Resolution Under Windows

2016-03-12 Thread Eliot Kimber
skipped. I did the same test using 8.4.1 under OS X but against the same source files and catalog and it worked fine. So this seems to be a general issue with catalog resolution under Windows. Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 3/12/16, 6:11 PM, "

[basex-talk] Catalog Resolution Under Windows

2016-03-12 Thread Eliot Kimber
alog resolution under Windows? Is there anything I can do to try to debug the problem? Thanks, Eliot ---- Eliot Kimber, Owner Contrext, LLC http://contrext.com

Re: [basex-talk] Catalog Resolution Under Windows

2016-03-13 Thread Eliot Kimber
bad Simon Says behavior. It doesn't help that the Javadoc for the Apache CatalogManager isn't itself explicit that the catalog files property is in fact URLs, not OS-specific file paths. Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 3/13/16, 5:19 PM, "Imsieke, G

Re: [basex-talk] XLSX to XML

2016-04-11 Thread Eliot Kimber
POI project provides pretty robust Java code reading and writing Office documents including Excel files. It should be relatively easy to use it from BaseX as a Java extension. Cheers, Eliot Eliot Kimber, Owner Contrext, LLC http://contrext.com On 4/11/16, 6:00 AM, "Florian Eckey&qu

Re: [basex-talk] Catalog Resolution Under Windows

2016-03-21 Thread Eliot Kimber
o "/" before passing the value to the catalog manager. Cheers, E. Eliot Kimber, Owner Contrext, LLC http://contrext.com On 3/21/16, 7:46 AM, "Christian Grün" <christian.gr...@gmail.com> wrote: >Hi Eliot, > >I spent some time to find out what might have

[basex-talk] Basex Docker Container: How to Control Options

2017-03-26 Thread Eliot Kimber
Web apps to work. Thanks, Eliot -- Eliot Kimber http://contrext.com

Re: [basex-talk] Basex Docker Container: How to Control Options

2017-03-26 Thread Eliot Kimber
/srv/.basex: writing new configuration file. Note that it’s only complaining about DTD, CATFILE, SKIPCORRUPT, and CHOP, but not DBPATH, REPOPATH, and WEBPATH. I tried reordering things, no difference in result (but the messages reflect the order change). So it must be something about how these part

Re: [basex-talk] Basex Docker Container: How to Control Options

2017-03-26 Thread Eliot Kimber
-INF/jetty.xml I think this Unknown option this is actually an issue with the file itself but I don’t recall what the exact cause and/or solution was. Cheers, E. -- Eliot Kimber http://contrext.com On 3/26/17, 1:40 PM, "Eliot Kimber" <basex-talk-boun...@mailman.uni-konstanz.

Re: [basex-talk] Possible to Access Environment Variables from XQuery?

2017-03-25 Thread Eliot Kimber
Thanks—it never occurred to me this would be a built-in function of XQuery 3. Cheers, E. -- Eliot Kimber http://contrext.com On 3/25/17, 7:05 PM, "Christian Grün" <christian.gr...@gmail.com> wrote: Hi Eliot, fn:environment-variable should do the job; proc:

[basex-talk] Possible to Access Environment Variables from XQuery?

2017-03-25 Thread Eliot Kimber
from XQuery. Is there a built-in way to do this? Thanks, Eliot -- Eliot Kimber http://contrext.com

Re: [basex-talk] Basex Docker Container: How to Control Options

2017-04-01 Thread Eliot Kimber
to specify these options at document load time? Cheers, E. -- Eliot Kimber http://contrext.com On 4/1/17, 10:23 PM, "Eliot Kimber" <basex-talk-boun...@mailman.uni-konstanz.de on behalf of ekim...@contrext.com> wrote: I dug into the code and I think this is a code bug but I

Re: [basex-talk] Basex Docker Container: How to Control Options

2017-04-02 Thread Eliot Kimber
Yes, the options were at the end. But looking at the code I don’t see how that could have mattered. Perhaps I missed a detail? Cheers, E. -- Eliot Kimber http://contrext.com From: Christian Grün <christian.gr...@gmail.com> Date: Sunday, April 2, 2017 at 11:38 AM To:

Re: [basex-talk] Basex Docker Container: How to Control Options

2017-04-02 Thread Eliot Kimber
=true" That seems to work. I guess I could also set this environment variable in my docker-compose.yml file, although except for CATFILE, these are invariant for this application. Cheers, E. -- Eliot Kimber http://contrext.com On 4/1/17, 10:44 PM, "Eliot Kimber" <basex-talk-boun...@

Re: [basex-talk] Basex Docker Container: How to Control Options

2017-04-02 Thread Eliot Kimber
ions" comment. I hope the revised Wiki makes this more obvious [1]. Best, Christian [1] http://docs.basex.org/wiki/Options On Sun, Apr 2, 2017 at 12:45 PM, Eliot Kimber <ekim...@contrext.com> wrote: > Yes, the options were at the end. But

Re: [basex-talk] Basex Docker Container: How to Control Options

2017-04-01 Thread Eliot Kimber
options mechanism deisgn. Cheers, Eliot -- Eliot Kimber http://contrext.com On 3/26/17, 10:20 PM, "Eliot Kimber" <basex-talk-boun...@mailman.uni-konstanz.de on behalf of ekim...@contrext.com> wrote: I found my original mail thread from January 2016: htt

[basex-talk] Approximating ML's Reverse Queries Mechanism?

2017-05-23 Thread Eliot Kimber
process in general, but there must be well-understood strategies. I suspect that one could build the equivalent of ML’s reverse query index in BaseX. 2. Is there a direct equivalent to ML’s reverse query facility in BaseX or an obvious route to building one? Thanks, Eliot -- Eliot Kimber http

[basex-talk] Test Failure From Current Source, Failure to Run GUI from Eclipse

2018-05-14 Thread Eliot Kimber
on(BaseXImages.java:109) at org.basex.gui.layout.BaseXImages.(BaseXImages.java:34) ... 4 more I suspect it's something very simple but no idea what it might be. Thanks, Eliot -- Eliot Kimber http://contrext.com

Re: [basex-talk] 9.0.1: High Memory Usage Loading Docs Via GUI

2018-05-14 Thread Eliot Kimber
Yes, I wouldn't expect the grammars to chew up gigabytes. I'll provide a test data set for you. Cheers, E. -- Eliot Kimber http://contrext.com On 5/14/18, 12:45 PM, "Christian Grün" <christian.gr...@gmail.com> wrote: I would have expected some MBs to be sufficient

Re: [basex-talk] 9.0.1: High Memory Usage Loading Docs Via GUI

2018-05-14 Thread Eliot Kimber
XML application. Cheers, E. -- Eliot Kimber http://contrext.com On 5/14/18, 12:17 PM, "Christian Grün" <christian.gr...@gmail.com> wrote: Hi Eliot, Thanks for your observations. > I think the solution is to turn on Xerces' grammar caching.

Re: [basex-talk] 9.0.1: High Memory Usage Loading Docs Via GUI

2018-05-14 Thread Eliot Kimber
macOS updates since then, so could have been some Java issue or who knows what else. The good news is that even without grammar caching the DITA topics do load in a reasonable (if not ideal) amount of time and with appropriate memory usage. Cheers, E. -- Eliot Kimber http://contrext.com

Re: [basex-talk] 9.0.1: High Memory Usage Loading Docs Via GUI

2018-05-11 Thread Eliot Kimber
is to use the OT's preprocessing to parse all the docs and then use BaseX with the parsed docs where all the attributes have been expanded into the source. Cheers, E. -- Eliot Kimber http://contrext.com On 5/4/18, 9:52 AM, "Eliot Kimber" <basex-talk-boun...@mailman.uni-konstanz.

Re: [basex-talk] 9.0.1: High Memory Usage Loading Docs Via GUI

2018-05-04 Thread Eliot Kimber
2.5GB, but it's only about 250 topics. Cheers, E. -- Eliot Kimber http://contrext.com On 5/3/18, 4:59 PM, "Eliot Kimber" <basex-talk-boun...@mailman.uni-konstanz.de on behalf of ekim...@contrext.com> wrote: In the context of trying to do fun things with DITA docs in Bas

Re: [basex-talk] about special characters

2018-05-17 Thread Eliot Kimber
the incorrect encoding for some reason. Cheers, Eliot -- Eliot Kimber http://contrext.com From: <basex-talk-boun...@mailman.uni-konstanz.de> on behalf of BitRider001 <bit.rider@pm.me> Reply-To: BitRider001 <bit.rider@pm.me> Date: Thursday, May 1

[basex-talk] 9.0.1: High Memory Usage Loading Docs Via GUI

2018-05-04 Thread Eliot Kimber
y on macOS or with DITA documents in particular (the DITA DTDs are notoriously large)? Should I expect BaseX to be able to load this kind of corpus with 14GB of RAM? Cheers, E. -- Eliot Kimber http://contrext.com

  1   2   3   >