Subject: Re: [xsl] Use pure XPath to test a sequence for being a valid Fibonacci sequence From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 31 Jan 2007 20:05:49 +0100 |
Not sure why you are using index-of (or some, for that matter). It looks to me like
$fib[1] = 0 and $fib[2] = 1 and
every $i in 2 to count($fib) satisfies
$fib[$i] = $fib[$i - 1] + $fib[$i - 2]
(or some, for that matter)That was a typo, the example problem only works, of course, with 'every', I have some other cases where 'some' is required.
Cheers! -- Abel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Use pure XPath to test a , Michael Kay | Thread | Re: [xsl] Use pure XPath to test a , Abel Braaksma |
RE: [xsl] Use pure XPath to test a , Michael Kay | Date | Re: [xsl] Input requested for a goo, Rashmi Rubdi |
Month |