Re: [basex-talk] How To: Sort nodes in document order?

2022-07-04 Thread Eliot Kimber
ehalf of Christian Grün Date: Monday, July 4, 2022 at 10:35 AM To: Martin Honnen Cc: BaseX Subject: Re: [basex-talk] How To: Sort nodes in document order? [External Email] Hi Eliot, As a generalized solution (for an arbitrary number of inputs), you can attach a self::node() step (or a

Re: [basex-talk] How To: Sort nodes in document order?

2022-07-04 Thread Christian Grün
Hi Eliot, As a generalized solution (for an arbitrary number of inputs), you can attach a self::node() step (or a simple context item expression "."): ($nodes1, $nodes2, $nodes2)/self::node() The resulting expression will be evaluated as path, and the result will be brought into distinct

Re: [basex-talk] How To: Sort nodes in document order?

2022-07-04 Thread Martin Honnen
Am 04.07.2022 um 17:14 schrieb Martin Honnen: Am 04.07.2022 um 17:11 schrieb Eliot Kimber: I feel like I should know how to do this (and possibly I’ve previously been told how and have forgotten), but I’m at a loss. I am implementing a process that gathers nodes from a single document (a

Re: [basex-talk] How To: Sort nodes in document order?

2022-07-04 Thread Martin Honnen
Am 04.07.2022 um 17:11 schrieb Eliot Kimber: I feel like I should know how to do this (and possibly I’ve previously been told how and have forgotten), but I’m at a loss. I am implementing a process that gathers nodes from a single document (a DITA map) and constructs a system of maps where

[basex-talk] How To: Sort nodes in document order?

2022-07-04 Thread Eliot Kimber
I feel like I should know how to do this (and possibly I’ve previously been told how and have forgotten), but I’m at a loss. I am implementing a process that gathers nodes from a single document (a DITA map) and constructs a system of maps where I’m using the maps primarily to represent a tree