From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Wingo Subject: Re: XPATH queries and manipulation in guile? Date: Mon, 24 Apr 2017 10:55:24 +0200 Message-ID: References: <3d31357c-7b67-cbe2-0f79-a8e76c8dc1c3@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2ZmU-0004EN-CY for guix-devel@gnu.org; Mon, 24 Apr 2017 04:55:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2ZmQ-0006OW-Hh for guix-devel@gnu.org; Mon, 24 Apr 2017 04:55:38 -0400 Received: from pb-sasl1.pobox.com ([64.147.108.66]:51436 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2ZmQ-0006OP-D0 for guix-devel@gnu.org; Mon, 24 Apr 2017 04:55:34 -0400 In-Reply-To: <3d31357c-7b67-cbe2-0f79-a8e76c8dc1c3@crazy-compilers.com> (Hartmut Goebel's message of "Sun, 23 Apr 2017 19:10:31 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Hartmut Goebel Cc: Guix-devel On Sun 23 Apr 2017 19:10, Hartmut Goebel writes: > Yes, I've seen SXPath [4], but IMHO this usign this would *not* be a > good choice: It would require packages to learn yet another path > language, while when using XPath, the packagers could simply copy > expressions from some fedora .spec-file. Additionally I find the > documentation of SXpath hard to understand - for be frank: I did not get > it at all. The documentation is indeed terrible. This library is used by other Schemes; we should see if we can steal their docs, if they are better. However it's possible to use SXPath with the string syntax. I seem to recall there's code out there to do that. We could incorporate into Guile to just support the standard syntax. I think the way forward here is to improve Guile's sxpath documentation, fixing whatever interfaces are needed, and adding the xpath->selector function. Andy