Re: [basex-talk] http server ... outsider localhost

2012-12-30 Thread Christian Grün
Hi Peter, the combination of BaseX and Jetty is successfully applied in many productive client/server environments. Can you provide us with some more details on how to reproduce the issue? Thanks, Christian ___ > hello list --- Happy Christmas & New Year > > If I run the

Re: [basex-talk] how to pass raw bytes intact?

2012-12-31 Thread Christian Grün
Jidanni, > echo '你好'|perl -pwle 's![^[:ascii:]]!$&!'|basex -q ' > declare option db:parser "html"; > declare option output:method "raw"; > doc("/dev/stdin")//*:wbr/..' If you want help, please try to help, too. Your example is not what I would call very helpful; give us at least

Re: [basex-talk] Initial xquery for full text and geospatial search of ISO 19115 docs

2012-12-31 Thread Christian Grün
Hi David, thanks for the insight into your project. It may be that the full-text index is not utilized by your XQuery expression. Did you have a look at the query info (e.g. via GUI, InfoView, or -V on command line)? Did you manage to write simpler queries that are processed faster? Best, Christi

Re: [basex-talk] XQuery Update using IF Condition...

2013-01-02 Thread Christian Grün
Hi John, all branches of your if expression must be updating, or return an empty sequence. In the latest snapshot [1], I’ve replaced the old error message with a more helpful one (“all expressions must be updating or return an empty sequence.”). To come back to your query: The following query wil

Re: [basex-talk] how to pass raw bytes intact?

2013-01-02 Thread Christian Grün
As Liam indicated (thanks!), XQuery may not be the best choice to process data on byte level: XQuery was built to work with Unicode characters as basic unit, which means that it will never be possible with pure XQuery to create illegal UTF8 sequences. This also means that the language provides no s

Re: [basex-talk] http server ... outsider localhost

2013-01-02 Thread Christian Grün
..done; thanks Andy, thanks Peter. ___ On Wed, Jan 2, 2013 at 1:58 PM, Andy Bunce wrote: > Peter, > Good to know it worked. > Christian, > I think this change should be made to the github source > > /Andy > > On Tue, Jan 1, 2013 at 2:00 AM, wrote: >> >> Andy >> changing

Re: [basex-talk] how to know creation options of a database

2013-01-02 Thread Christian Grün
Dear Fabrice, > How can I know the creation options of a given database ? > > When I open a database created with a few non default options (MAXCATS set > to 1) for example, > > GET MAXCATS seems to always return the last value set with SET MAXCATS. good point, there was no way to do so.. bu

Re: [basex-talk] UPDINDEX

2013-01-02 Thread Christian Grün
Since Version 7.5, you can specify globally valid options via system properties: http://docs.basex.org/wiki/Options ___ On Wed, Jan 2, 2013 at 8:10 PM, wrote: > Hello List > > I am working with 7.5 and am looking for guidance on setting UPDINDEX > > If I run the basex

Re: [basex-talk] Either db:replace() or I had too much to drink this XMas

2013-01-02 Thread Christian Grün
;) ..hi France, it may take us a while to reproduce what’s going on in your code, so.. do you think you could further simplify your example? Or, ideally, minimize it to a simple db:replace() function? > Note: If I use db:optimize('en-us', true()), I get 'unexpected error: 0' You could check the

Re: [basex-talk] TR: how to know creation options of a database

2013-01-02 Thread Christian Grün
'origine- > De : Christian Grün [mailto:christian.gr...@gmail.com] > Envoyé : mercredi 2 janvier 2013 21:34 > À : Fabrice Etanchaud > Cc : basex-talk@mailman.uni-konstanz.de > Objet : Re: [basex-talk] how to know creation options of a database > > Dear Fabrice, > &g

Re: [basex-talk] Fwd: concat string in for loop

2013-01-02 Thread Christian Grün
Cześć, Jaroslwy, as XML serialization was originally not built for outputting text, the handling of whitespaces is a little tricky. However, you can benefit from the new XQuery 3.0 "item-separator" output option: declare option output:item-separator '\n'; concat("text",' ',"additional text"),

Re: [basex-talk] Initial xquery for full text and geospatial search of ISO 19115 docs

2013-01-02 Thread Christian Grün
Hi David, due to the complexity of XQuery, it’s often a big challenge for the query optimizer to find out if an index can be used or not. This is the reason why some XML database don’t even try to rewrite queries for index access. What you can always do is: directly address the available index st

Re: [basex-talk] Initial xquery for full text and geospatial search of ISO 19115 docs

