On 25/05/2024 23:02, Roger L Costello costello@xxxxxxxxx wrote:
> If we extract all the ranges, we get this sequence:
>
>
>
> (0-2, 3-7, 8, 9-15)
Is that a sequence to you in terms of the XSLT/XPath data model? What is
the type of the sequence, what is the type of an item in the sequence?
>
>
>
> Now the problem may be succinctly restated as:
>
>
>
> Is the sequence connected?
How would a sequence of nodes, for instance, be considered "connected"?
Or any sequence with items of any type?
>
>
>
> It seems like XSLT should provide a built-in function that evaluates a
> sequence for connectedness and returns true (the sequence is a connected
> sequence) or false (the sequence is not a connected sequence).
It is not difficult to write your own function based on the made
suggestions.
|