Re: [basex-talk] How to export a database containing xi:include to multiple files

2018-06-27 Thread Imsieke, Gerrit, le-tex

Hi Marco,

It didn’t go unanswered. Here’s Alex’s reply: 
https://mailman.uni-konstanz.de/pipermail/basex-talk/2018-May/013147.html
Although his answer doesn’t address the issue of recreating xi:include 
elements from elements with an xml:base attribute.


Gerrit

On 27.06.2018 17:34, Marco Randazzo wrote:

Hi,
I’m posting again the same question I did some time ago, unfortunately 
unanswered L


I used baseX GUI (9.0.1) to create a database similar to the following 
test file:


http://www.w3.org/2001/XInclude;>

     

     



The Result displayed in the baseX gui is correct:

http://www.w3.org/2001/XInclude;>

   

   



Now, after editing the values, I would like to export the contents of 
the database to MULTIPLE xml files, recreating the same files and the 
original folders (I see this information is not lost, it is stored in 
the value of xml:base)


However, using the export function available in the baseX GUI, I am able 
to obtain only a SINGLE file containing the Result shown above, where 
the two files have been merged in a single file.


What can I do?

Thank you,
Cheers,

Marco Randazzo



--
Gerrit Imsieke
Geschäftsführer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
gerrit.imsi...@le-tex.de, http://www.le-tex.de

Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930

Geschäftsführer / Managing Directors:
Gerrit Imsieke, Svea Jelonek, Thomas Schmidt


[basex-talk] How to export a database containing xi:include to multiple files

2018-06-27 Thread Marco Randazzo
Hi,
I'm posting again the same question I did some time ago, unfortunately 
unanswered :(

I used baseX GUI (9.0.1) to create a database similar to the following test 
file:
http://www.w3.org/2001/XInclude;>



The Result displayed in the baseX gui is correct:

http://www.w3.org/2001/XInclude;>
  
  


Now, after editing the values, I would like to export the contents of the 
database to MULTIPLE xml files, recreating the same files and the original 
folders (I see this information is not lost, it is stored in the value of 
xml:base)

However, using the export function available in the baseX GUI, I am able to 
obtain only a SINGLE file containing the Result shown above, where the two 
files have been merged in a single file.
What can I do?

Thank you,
Cheers,
Marco Randazzo



[basex-talk] Tracing query execution

2018-06-27 Thread Iwan Briquemont
Hello,

I use BaseX mostly for boolean queries, I have a hardware database and
I check if specific hardware support features I need.

It works great but when something is not as expected, it's hard to find
out the reason.

E.g. given an expression like:
$some-value = $some-list and (custom:predicate() or $x > $y)
I would like to know why it's true or false.
For now I add trace() manually on the subexpressions, rerun, add trace
to more specific parts, etc.

Ideally I would want to break down the query execution so it shows the
values of subparts of the query to pinpoint why it is false, e.g. have
an output like:
$some-value = $some-list and (custom:predicate() or $x > $y) ->
false()$some-value = $some-list -> true()$some-value -> 1$some-list ->
(1, 2, ..., 10)custom:predicate() or $x > $y ->
false()custom:predicate() -> false()... # It should also go inside the
function$x > $y -> false()$x -> 10$y -> 11
Any ideas how it could be achieved?
Looking at the code, maybe a debug() (like iter() or item()) method
could be added to Expr objects which would trace the expression query,
file, line and the result of the expression (or probably the first x
characters of the result to avoid huge output)? With an xquery function
which would trigger it.

I also thought of modifying the query programmatically to add trace()
calls but that seems overly complicated.


Best regards,
Iwan

[basex-talk] Distributing service as EAR

2018-06-27 Thread Mauro Mugnaini
Hi All,
We are used to implement and deploy services into containers (Tomcat, JBoss, 
Wildfly, ...) as single WAR and for this kind of work we always implement 
starting from the BaseX WAR distribution.

Now, looking in depth into the structure of the WAR, we noted that all the 
third party JARs, BaseX common classes JAR and XQJ bridge JAR are located into 
WEB-INF/lib folder whereas HTTP related classes (filters, servlet, listener and 
so on) are located inside the WEB-INF/classes.
Moreover a possibly useless (?) WEB-INF folder with another web.xml and another 
jetty.xml in the same WEB-INF/classes.

My question is: is there any reason why files in WEB-INF/classes are not 
“jarred” into a single archive and placed into WEB-INF/lib folder? Are there 
any cons doing that way according to your experience?
The objective is to optimize the EAR content, where several WARs of services 
are packaged into a single EAR file, by factoring out all the JARs into the 
/lib folder of the EAR. 


Thank you and regards,

Mauro