From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.lisp.guile.bugs Subject: bug#20339: sxml simple: sxml->xml mishandles namespaces? Date: Thu, 23 Apr 2015 08:57:14 +0200 Message-ID: <20150423065714.GB19410@tuxteam.de> References: <20150415194714.GA30295@tuxteam.de> <87oamh25sc.fsf@mango.localdomain> <20150421094438.GA22715@tuxteam.de> <87fv7s1bjn.fsf@mango.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1429772301 14681 80.91.229.3 (23 Apr 2015 06:58:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Apr 2015 06:58:21 +0000 (UTC) Cc: 20339@debbugs.gnu.org To: Ricardo Wurmus Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Apr 23 08:58:12 2015 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YlB5P-0003IZ-2p for guile-bugs@m.gmane.org; Thu, 23 Apr 2015 08:58:11 +0200 Original-Received: from localhost ([::1]:38522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlB5O-0004ke-Fp for guile-bugs@m.gmane.org; Thu, 23 Apr 2015 02:58:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlB5K-0004kX-Ln for bug-guile@gnu.org; Thu, 23 Apr 2015 02:58:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlB5G-0004NA-M8 for bug-guile@gnu.org; Thu, 23 Apr 2015 02:58:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlB5G-0004N4-Iu for bug-guile@gnu.org; Thu, 23 Apr 2015 02:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YlB5F-0000Tm-UN for bug-guile@gnu.org; Thu, 23 Apr 2015 02:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: tomas@tuxteam.de Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Thu, 23 Apr 2015 06:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20339 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 20339-submit@debbugs.gnu.org id=B20339.14297722401723 (code B ref 20339); Thu, 23 Apr 2015 06:58:01 +0000 Original-Received: (at 20339) by debbugs.gnu.org; 23 Apr 2015 06:57:20 +0000 Original-Received: from localhost ([127.0.0.1]:37024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlB4a-0000Rj-4q for submit@debbugs.gnu.org; Thu, 23 Apr 2015 02:57:20 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:60241 helo=tomasium.tuxteam.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlB4X-0000RT-G8 for 20339@debbugs.gnu.org; Thu, 23 Apr 2015 02:57:18 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1YlB4V-0005BL-4W; Thu, 23 Apr 2015 08:57:15 +0200 In-Reply-To: <87fv7s1bjn.fsf@mango.localdomain> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7775 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Apr 22, 2015 at 04:29:32PM +0200, Ricardo Wurmus wrote: > >> Since xml->sxml accepts a namespace alist I suppose it would make sense > >> to extend sxml->xml to do the same. > > Attached is a minimal patch to extend "sxml->xml" such that it accepts an > optional keyword argument "namespaces" with an alist of prefixes to > URLs, analogous to "xml->sxml". Thanks, I'll have a look at this this afternoon. Your code is far prettier than mine, that's for sure :-) What's yet missing (as far as I can read off the diff) is a way to "dream up" an abbreviation when it's not in the namespaces alist. Thanks again and regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlU4l8oACgkQBcgs9XrR2kb7SwCeNO0Z+RJZy6VUeQotm3+qX5rd nXMAn2QeowgVnEj+9Zh3gMIBZW99Y3bx =BrEt -----END PGP SIGNATURE-----