2013-01-02 Thread Christian Grün
Check out our Wiki article on full-text processing to find out more: http://docs.basex.org/wiki/Full-Text ___ On Wed, Jan 2, 2013 at 11:17 PM, Christian Grün wrote: > Hi David, > > due to the complexity of XQuery, it’s often a big challenge for the > query

Re: [basex-talk] Trying to learn BaseX

2013-01-05 Thread Christian Grün
Dear Kenneth, > 1. Modules seems to be compiled on every request in the GUI. currently, this is not only valid for the GUI, but for all execution modes of BaseX. Contrary to our fears, this turned out to be no show stopper for users, because the time for parsing and compiling queries has been opt

Re: [basex-talk] Request for UPDINDEX option setting via BaseX GUI

2013-01-05 Thread Christian Grün
Hi France, finally some feedback (this year turns out to be even more packed than 2012). > I could not find how to set the UPDINDEX option to true() in the BaseX Gui. > I also looked in .basexgui. Some time ago, we decided to wait with the visual integration of the flag until UPDINDEX also works

Re: [basex-talk] Changing content through Data Source/Oxygen

2013-01-05 Thread Christian Grün
onfig.xml is changed through webdav. > Re-optimizing indexes doesn't make the problem go away. > > > Does this provide an extra clue to the source of the issue? > > > > On Thu, Dec 20, 2012 at 10:53 AM, Christian Grün > wrote: >> >> Hi France, >> >

Re: [basex-talk] Either db:replace() or I had too much to drink this XMas

2013-01-05 Thread Christian Grün
Baril, sorry, but I’m still not sure how to reproduce your use case. > let $raw-menu := app:open-db('en-us')/menu[@id = $menu-id] Is app:open-db(...) equivalent to db:open(...) ? Do you think that the following script is equivalent to what you do via RESTXQ? You can save

Re: [basex-talk] Concurrent Query Execution

