Re: [basex-talk] BaseX request from Saxon XSL transformation

2015-11-18 Thread cmarchand
 

Thanks, I was reading the same articles... It was just to check if
something already exists... 

Best regards, 

Christophe 

Le 2015-11-18 11:35, Dirk Kirsten a écrit : 

> Hello Christophe,
> 
> I've never done this, but I'd say that extension functions are the way to go. 
> If I read the saxon documentation correctly 
> (http://www.saxonica.com/html/documentation/extensibility/functions/), you 
> can use it to call Java functions from within XSLT. As BaseX is written in 
> Java you should be able to put the BaseX jar file into the library path and 
> query BaseX using Java. Many Java Examples of how to query BaseX can be found 
> at http://docs.basex.org/wiki/Java_Examples
> 
> Cheers
> Dirk
> 
> On 11/18/2015 09:18 AM, cmarch...@oxiane.com wrote: 
> 
>> Hello, 
>> 
>> I have to query a BaseX database from a XSL transformation. Does someone has 
>> ever done this ? I have no idea where to look in... 
>> 
>> I use SaxonEE, so I can write an extension function, if needed... 
>> 
>> Best regards, 
>> 
>> Christophe
> 
> -- 
> Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
> |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
> |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
> |   Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
> `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
 

[basex-talk] Upcoming: XMLPrague 2016

2015-11-18 Thread Christian Grün
Dear all,

In around three months, it will be the 5th time that we'd like to
organize user meeting in Prague. This time, the XML Prague conference
takes place from Thursday to Saturday, Feb 11-13, and our meeting will
be onThursday.

As you all do so many exciting things with BaseX, we would be more
than interested to have some of you as speakers! We are very thankful
to those of you who have already talked on one of our previous
meetings; it has been your contributions that made the past event so
awesome!

Please don't hesitate and tell us if you are interested in presenting
your work to the members of the community. If you have presented
before, you are of course invited as well.

More to come,
Christian


Re: [basex-talk] BaseX request from Saxon XSL transformation

2015-11-18 Thread Dirk Kirsten
Hello Christophe,

I've never done this, but I'd say that extension functions are the way
to go. If I read the saxon documentation correctly
(http://www.saxonica.com/html/documentation/extensibility/functions/),
you can use it to call Java functions from within XSLT. As BaseX is
written in Java you should be able to put the BaseX jar file into the
library path and query BaseX using Java. Many Java Examples of how to
query BaseX can be found at http://docs.basex.org/wiki/Java_Examples

Cheers
Dirk

On 11/18/2015 09:18 AM, cmarch...@oxiane.com wrote:
>
>  
>
>  
>
> Hello,
>
>  
>
> I have to query a BaseX database from a XSL transformation. Does
> someone has ever done this ? I have no idea where to look in...
>
> I use SaxonEE, so I can write an extension function, if needed...
>
>  
>
> Best regards,
>
> Christophe
>

-- 
Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
|   Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
`-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22



Re: [basex-talk] BaseX request from Saxon XSL transformation

2015-11-18 Thread Imsieke, Gerrit, le-tex
A more convenient way (at least for Java amateurs like myself) might be
to set up a RESTXQ service in BaseX and to query it using plain
fn:doc(''). At least this works for GET requests. If you need to post
something, you’ll probably need the EXPath HTTP client library [1] that
doesn’t ship with Saxon yet, apart from Florent Georges’ patch [2].

Gerrit

[1] http://expath.org/modules/http-client/
[2] https://groups.google.com/forum/#!topic/expath/PKl27uQndng


On 18.11.2015 11:38, cmarch...@oxiane.com wrote:
>  
> 
>  
> 
> Thanks, I was reading the same articles... It was just to check if
> something already exists...
> 
>  
> 
> Best regards,
> 
> Christophe
> 
>  
> 
> Le 2015-11-18 11:35, Dirk Kirsten a écrit :
> 
>> Hello Christophe,
>>
>> I've never done this, but I'd say that extension functions are the way
>> to go. If I read the saxon documentation correctly
>> (http://www.saxonica.com/html/documentation/extensibility/functions/),
>> you can use it to call Java functions from within XSLT. As BaseX is
>> written in Java you should be able to put the BaseX jar file into the
>> library path and query BaseX using Java. Many Java Examples of how to
>> query BaseX can be found at http://docs.basex.org/wiki/Java_Examples
>>
>> Cheers
>> Dirk
>>
>> On 11/18/2015 09:18 AM, cmarch...@oxiane.com wrote:
>>>
>>>  
>>>
>>>  
>>>
>>> Hello,
>>>
>>>  
>>>
>>> I have to query a BaseX database from a XSL transformation. Does
>>> someone has ever done this ? I have no idea where to look in...
>>>
>>> I use SaxonEE, so I can write an extension function, if needed...
>>>
>>>  
>>>
>>> Best regards,
>>>
>>> Christophe
>>>
>>
>> -- 
>> Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
>> |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
>> |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
>> |   Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
>> `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22

-- 
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: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vöckler


[basex-talk] BaseX request from Saxon XSL transformation

2015-11-18 Thread cmarchand
 

Hello, 

I have to query a BaseX database from a XSL transformation. Does someone
has ever done this ? I have no idea where to look in... 

I use SaxonEE, so I can write an extension function, if needed... 

Best regards, 

Christophe 

Re: [basex-talk] zip:update-entries - unexpected results

2015-11-18 Thread Christian Grün
> Please note: the Wiki entry for the Zip module still reads: "It may soon be 
> replaced by the Archive Module. "

I agree, the wording is a bit fuzzy. Indeed we wanted to remove the
ZIP Module, but as it’s still used in some applications, it’s still
available. What better wording do you have in mind? Maybe something
like "We recommend you to use the newer Archive Module."?


>
> Kind regards,
> C.
>
> -Original Message-
> From: Christian Grün [mailto:christian.gr...@gmail.com]
> Sent: 17 November 2015 19:31
> To: Hondros, Constantine (ELS-AMS)
> Cc: basex-talk@mailman.uni-konstanz.de
> Subject: Re: [basex-talk] zip:update-entries - unexpected results
>
> We didn’t spend energy in the ZIP Module for a long time. Did you try to use 
> the Archive Module?
>
>
> On Mon, Nov 16, 2015 at 5:06 PM, Hondros, Constantine (ELS-AMS) 
>  wrote:
>> Hi all,
>>
>>
>>
>> I’m attempting to create a modified copy a zipfile using
>> zip:update-entries, but my output is a zip structure with zero-byte files. 
>> Am I missing a step?
>> I’ve followed the example in:
>> http://docs.basex.org/wiki/ZIP_Module#zip:update-entries
>>
>>
>>
>> Code snippet as follows:
>>
>>
>>
>> declare function util:clean-zip($zip as xs:string, $out as xs:string)
>> {
>>
>>   copy $doc := zip:entries($zip)
>>
>>   modify delete node $doc//zip:entry[ends-with(lower-case(@name),
>> '.pdf')]
>>
>>   return zip:update-entries($doc, $out)
>>
>> };
>>
>>
>>
>> Thanks for any pointers ;-)
>>
>>
>>
>> C.
>>
>>
>> 
>>
>> Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The
>> Netherlands, Registration No. 33156677, Registered in The Netherlands.
>
> 
>
> Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The 
> Netherlands, Registration No. 33156677, Registered in The Netherlands.


Re: [basex-talk] zip:update-entries - unexpected results

2015-11-18 Thread Hondros, Constantine (ELS-AMS)
Hi Christian,

Thanks - I rewrote to use the archive module and it works beautifully.

Please note: the Wiki entry for the Zip module still reads: "It may soon be 
replaced by the Archive Module. "

I'll happily update the Wiki entry for you if you like.

Kind regards,
C.

-Original Message-
From: Christian Grün [mailto:christian.gr...@gmail.com]
Sent: 17 November 2015 19:31
To: Hondros, Constantine (ELS-AMS)
Cc: basex-talk@mailman.uni-konstanz.de
Subject: Re: [basex-talk] zip:update-entries - unexpected results

We didn’t spend energy in the ZIP Module for a long time. Did you try to use 
the Archive Module?


On Mon, Nov 16, 2015 at 5:06 PM, Hondros, Constantine (ELS-AMS) 
 wrote:
> Hi all,
>
>
>
> I’m attempting to create a modified copy a zipfile using
> zip:update-entries, but my output is a zip structure with zero-byte files. Am 
> I missing a step?
> I’ve followed the example in:
> http://docs.basex.org/wiki/ZIP_Module#zip:update-entries
>
>
>
> Code snippet as follows:
>
>
>
> declare function util:clean-zip($zip as xs:string, $out as xs:string)
> {
>
>   copy $doc := zip:entries($zip)
>
>   modify delete node $doc//zip:entry[ends-with(lower-case(@name),
> '.pdf')]
>
>   return zip:update-entries($doc, $out)
>
> };
>
>
>
> Thanks for any pointers ;-)
>
>
>
> C.
>
>
> 
>
> Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The
> Netherlands, Registration No. 33156677, Registered in The Netherlands.



Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The 
Netherlands, Registration No. 33156677, Registered in The Netherlands.