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 09:40:34 +0200 Message-ID: <20150423074034.GA20961@tuxteam.de> References: <20150415194714.GA30295@tuxteam.de> <87oamh25sc.fsf@mango.localdomain> <20150421094438.GA22715@tuxteam.de> <87fv7s1bjn.fsf@mango.localdomain> <20150423065714.GB19410@tuxteam.de> <878udj1g1d.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 1429774882 22676 80.91.229.3 (23 Apr 2015 07:41:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Apr 2015 07:41:22 +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 09:41:16 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 1YlBl3-0006gz-Fb for guile-bugs@m.gmane.org; Thu, 23 Apr 2015 09:41:13 +0200 Original-Received: from localhost ([::1]:38641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlBl2-0000Sh-OI for guile-bugs@m.gmane.org; Thu, 23 Apr 2015 03:41:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlBkz-0000Sb-3k for bug-guile@gnu.org; Thu, 23 Apr 2015 03:41:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlBku-0000uu-49 for bug-guile@gnu.org; Thu, 23 Apr 2015 03:41:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlBku-0000uq-0O for bug-guile@gnu.org; Thu, 23 Apr 2015 03:41:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YlBkt-0002aR-BD for bug-guile@gnu.org; Thu, 23 Apr 2015 03:41:03 -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 07:41:03 +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.14297748409886 (code B ref 20339); Thu, 23 Apr 2015 07:41:03 +0000 Original-Received: (at 20339) by debbugs.gnu.org; 23 Apr 2015 07:40:40 +0000 Original-Received: from localhost ([127.0.0.1]:37069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlBkW-0002ZO-Fr for submit@debbugs.gnu.org; Thu, 23 Apr 2015 03:40:40 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:60331 helo=tomasium.tuxteam.de) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YlBkT-0002Z9-5X for 20339@debbugs.gnu.org; Thu, 23 Apr 2015 03:40:38 -0400 Original-Received: from tomas by tomasium.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1YlBkQ-0005Va-JE; Thu, 23 Apr 2015 09:40:34 +0200 In-Reply-To: <878udj1g1d.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:7777 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, Apr 23, 2015 at 09:04:46AM +0200, Ricardo Wurmus wrote: > > tomas@tuxteam.de writes: > > > 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. > > True. > > Ideally, this should work even without passing a namespaces alist at all > in both "xml->sxml" and "sxml->xml". The non-abbreviated namespaces > should not cause "sxml->xml" to fail. > > Passing around a namespaces alist to both these procedures is the least > invasive approach I could think of, but I still think that it *should* > be made to work without explicitly declaring namespaces. I think a combination of our approaches could work: the only difference (apart of the code elegance) is that my patch grows this alist on its way down the tree as it encounters new namespace. This meshes well with the namespace declaration, which scopes recursively down the XML tree. This afternoon, while I sit at the e-Lok waiting for the FSFE meeting is a very good moment for me to look into it. I'll report tonight :-) Thanks & later (dayjob calling) - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlU4ofIACgkQBcgs9XrR2kaFNwCfWzPunxHiiDJIJean02rx7pMT 92IAn2IGYW01Cx7aJt32MLRDQYuY9FbP =owfk -----END PGP SIGNATURE-----