Subject: Re: [xsl] Re: Seeking an elegant XSLT function to check that a pair of numeric ranges are consecutive From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sat, 25 May 2024 21:11:20 -0000 |
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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: Seeking an elegant XSLT f, Roger L Costello cos | Thread | Re: [xsl] Re: Seeking an elegant XS, David Carlisle d.p.c |
[xsl] Re: Seeking an elegant XSLT f, Roger L Costello cos | Date | Re: [xsl] Re: Seeking an elegant XS, David Carlisle d.p.c |
Month |