On Thu, 2018-09-13 at 16:18 -0400, Graydon Saunders wrote:
> let $possible1 as xs:string* := (: go looking for a value via one
> route :)
> let $possible2 (: all the other routes in preference order :)
>
> let $foundIt as xs:string :=
>
If you put your "possibles" in an array rather than a sequence then the
index of the first non-empty item
identifies the match.
let $results := [$possible1,$possible2,$possible3,$possible4,$
possible5,'FAILED']
let $index:= array:fold-left($results,
-1,
On Fri, Sep 14, 2018 at 4:51 AM Andy Bunce wrote:
> If you put your "possibles" in an array rather than a sequence then the
> index of the first non-empty item
> identifies the match.
>
Thank you! That does it nicely.
It's going to be a little while before I feel like I've comprehended the
3 matches
Mail list logo