GNU bug report logs - #20339
sxml simple: sxml->xml mishandles namespaces?

Previous Next

Package: guile;

Reported by: tomas <at> tuxteam.de

Date: Wed, 15 Apr 2015 19:48:02 UTC

Severity: normal

Full log


Message #32 received at 20339 <at> debbugs.gnu.org (full text, mbox):

From: tomas <at> tuxteam.de
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: tomas <at> tuxteam.de, 20339 <at> debbugs.gnu.org
Subject: Re: bug#20339: sxml simple: sxml->xml mishandles namespaces?
Date: Sun, 26 Apr 2015 12:28:10 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Apr 25, 2015 at 10:25:09PM +0200, tomas <at> tuxteam.de wrote:

[...]

> Reading again Oleg Kiselyov's paper[1] I understand that SXML can, as does
> XML have namespace abbreviations (called there user-ns-shortcut). It's not
> exctly the same thing, but somehow isomorphic. One might use the XML's
> abbreviations in the SXML representation, of course.

I take that back: as far as I understand the paper, the (SXML-side) shortcuts
are global to the document, whereas the (XML-side) abbreviations are subtree-
scoped (i.e. for the whole subtree of the element where the declaration
is attached. I don't know ATM whether shadowing is allowed, but I'll look that
up).

So there *is* a subtle difference between "user-ns-shortcut" (the one
you were manipulating with #:namespaces) and the XML "namespace abbreviation"
(the official jargon is "namespace prefix").

Regards

[1] <http://okmij.org/ftp/papers/SXML-paper.pdf>

- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlU8vboACgkQBcgs9XrR2kadlACeI+p4W8N/dJ49cGBypYNEP/ta
l6MAn3exlNUpj6Z4cYG0Dcb1ltyuQQBB
=x74j
-----END PGP SIGNATURE-----




This bug report was last modified 6 years and 43 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.