X-Loop: help-debbugs@HIDDEN
Subject: bug#73290: sxml-match doesn't support several ellipsis at the same level
Resent-From: Nicolas Graves <ngraves@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guile@HIDDEN
Resent-Date: Mon, 16 Sep 2024 07:41:02 +0000
Resent-Message-ID: <handler.73290.B.172647245723220 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 73290
X-GNU-PR-Package: guile
X-GNU-PR-Keywords:
To: 73290 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guile@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.172647245723220
(code B ref -1); Mon, 16 Sep 2024 07:41:02 +0000
Received: (at submit) by debbugs.gnu.org; 16 Sep 2024 07:40:57 +0000
Received: from localhost ([127.0.0.1]:51012 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1sq6Lw-00062R-NJ
for submit <at> debbugs.gnu.org; Mon, 16 Sep 2024 03:40:56 -0400
Received: from lists.gnu.org ([209.51.188.17]:57242)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <ngraves@HIDDEN>) id 1sq6Lu-00062K-Ue
for submit <at> debbugs.gnu.org; Mon, 16 Sep 2024 03:40:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <ngraves@HIDDEN>)
id 1sq6Lg-0002Rm-N7
for bug-guile@HIDDEN; Mon, 16 Sep 2024 03:40:41 -0400
Received: from 7.mo581.mail-out.ovh.net ([46.105.43.131])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <ngraves@HIDDEN>)
id 1sq6Le-0004Rr-LB
for bug-guile@HIDDEN; Mon, 16 Sep 2024 03:40:40 -0400
Received: from director5.ghost.mail-out.ovh.net (unknown [10.108.25.12])
by mo581.mail-out.ovh.net (Postfix) with ESMTP id 4X6cJy1qPWz1GgQ
for <bug-guile@HIDDEN>; Mon, 16 Sep 2024 07:40:34 +0000 (UTC)
Received: from ghost-submission-55b549bf7b-qzft6 (unknown [10.110.118.3])
by director5.ghost.mail-out.ovh.net (Postfix) with ESMTPS id E0F541FEB0
for <bug-guile@HIDDEN>; Mon, 16 Sep 2024 07:40:33 +0000 (UTC)
Received: from ngraves.fr ([37.59.142.103])
by ghost-submission-55b549bf7b-qzft6 with ESMTPSA
id LcX0J/Hg52bdagIADEJklg (envelope-from <ngraves@HIDDEN>)
for <bug-guile@HIDDEN>; Mon, 16 Sep 2024 07:40:33 +0000
Authentication-Results: garm.ovh; auth=pass
(GARM-103G00530163541-3573-4d6c-8b4f-3aded20652c1,
4F4A5AE58FE4CF5F5CAC20825C22FE3F3E3C314D) smtp.auth=ngraves@HIDDEN
X-OVh-ClientIp: 87.88.168.235
From: Nicolas Graves <ngraves@HIDDEN>
Date: Mon, 16 Sep 2024 09:40:33 +0200
Message-ID: <8734m09hce.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Ovh-Tracer-Id: 16209018011394826933
X-VR-SPAMSTATE: OK
X-VR-SPAMSCORE: 0
X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrudekgedguddvgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvufffkfggtgesthdtredttddttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpeeujeelieeljeffhfelteejtdeljeehveduffelvefgudefkeehgfdvvdevgeevfeenucfkphepuddvjedrtddrtddruddpkeejrdekkedrudeikedrvdefhedpfeejrdehledrudegvddruddtfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepsghughdqghhuihhlvgesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekuddpmhhouggvpehsmhhtphhouhht
DKIM-Signature: a=rsa-sha256; bh=Ez0FAhYvyjotsyVoRy9143cLTmtyAHy7hKbNg0Jr4EQ=;
c=relaxed/relaxed; d=ngraves.fr; h=From;
s=ovhmo4487190-selector1; t=1726472434; v=1;
b=5SYGDxlasVSJ3VKZw9sPW4aGgUjC4cEtZ2viBOXkUHRSbLiJWMDgPo8Euu+cs0rxOmiYHseb
zXQvWnxwTVRzGPSGwi6pYcnO+o6ZBcGouROLK0AYXo5M5MbddfeYQqxIxDqoY72EKvx0SVTxAY2
XLiQG4XuwSpvOP9kTGxDW+x6oXAKlA6oiYv02A867+lPRyq9gxHprQJQ/vtSG2BbJ9MBv3+zqDF
48MK/SkHLb0TnDJAm2gxZ7wOJP/lKMNxOll5tHMe6pKRSjQUl2YhV31CR6r3TmJARB7p/Thc6eB
00VGpILnUAFfKVTD98OIk726ep+Y+H1ZgwRZNzIBaJ8Xg==
Received-SPF: pass client-ip=46.105.43.131; envelope-from=ngraves@HIDDEN;
helo=7.mo581.mail-out.ovh.net
X-Spam_score_int: -7
X-Spam_score: -0.8
X-Spam_bar: /
X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01,
RCVD_IN_VALIDITY_RPBL=1.31, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)
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
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Nicolas Graves <ngraves@HIDDEN> Subject: bug#73290: Acknowledgement (sxml-match doesn't support several ellipsis at the same level) Message-ID: <handler.73290.B.172647245723220.ack <at> debbugs.gnu.org> References: <8734m09hce.fsf@HIDDEN> X-Gnu-PR-Message: ack 73290 X-Gnu-PR-Package: guile Reply-To: 73290 <at> debbugs.gnu.org Date: Mon, 16 Sep 2024 07:41:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guile@HIDDEN If you wish to submit further information on this problem, please send it to 73290 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 73290: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D73290 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.