Re: [basex-talk] the implicit context of position

2022-06-30 Thread Christian Grün
… or I’d probably simply listen to Hans-Jürgen ;)


On Thu, Jun 30, 2022 at 5:32 PM Christian Grün
 wrote:
>
> I’d probably do this:
>
>   count($step/preceding-sibling::*) + 1


Re: [basex-talk] the implicit context of position

2022-06-30 Thread Christian Grün
I’d probably do this:

  count($step/preceding-sibling::*) + 1


Re: [basex-talk] the implicit context of position

2022-06-30 Thread Hans-Juergen Rennau
 Hi Graydon, probably I misunderstand you, but isn't 
$node/count(preceding-sibling::*) + 1 what you need?Kind regards, Hans-Jürgen
Am Donnerstag, 30. Juni 2022, 17:21:34 MESZ hat Graydon Saunders 
 Folgendes geschrieben:  
 
 Hello --

I've got an element node that's part of a document.  I need its position among 
the element children of its parent.
$step/position() will (correctly!) always return 1, there's one thing in $step, 
of course it does.
replace($step/path(),'^.*\[(\p{Nd}+)\]$','$1') => xs:integer()

gets me the implicit position but is something of a horror.
for $e at $in in $step/../* where $e is $step return $in
works, too, but any notion of elegance and clarity have fled screaming into the 
night.
I keep thinking there must be a better way; anyone got any suggestions?
Thanks!Graydon  

Re: [basex-talk] the implicit context of position

2022-06-30 Thread Martin Honnen


Am 30.06.2022 um 17:21 schrieb Graydon Saunders:

Hello --

I've got an element node that's part of a document.  I need its
position among the element children of its parent.

$step/position() will (correctly!) always return 1, there's one thing
in $step, of course it does.

replace($step/path(),'^.*\[(\p{Nd}+)\]$','$1') => xs:integer()

gets me the implicit position but is something of a horror.

for $e at $in in $step/../* where $e is $step return $in

works, too, but any notion of elegance and clarity have fled screaming
into the night.

I keep thinking there must be a better way; anyone got any suggestions?



I think functx has some node-index-of you could use or use e.g.

  index-of($step/../*/generate-id(), generate-id($step))


[basex-talk] the implicit context of position

2022-06-30 Thread Graydon Saunders
Hello --

I've got an element node that's part of a document.  I need its position
among the element children of its parent.

$step/position() will (correctly!) always return 1, there's one thing in
$step, of course it does.

replace($step/path(),'^.*\[(\p{Nd}+)\]$','$1') => xs:integer()

gets me the implicit position but is something of a horror.

for $e at $in in $step/../* where $e is $step return $in

works, too, but any notion of elegance and clarity have fled screaming into
the night.

I keep thinking there must be a better way; anyone got any suggestions?

Thanks!
Graydon


Re: [basex-talk] BaseX 9.7.3: Tweaks, Fixes, Previews

2022-06-30 Thread Marco Lettere

Yeah!

So do we!

Very excited!

On 30/06/22 16:18, Bridger Dyson-Smith wrote:

Christian and team -

On Thu, Jun 30, 2022 at 10:04 AM Christian Grün 
 wrote:


Hi all,

A new BaseX maintenance release is available. This is what you get:

• DBA: Improved support for database backups
• Performance tweaks and bug fixes

…and some more BaseX 10 previews:

• Store Module (before: Caching Module)
• Backup of general data (users, jobs, stores)

We spend most of our time on BaseX 10. Stay tuned!


Thank you for your efforts on our behalf!
I won't speak for others, but I'm on the edge of my seat! Looking 
forward to v10.


Yours,
Christian
BaseX Team


Best wishes,
Bridger

Re: [basex-talk] BaseX 9.7.3: Tweaks, Fixes, Previews

2022-06-30 Thread Bridger Dyson-Smith
Christian and team -

On Thu, Jun 30, 2022 at 10:04 AM Christian Grün 
wrote:

> Hi all,
>
> A new BaseX maintenance release is available. This is what you get:
>
> • DBA: Improved support for database backups
> • Performance tweaks and bug fixes
>
> …and some more BaseX 10 previews:
>
> • Store Module (before: Caching Module)
> • Backup of general data (users, jobs, stores)
>
> We spend most of our time on BaseX 10. Stay tuned!
>
>
Thank you for your efforts on our behalf!
I won't speak for others, but I'm on the edge of my seat! Looking forward
to v10.

Yours,
> Christian
> BaseX Team
>

Best wishes,
Bridger


Re: [basex-talk] BaseX 9.7.3: Tweaks, Fixes, Previews

2022-06-30 Thread Bridger Dyson-Smith
On Thu, Jun 30, 2022 at 10:04 AM Christian Grün 
wrote:

> Hi all,
>
> A new BaseX maintenance release is available. This is what you get:
>
> • DBA: Improved support for database backups
> • Performance tweaks and bug fixes
>
> …and some more BaseX 10 previews:
>
> • Store Module (before: Caching Module)
> • Backup of general data (users, jobs, stores)
>
> We spend most of our time on BaseX 10. Stay tuned!
>
> Yours,
> Christian
> BaseX Team
>


[basex-talk] BaseX 9.7.3: Tweaks, Fixes, Previews

2022-06-30 Thread Christian Grün
Hi all,

A new BaseX maintenance release is available. This is what you get:

• DBA: Improved support for database backups
• Performance tweaks and bug fixes

…and some more BaseX 10 previews:

• Store Module (before: Caching Module)
• Backup of general data (users, jobs, stores)

We spend most of our time on BaseX 10. Stay tuned!

Yours,
Christian
BaseX Team


Re: [basex-talk] Sym links in BaseX 9.7.2

2022-06-30 Thread Christian Grün
Hi Maud,

> But we face a new problem : symbolic links inside the webapp are no longer
> followed.
>
I cannot remember of a particular feature that might have caused this.
Maybe it’s due to a more recent version of Jetty? Can you recollect which
was the latest version of BaseX/Jetty that allowed symbolic links?

All the best!
Christian