bug#63196: sxml or guile bug?

2023-04-30 Thread Christopher Lam
Hi, we've identified an unusual behaviour in writing a test in gnucash. Can anyone reproduce and confirmit? I paste a simple .scm file, and its input test-file.html. Now, in sxml-bug.scm, modify the index - from -1 to -2 i.e. access the last/penultimate row etc. Odd negative indices work, even n

bug#63196: Further on this error message

2023-04-30 Thread Christopher Lam
The source seems to be sxpath.scm -- see "yikes" error which triggers when n is -2 -4 -6 etc. I don't know how to build guile from sources and cannot debug further. (define (node-pos n) (lambda (nodeset) (cond ((not (nodeset? nodeset)) '()) ((null? nodeset) nodeset) ((eqv? n