GNU bug report logs -
#73290
sxml-match doesn't support several ellipsis at the same level
Previous Next
To reply to this bug, email your comments to 73290 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#73290
; Package
guile
.
(Mon, 16 Sep 2024 07:41:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Nicolas Graves <ngraves <at> ngraves.fr>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Mon, 16 Sep 2024 07:41:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This is as much a feature request as a bug.
sxml-match doesn't seem to support several ellipsis at the same level,
which is common in xml.
See the following example for a minimal reproducible example (using
guile 3.0.9-0.3b76a30).
```
(use-modules (sxml match))
(define xml '(d (a 1) (a 2) (a 3) (b 4) (b 5) (b 6)))
(sxml-match
xml
((d (a ,i) ... (b ,j) (b ,k) (b ,l))
(list (list i ...) (list j k l))))
(sxml-match
xml
((d (a ,i) ... (b ,j) ...)
(list (list i ...) (list j ...))))
```
Expected : (list (list 1 2 3) (list 4 5 6)) for both cases
In reality :
(list (list 1 2 3) (list 4 5 6)) in the first case
Error "ellipses not allowed in this context" in the second case
--
Best regards,
Nicolas Graves
This bug report was last modified 271 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.