2013-01-05 Thread Christian Grün
Hi Happy, I didn’t have time to check out your example (just a warning: we received several mail provider warning because of your large attachments..), but it may be worth to have a look at our Wiki page on transaction management [1], which refers to our current locking mechanism (multiple readers

Re: [basex-talk] example .basexperm files please

2013-01-05 Thread Christian Grün
Hi Pete, I’m sorry that this issue still seems to cause troubles. I haven’t verified it yet, but I've instead added a new issue: https://github.com/BaseXdb/basex/issues/613 More input on how to handle this properly, or how to specify the problem more precisely, is welcome. Christian __

Re: [basex-talk] Either db:replace() or I had too much to drink this XMas

2013-01-08 Thread Christian Grün
I wonder what this could be. The script below gives me "smbonly ptt-help new" as result; what do you get? for $x in /* return $x/data(@id) ___ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz

Re: [basex-talk] DB backup not backing up images saved as raw files

2013-01-08 Thread Christian Grün
Hi France, no doubt, this is a bug; I’ve added it to our repo, and it will be fixed pretty soon: https://github.com/BaseXdb/basex/issues/616 Thanks, Christian ___ > Hi, > > How would I get around that issue? > > -- > France Baril > Architecte documentaire / Documentati

Re: [basex-talk] example .basexperm files please

2013-01-09 Thread Christian Grün
Hi Peter, I've added our user management such that the .basexperm file can now also be placed in the database directory [1]. In order to make this happen, you’ll probably have to add an existing .basexperm file to the WEB-INF\data\ directory of the BaseX WAR file. Could you try the latest snapsho

Re: [basex-talk] DB backup not backing up images saved as raw files

2013-01-09 Thread Christian Grün
Hi France, Issue 616 has been resolved, at least for 7.5.1; you are invited to check out the latest snaphot [1]. Christian [1] http://files.basex.org/releases/latest/ ___ On Wed, Jan 9, 2013 at 12:38 AM, Christian Grün wrote: > Hi France, > > no doubt, this

Re: [basex-talk] XQuery update: updating inside a closure & how to modify a node and insert it in a DB

2013-01-09 Thread Christian Grün
gt; > > On Thu, Nov 22, 2012 at 2:40 PM, Christian Grün > wrote: >> >> Hi Daniel, >> >> > Doesn't it introduce performance problems though? If you do this copying >> > with some bigger chunk of XML does it take the same amount of memory or is &g

Re: [basex-talk] XQuery update: updating inside a closure & how to modify a node and insert it in a DB

2013-01-09 Thread Christian Grün
…here is the official announcement: http://www.w3.org/News/2013#entry-9676 ___ On Wed, Jan 9, 2013 at 10:38 PM, Christian Grün wrote: > Hi Andy, > > true.. For everyone else: the latest versions of the XQuery 3.0 specs > have just been made > pub

Re: [basex-talk] Query slow via PHP

2013-01-10 Thread Christian Grün
.xq ___ > -Original Message- > From: Christian Grün [mailto:christian.gr...@gmail.com] > Sent: 05 December 2012 15:29 > To: Mayer, Jonathan > Cc: Bill Beck; basex-talk@mailman.uni-konstanz.de > Subject: Re: [basex-talk] Query slow via PHP > >> Thought you may like to know that I

Re: [basex-talk] XQuery update: updating inside a closure & how to modify a node and insert it in a DB

2013-01-10 Thread Christian Grün
; > Allowing something like: > > declare updating function local:check($fn){ > if(1=random:integer(2)) then db:output($fn()) > else db:output("no action") > }; > let $v:="good" > return local:check(%updating function(){ db:output($v)}) > > /Andy

[basex-talk] BaseX Users Meetup, XMLPrague

2013-01-14 Thread Christian Grün
Dear all, we've now assigned two slots for our Friday's Users Meetup in Prague. The pre-conference schedule is online: http://www.xmlprague.cz/pre-conference-friday/ We are still interested in your presentations, live demos, etc.. Give us a note! Next, you can still register for the conferenc

Re: [basex-talk] Namespaces on element construction

2013-01-14 Thread Christian Grün
Dear Arto, thanks for reporting this; looks like a bug, which I’ve added to our issue tracker: https://github.com/BaseXdb/basex/issues/618 Best, Christian ___ On Fri, Jan 11, 2013 at 2:54 PM, Arto Viitanen wrote: > Why does this query (on BaseX 7.5, basexgui) > > let

Re: [basex-talk] [BXSQ0002] calling sql:execute() in BaseX 7.5.1 snapshot

2013-01-14 Thread Christian Grün
Dear Charles, with 7.5, the signatures of our SQL functions were slightly updated [1]. You’ll need to use sql:execute-prepared() for prepared statements. Hope this helps, Christian [1] http://docs.basex.org/wiki/SQL#sql:execute ___ > I have the following code, which work

Re: [basex-talk] best way to partition large data sets among collections

2013-01-14 Thread Christian Grün
Hi Peter, thanks for the link. There’s no general answer for your question, as an application may both run flawlessly with a single or hundreds of databases, depending on how your XQuery expressions look like. If you do regular updates, I suggest to split your data into fixed instances that will n

Re: [basex-talk] 256 namespaces limit

2013-01-14 Thread Christian Grün
Hi Gerrit, the extension of the namespace limit is still on our agenda, but it will take some more time to make it happen (it may eventually lead to a new storage layout that’s not compatible anymore with the existing one..). Sorry to let you wait, Christian ___ On Mon, J

Re: [basex-talk] unzip

2013-01-14 Thread Christian Grün
8/31/getting-started-with-open-xml-odf-idml-and-other-zipped-xml-documents-in-marklogic/ >>>> >>>> What's the easiest way to do this sort of thing in basex? >>>> >>>> thanks .. Jason >>>> ___

Re: [basex-talk] 7.5.1 beta XMLDB api issues

2013-01-14 Thread Christian Grün
Hi Jason, > https://github.com/BaseXdb/basex-examples/blob/master/src/main/java/org/basex/examples/xmldb/XMLDBInsert.java in order to make the example work, you first need to run XMLDBCreate. I have extended the JavaDoc to point to this issue. > Also, any update on the status of March 2011 regar

Re: [basex-talk] best way to partition large data sets among collections

2013-01-14 Thread Christian Grün
Hi Peter, > Do you have any information to guide me here; what sorts of XQuery > expressions should I match with large numbers of collections, and > which with small numbers of collections? hmm, there is no answer I get in mind that could give you general guidance here, as XQuery provides just to

Re: [basex-talk] unzip

2013-01-14 Thread Christian Grün
> _rels/.rels ..ok, so *.xml,*.rels could be the right value for CREATEFILTER; did you try this already? > The other _rels directories are for example: > > word/_rels/document.xml.rels > > > > On Mon, Jan 14, 2013 at 11:12 PM, Christian Grün > wrote: >> H

Re: [basex-talk] Determining whether a function exists

2013-01-14 Thread Christian Grün
Hi Charles, > exists(function-lookup(xs:QName("sql:execute-prepared"), 2)) interesting one; this always gives me true, no matter how desperately I try; do you have some more hints how to make this happen? Are you sure you tried it with 7.5? Christian _

Re: [basex-talk] Determining whether a function exists

2013-01-15 Thread Christian Grün
> However, exists(function-lookup(xs:QName("sql:i-do-not-exist"), 2)) > also returns true 100% of the time. True 100%; fixed in the latest snapshot [1]. Christian [1] http://files.basex.org/releases/latest/ ___ BaseX-Talk mailing list BaseX-Talk@mailman

Re: [basex-talk] DB freezes on updating restxq - a simpler example

2013-01-15 Thread Christian Grün
Hi France, as your query is an updating one, the server will be deadlocked when triggering another query: the second query cannot be evaluated before the current one has been finished, and the current query is waiting for this second query. To debug your query, you’ll have to Instead, you’ll nee

Re: [basex-talk] fastest way to add/replace/delete xml

2013-01-17 Thread Christian Grün
Hi Fabrice, there’s probably no general answer to that, so I suggest you need to try what’s working best for you. As a general hint, it will always be faster to replace multiple contents via a single query, as this gives the optimizers better chances to perform required operations only once. Next,

Re: [basex-talk] Changing content through Data Source/Oxygen

2013-01-17 Thread Christian Grün
://github.com/BaseXdb/basex/issues/608 [3] http://files.basex.org/releases/latest/ ___ On Thu, Dec 20, 2012 at 4:53 PM, Christian Grün wrote: > Hi France, > > ok, got it. One solution that might help you: you could set the > requested system properties before

Re: [basex-talk] dynamic web application, XQJ, BaseX

2013-01-20 Thread Christian Grün
Hi Marco, sorry for the late feedback. Can you reproduce the issues in the BaseX GUI or on command line? Best, Christian ___ > 2013/1/17 marco fregonese >> >> Hi there, >> >> I'm developing a Java dynamic web application in Eclipse Juno using XQJ >> and BaseX (OS

Re: [basex-talk] Use of BaseX

2013-01-21 Thread Christian Grün
> I have 10 of these files in my collection. So my question is how can I query > all these Xml files at ones and get specific results like "Books with price > value greater than 100". Use a simple XPath expression [1], such as collection("name-of-collection"//Books[Price > 100] You mentioned o

Re: [basex-talk] BaseX: Support for JSON

2013-01-22 Thread Christian Grün
Hi Abishek, our JSON Module assumes that the input is a correctly encoded Unicode string. More specifically, it takes an xs:string as argument, which should usually already be valid Unicode. You could start and have a look at the rejected JSON strings by wrapping your json function call with try/

Re: [basex-talk] Fwd: dynamic web application, XQJ, BaseX

2013-01-22 Thread Christian Grün
, BaseX > To: Christian Grün > > > There is a class in my Java web application that has a method that, after > connecting to my BaseX database, execute a query on it. > This query (associated to the "xquerystring" variable), after importing a > library module and pointi

Re: [basex-talk] Hi all, and URL Rewriting/Request handling question

2013-01-22 Thread Christian Grün
Hi Jay, > I've been developing in eXist since 2008, and I'm now trying out your BaseX. welcome! > I'm impressed so far, but how can I perform URL rewriting? I've tried using > Jetty's Rewrite Handler via the example code at > http://wiki.eclipse.org/Jetty/Feature/Rewrite_Handler but then the ser

Re: [basex-talk] HTTPS

2013-01-24 Thread Christian Grün
Hi Peter, Windows 7 and WebDAV is a tricky combination. If you haven’t done so, you could have a look at our Wiki article on WebDAV and Windows 7 [1], or check out the SSL options of jetty.xml [2]. Christian [1] http://docs.basex.org/wiki/Webdav [2] https://github.com/BaseXdb/basex-api/blob/mas

Re: [basex-talk] Collection related functions [SEC=UNCLASSIFIED]

2013-01-24 Thread Christian Grün
Dear Russell, in BaseX, databases are light-weight data structures and can be compared to collections; see [1] for some information on that. As you guessed right, the usual approach is to either create multiple databases and treat them like collections, or include empty dummy files in your databas

Re: [basex-talk] Performance with fulltext searches

2013-01-24 Thread Christian Grün
Liam’s solution should do all you need. You may as well want to try a combination of ftand/ftor: count(/log/logentry[ paths/path/text() contains text "trunk" ftand ftnot("tags" ftor "branches") ]) ___ On Thu, Jan 24, 2013 at 12:52 AM, Liam R E Quin wrote: > >> count

Re: [basex-talk] Basex performance

2013-01-24 Thread Christian Grün
Hi Mark, it’s difficult to present benchmark results that are valid for different data and use cases, but I can just tell that BaseX was particularly tailored to process XPaths on large amounts of XML data (up to several GB), and that it uses various index structures to further speed up queries, s

Re: [basex-talk] XSD Validation

2013-01-25 Thread Christian Grün
Hi Seenivasan, finally some feedback.. > let $doc := > let $schema := doc("../xsd/XDW.xsd") > return validate:xsd($doc,$schema) Yes, I see this is a problem, and I’ve encountered similar use cases, but I'm currently not sure how to fix this properly. The issue is that BaseX relies on external s

Re: [basex-talk] concurrency within xquery

2013-01-25 Thread Christian Grün
Hi Seenivasan, by chance, we’ve recently thought about such a feature, but we’re not sure yet if it can be realized without undesired side-effects. One idea was to introduce a new pragma for explicitly locking parts of the code. This could look as follows: (# db:lock #) { file:write(..) }

Re: [basex-talk] text() vs string()

2013-01-29 Thread Christian Grün
Dear Wendell, if you query structured documents, Query [C] will be automatically optimized to [A]; this will not apply, however, if the addressed element contains other elements, such as is the case for mixed content. As Cerstin indicated, the text index is based on text nodes, so the main reason

Re: [basex-talk] URI resolver when calling XSLT

2013-01-29 Thread Christian Grün
ogrammer. > > It would be very (very) nice to be able to do this right. > > My apologies if this post is no help but only a "me too". :-) > > Cheers, > Wendell > > On Fri, Jan 25, 2013 at 4:41 PM, Christian Grün > wrote: > > Hi Seenivasan, > >

Re: [basex-talk] BaseX Performance Test - hitting a performance wall

2013-01-29 Thread Christian Grün
Hi Gregg, finally some feedback.. Thanks for passing me on your performance results. It’s quite obvious that your application leads to heavy I/O. > i'd like to get a deeper understanding of how your file-io is organized and > what your caching scheme looks like. What sort of file-io caching mech

Re: [basex-talk] XSD Validation

2013-01-29 Thread Christian Grün
Hi Marco, thanks again for sending me the patch for the Validation Module. After some thoughts, I’ve eventually decided to add two new functions dtd-info() and xsd-info(), which return all warnings and errors in a string sequence [1] – in contrast to the existing functions, which continue to eithe

Re: [basex-talk] Compiling w/ HTTP

2013-01-30 Thread Christian Grün
Hi Jay, you need to call "mvn package", which will create an "etc" directory in your basex directory that contains all relevant libraries for the startup script. As an alsternative, you can type in "mvn jetty:run", which will access all libraries from Maven’s .m2 local directory. I have extended o

Re: [basex-talk] URI resolver when calling XSLT

2013-01-31 Thread Christian Grün
...some quick feedback regarding the relative path issues: the doc(...) function in the schema declaration can be skipped and replaced by a simple path string. This could already resolve the path discussed issues: Old: validate:xsd(, doc("../xsd/XDW.xsd") New: validate:xsd(, "../xsd/XDW.xsd"

Re: [basex-talk] XqueryDebugger

2013-02-01 Thread Christian Grün
Hi Rob, I was hoping to read "I really could do a nice debugger" ;) …but, yes, it would surely be possible and absolutely desirable. Can’t promise, though, when it will happen, who will do it, and if it will be included in Eclipse, oXygen, or our own GUI. Are there any volunteers out there? Chri

Re: [basex-talk] XqueryDebugger

2013-02-01 Thread Christian Grün
Hi Marco, > There seems to be some kind of linkage problem since we never actually > succeded in linking eclipse with basex ("Error: Could not find or load main > class") even when following the tut at: > http://docs.basex.org/wiki/Integrating_Eclipse What’s the complete error message? Do you hav

Re: [basex-talk] Java User Function and Context Awareness

2013-02-01 Thread Christian Grün
Dear Jeff, Afair, UserFunc should never be evaluated when calling a Java function. Do you have an sscce for demonstrating your use case? By extending the QueryModule class, you are getting access to all internal query process information, and the current context is one of them. As you already gue

Re: [basex-talk] XqueryDebugger

2013-02-01 Thread Christian Grün
people out there that can share their experiences? Christian ___ On Fri, Feb 1, 2013 at 5:42 PM, Marco Lettere wrote: > Is there any technological hint on where to start? > M. > > > On 02/01/2013 05:27 PM, Christian Grün wrote: >> >> Hi Rob, &g

Re: [basex-talk] XqueryDebugger

2013-02-01 Thread Christian Grün
May there be any classpath related issues? Does the directories' location > matter? Dunno. > > Thanks, > M. > > > On 02/01/2013 05:31 PM, Christian Grün wrote: >> >> Hi Marco, >> >>> There seems to be some kind of linkage problem since we never actually

Re: [basex-talk] JSON or JSONML output formatting

2013-02-01 Thread Christian Grün
Hi Zachary, there are numerous JSON uni- and bidirectional JSON-XML converters out there, all of which have certain flaws (see e.g. [1]). We have implemented JSONML for creating JSON outputs from arbitrary XML documents, but we are not particularly satisfied with it. A short time ago, I proposed t

Re: [basex-talk] Java User Function and Context Awareness

2013-02-01 Thread Christian Grün
as xs:string* { > let $meta := p:new() > return p:metadata($meta, $key) > }; > > basex.xml: > http://www.basex.org/modules/pkg";> > containment.jar > cnde.service.operator.GraphContainment > > > expath-pkg.xml: > http://expath.org/ns/pkg"; >

Re: [basex-talk] XQJ, option declaration

2013-02-01 Thread Christian Grün
You may need to add the namespace declaration in your query. I have slightly revised our documentation to make this more explicit: http://docs.basex.org/wiki/XQuery_3.0#Serialization ___ On Fri, Feb 1, 2013 at 6:15 PM, marco fregonese wrote: > Hi there, > > In my applic

Re: [basex-talk] Java User Function and Context Awareness

2013-02-01 Thread Christian Grün
ot;).execute(context); >System.out.println(result + " " + result2); >new DropDB("test").execute(context); > >context.close(); > } catch(Exception e) { >e.printStackTrace(); > } > } > } > > > > > From: Ch

Re: [basex-talk] Problem with DOM LS serialization

2013-02-01 Thread Christian Grün
Dear Michael, could you provide us with a small, self-contained example that allows us to reproduce the bug? Thanks; greetings to my home town, Christian ___ Dr. Christian Grün Box 188, Uni KN D-78457 Konstanz http://christian-gruen.de On Fri, Feb 1, 2013 at 3:26 PM

Re: [basex-talk] Java User Function and Context Awareness

2013-02-01 Thread Christian Grün
cnde.module.DbXml > > > Ant build.xml: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > todir="C:\xquery\basex\repo\http-www.sleepycat.com-2

Re: [basex-talk] Java User Function and Context Awareness

2013-02-01 Thread Christian Grün
null (since every other path throws > an Exception). > > If you look in a debugger, you see that context.value had a DBNode value > until just before UserFunc.value() at line 170, which was just before the > metadata() function was called. > > ____ &g

Re: [basex-talk] URI resolver when calling XSLT

2013-02-01 Thread Christian Grün
hould I send you a demonstration > example? > > Cheers, > Wendell > > > On Thu, Jan 31, 2013 at 4:18 AM, Christian Grün > wrote: >> ..to simplify testing, could you send me some xml/xsd files your are >> working with? >> >> Thanks, >> Christi

Re: [basex-talk] Xquery with server commands

2013-02-04 Thread Christian Grün
Hi Raymond, > This code will execute, but with an empty result. This is because within the > session only db1 is opened and I am querying db2. When explicit opening > (session.execute(new Open(db2)); ) it returns the expected value of course. > Do you agree that this can be confusing? I'm not 100

Re: [basex-talk] Problem with DOM LS serialization

2013-02-04 Thread Christian Grün
Hi Michael, the problem should be fixed with the latest snapshot. Best, Christian ___ On Fri, Feb 1, 2013 at 6:36 PM, Christian Grün wrote: > Dear Michael, > > could you provide us with a small, self-contained example that allows > us to reproduce the bug

Re: [basex-talk] Problem with DOM LS serialization

2013-02-05 Thread Christian Grün
> thank you for quickly attacking the problem! But sorry, but the problem is > not fixed.I get the same error. The parent references within the serialized node fragment should now be correctly resolved. Do you have an idea what could be the reason for the NPE? > [...] > I propose to add a standa

[basex-talk] BaseX 7.6: The XMLPrague Edition

2013-02-05 Thread Christian Grün
Hi all, we are excited to announce Version 7.6 of BaseX -- the XMLPrague Edition -- which provides some fresh new features that will further boost your productivity: DATABASE LOCKING: - updates on different databases can now be executed in parallel and won't lock your read-only queries anymore:

Re: [basex-talk] path index does not seem to be used

2013-02-05 Thread Christian Grün
Hi Fabrice, this may be due to the existence of namespaces in your document. Various optimizations will only be triggered on documents with no namespaces, or a single default namespace. Hope this helps, Christian ___ On Tue, Feb 5, 2013 at 12:00 PM, Fabrice Etanchaud wro

Re: [basex-talk] corruption when adding documents via the GUI in a almost full database

2013-02-05 Thread Christian Grün
> When adding documents in a almost full database (Properties/Resources > panel), > > An error is raised, and then the node count gets negative > (Properties/General panel). > > Is there a way to safely add documents until the maximum node number is > reached, Currently, there is no such option, b

Re: [basex-talk] BaseX as web application in servlet container

2013-02-06 Thread Christian Grün
Hi Marco, what modifications have you done to the files, and which web server are you using? Thanks, Christian Am 06.02.2013 09:58 schrieb "marco fregonese" : > Hello, > > Is anyone there who can explain to me why in BaseX76.war (or previous > versions) there are two WEB-INF directories each wi

[basex-talk] Agenda XMLPrague Users Meetup

2013-02-06 Thread Christian Grün
Dear all, the agenda of the two sessions of our BaseX Users Meetup is online [1]: SESSION I: · 14:30 Christian Grün, Alexander Holupirek: Racing through the last 365 days · 15:00 Arve Gengelbach, Sabine Teubner: How to develop RESTXQ-based web applications with BaseX · 15:20 Andy Bunce

Re: [basex-talk] BaseX as web application in servlet container

2013-02-06 Thread Christian Grün
Hi Marco, the WEB-INF files in the classes subdirectory are required for creating a default webapp directory in the BaseXHTTP standalone mode. There may be some ways to exclude those files in the maven packaging mechanism, but this would need to checked first. Hope this helps, Christian _

Re: [basex-talk] SAX Serializer

2013-02-06 Thread Christian Grün
> it's very great that you've incorporated the SAXSerializer. But you've > overdone it a bit. The setItem() method and the parse() methods are > required. I've written a JUnit-Test to demonstrate the application of the > SAXSerializer with JAXB. Fine; I’ve moved the initialization of the item to b

Re: [basex-talk] corruption when adding documents via the GUI in a almost full database

2013-02-06 Thread Christian Grün
> Do you still plan to break the 2 147 483 648 nodes limit in version 8 ? Yes, this is still planned. I can’t give any info, though, if this will happen in Version 8 or later. Best, Christian > > Best regards, > > Fabrice > > -Message d'origine-

Re: [basex-talk] SAX Serializer

2013-02-06 Thread Christian Grün
..should be fixed, thanks. ___ On Wed, Feb 6, 2013 at 1:46 PM, wrote: > Dear Christian, > > thanx! That's fine for me. I wondered how expensive it might be to > instantiate a Serializer. > > One problem remains: In SAXSerializer line 253 the initializiation of Attr > is mi

Re: [basex-talk] Document modification timestamp

2013-02-09 Thread Christian Grün
Hi Bob, > Sorry for the newbie question, but how do I obtain a modification timestamp > for a document in a database? ..not a newbie as you might think: it’s a fact that the timestamps of documents are currently not stored in the database. > Is there any clean way to integrate with a GNU make-ba

Re: [basex-talk] Binding external variable to sequence

2013-02-09 Thread Christian Grün
Hi Jeff, the BINDINGS options can only be used to bind single items to variables. Some options to solve this problem are to.. – split your strings within the query, using a unique delimiter character.. declare variable $ids external; let $ids := tokenize($ids, "~") let $count := count($ids

Re: [basex-talk] Load xml files to BaseX in a loop

2013-02-10 Thread Christian Grün
Hi Nicholas, > If I run replace.xq, shown below, it fails with Out of Main Memory as you already experienced in your tests, the replace command takes less memory than the db:replace() function, as the second one will first cache all update operations on the Pending Update List [1] before actuall

Re: [basex-talk] XQDoc for BaseX

2013-02-12 Thread Christian Grün
John, thanks a lot for your contribution! Be sure I’ll soon have a look at it. Christian ___ On Tue, Feb 12, 2013 at 11:40 AM, John Snelson wrote: > Hi all, > > The xquerydoc project is a 100% XQuery 1.0 project which can parse XQuery > modules and extract XQDoc style do

Re: [basex-talk] path index does not seem to be used

2013-02-13 Thread Christian Grün
Hi Wendell, > Can you be specific regarding what these optimizations are, or point > me to documentation? Or more generally, can you offer any advice for > how I should (a) detect related issues, and (b) deal with them? I’m sorry we can’t offer more detailed information on this; as our query opti

Re: [basex-talk] loading basex from a cron job

2013-02-13 Thread Christian Grün
Dear Rob, in general, BaseX runs fine when being invoked via cronjobs. Next, I just reproduced your scenario and didn’t encounter any surprises (I have no idea, though, what‘s happening inside your script). > 3 - line in my bash script is "/home/xxx/basex/bin/basexclient -Uxxx -Pxxx < > /home/xxx

Re: [basex-talk] file:list - returns no directories

2013-02-13 Thread Christian Grün
Dear Hans-Jürgen, true, the existing implementation didn’t fully conform to our own spec, which states that all files and directories are returned, no matter which arguments are specified. Instead, directories were ignored as soon as a pattern was specified. This is now fixed in the latest stable

Re: [basex-talk] access to dom representation of result in server mode or with xqj

2013-02-13 Thread Christian Grün
Hi Fabrice, yes, such a feature would be a fabulously interactive. Unfortunately, it would break our concurrency and transactions concept, because you’ll never know what users are about to do with those nodes. Some current options to get better performance are: – in embedded mode: switch to a mo

[basex-talk] XMLPrague: Talks and Slides

2013-02-13 Thread Christian Grün
Dear subscribers, it was great to see and talk to many of you at the XMLPrague conference! The slides of most talks are now available online: http://files.basex.org/xmlprague2013/ Video clips of the presentations are in process and will be added soon. Have fun, Christian _

Re: [basex-talk] can't change password in basex web app

2013-02-17 Thread Christian Grün
Hi Marco, have you also copied your user permissions file, as described in our Wiki [1]? Best, Christian [1] http://docs.basex.org/wiki/Web_Application#User_Management ___ On Fri, Feb 15, 2013 at 11:20 AM, marco fregonese wrote: > Hello everybody, > > I'm trying to chan

Re: [basex-talk] WebDAV Locking of BaseX Source on Tomcat

2013-02-17 Thread Christian Grün
Dear Sean, just some quick reply: > What is the relationship/interaction between > org.apache.catalina.servlets.WebdavServlet, with its full compliment of > methods, and org.basex.http.webdav.WebDAVServlet? I don’t know if you have done so already, but it may be worth to directly jump into the

Re: [basex-talk] problem keeping basexserver as an alive service

2013-02-18 Thread Christian Grün
Hi Richard, thanks for your log file. Could you do some testing if the problem persists with the latest version of BaseX? Best, Christian ___ On Mon, Feb 18, 2013 at 9:25 PM, Richard Alexander Castro Mamani wrote: > Hello, > > I did what you told me. I tested it twice I

Re: [basex-talk] can't change password in basex web app

2013-02-18 Thread Christian Grün
Hi Marco, > I could change the admin password eventually but for me the problem was that > there is no .basexperm file in basex web application unless you create a new > user (so a .basexper file is automatically created as well) and after you > change manually the admin MD5 hash value (supposing

Re: [basex-talk] Not enough space

2013-02-19 Thread Christian Grün
Hi Shannon, > Hi, whenever I choose to show the tree visualization, after a very long > delay, "Not enough space" is displayed in that space--it's a small database the message simply indicates that there are too less pixels in your tree view to visualize all nodes of your document. However, you’l

Re: [basex-talk] Not enough space

2013-02-19 Thread Christian Grün
> That did occur to me, being an 11" display at 1366x768; however, I believe it > worked at some point, and there is the matter of the very long pause, plus it > happens when I've closed all other views and in full-screen mode. Makes me > wonder if something else isn't going on here? If your da

Re: [basex-talk] basex docs - bulk export?

2013-02-19 Thread Christian Grün
You may want to have a look at the PDF versions of our Wiki: http://docs.basex.org/wiki/Documentation If anyone out there has some ideas how to make PDF generation easier, we’d be glad for your feedback! ___ > Is there a way to bulk export the basex docs wiki? Or, if i

Re: [basex-talk] basex docs - bulk export?

2013-02-19 Thread Christian Grün
> I see that now on the homepage. Can I suggest that this link be repeated > under "print/export" in the left-hand menu? Ok, done. > And just out of curiousity, is there a way to get as data (markupl, csv, > etc.) ? If you find a way, I’d be interested as well ;) The MediaWiki homepage might be

<    1   2   3   4   5   6   7   8   9   10   >