GNU bug report logs - #15359
Closing tag on empty elements for sxml->xml.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Severity: wishlist; Reported by: Andrea Girotto <andrea.girotto@HIDDEN>; dated Thu, 12 Sep 2013 15:52:02 UTC; Maintainer for guile is bug-guile@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Mark H Weaver <mhw@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Sep 2013 15:51:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 12 11:51:09 2013
Received: from localhost ([127.0.0.1]:59177 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VK9Ai-00023c-Ft
	for submit <at> debbugs.gnu.org; Thu, 12 Sep 2013 11:51:09 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34061)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <andrea.girotto@HIDDEN>) id 1VK2Zf-00078x-3Y
 for submit <at> debbugs.gnu.org; Thu, 12 Sep 2013 04:48:27 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <andrea.girotto@HIDDEN>) id 1VK2ZY-0004CR-SM
 for submit <at> debbugs.gnu.org; Thu, 12 Sep 2013 04:48:21 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM,
 HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:34982)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <andrea.girotto@HIDDEN>) id 1VK2ZY-0004CN-PW
 for submit <at> debbugs.gnu.org; Thu, 12 Sep 2013 04:48:20 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:35762)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <andrea.girotto@HIDDEN>) id 1VK2ZU-0004WZ-3T
 for bug-guile@HIDDEN; Thu, 12 Sep 2013 04:48:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <andrea.girotto@HIDDEN>) id 1VK2ZL-00049Y-Kg
 for bug-guile@HIDDEN; Thu, 12 Sep 2013 04:48:16 -0400
Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:55441)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <andrea.girotto@HIDDEN>) id 1VK2ZK-00049I-Tr
 for bug-guile@HIDDEN; Thu, 12 Sep 2013 04:48:07 -0400
Received: by mail-la0-f44.google.com with SMTP id eo20so8401593lab.17
 for <bug-guile@HIDDEN>; Thu, 12 Sep 2013 01:48:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=QL1netFWqEzp6dCkTvnR63ZlcGU5xIopLVg+SQCIacg=;
 b=beGxD1wPKXHvW8b1sIo8VEjKHz5Y2U5ox1vG3A/OS4gwQF6lGrkLOl/vaEaeAOqMUj
 6TQuq3Gfy7rp7E26SLoONow7M0ZiWKOu8uxWYkATA2D+Uwh+DJb8JC8Ss5BHhpR5DEmD
 P+qAfaE6D6cCkp1HUBLLLvcJnoNe7j2xXG4Gk2sULNmfVagY7EL1u6qFB0Fpng8EoQsY
 w29LJSoAo34jagzJODD4b0OMjH4DsLrCFliNsa0OcNmKnXGaCq2gFwt7jvQIjOHJQx85
 R4tzPNx+uJ41qsk80Vk/a8jUi/Qf87iMRIol2C21gNTQ/xyF1wF9te6A2Nel5AaoldAa
 xhFg==
MIME-Version: 1.0
X-Received: by 10.152.2.4 with SMTP id 4mr5279500laq.0.1378975685012; Thu, 12
 Sep 2013 01:48:05 -0700 (PDT)
Received: by 10.152.29.196 with HTTP; Thu, 12 Sep 2013 01:48:04 -0700 (PDT)
Date: Thu, 12 Sep 2013 10:48:04 +0200
Message-ID: <CAEhjTVW+FV3QuwESFr-5JSUwiJD5Jdw2mun=rXF2aFR_8s6efA@HIDDEN>
Subject: Closing tag on empty elements for sxml->xml.
From: Andrea Girotto <andrea.girotto@HIDDEN>
To: bug-guile@HIDDEN
Content-Type: multipart/mixed; boundary=089e0112c51cdc0eaf04e62bcb13
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 12 Sep 2013 11:51:07 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://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: <http://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: -4.0 (----)

--089e0112c51cdc0eaf04e62bcb13
Content-Type: multipart/alternative; boundary=089e0112c51cdc0eab04e62bcb11

--089e0112c51cdc0eab04e62bcb11
Content-Type: text/plain; charset=ISO-8859-1

Hello,
The sxml->xml procedure serializes the empty element always in the "short
form", i.e.:

<div/>

having to deal with transformations from xml to html, I needed to get:

<div></div>

so I modified sxml->xml (and element->xml) in simple.scm, to have:

scheme@(guile-user)> (sxml->xml '(*TOP* (tag)) #:closing-tag #t)


<tag></tag>

default is the old behaviour:

scheme@(guile-user)> (sxml->xml '(*TOP* (tag)))
<tag />

Regards,
Andrea Girotto

--089e0112c51cdc0eab04e62bcb11
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div>The sxml-&gt;xml procedure serializes the empty=
 element always in the &quot;short form&quot;, i.e.:</div><div><br></div><d=
iv>&lt;div/&gt;</div><div><br><div>having to deal with transformations from=
 xml to html, I needed to get:</div>
</div><div><br></div><div>&lt;div&gt;&lt;/div&gt;</div><div><br></div><div>=
so I modified sxml-&gt;xml (and element-&gt;xml) in simple.scm, to have:</d=
iv><div><br></div><div><div><div>scheme@(guile-user)&gt; (sxml-&gt;xml &#39=
;(*TOP* (tag)) #:closing-tag #t) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0</div>
<div>&lt;tag&gt;&lt;/tag&gt;</div></div></div><div><br></div><div>default i=
s the old behaviour:</div><div><br></div><div><div>scheme@(guile-user)&gt; =
(sxml-&gt;xml &#39;(*TOP* (tag)))</div><div>&lt;tag /&gt;</div></div><div>
<br></div><div>Regards,</div><div>Andrea Girotto</div></div>

--089e0112c51cdc0eab04e62bcb11--
--089e0112c51cdc0eaf04e62bcb13
Content-Type: application/octet-stream; 
	name="0001-Added-a-named-option-closing-tag-so-sxml-xml-outputs.patch"
Content-Disposition: attachment; 
	filename="0001-Added-a-named-option-closing-tag-so-sxml-xml-outputs.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_hlhpxmc40

RnJvbSA3ZjA4MjM3YjhiOGVlYjlmYTAxZTdjN2E3NzZlMmE4Y2M4ZTI5YzYxIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBBbmRyZWEgR2lyb3R0byA8YW5kcmVhLmdpcm90dG9AZ21haWwu
Y29tPgpEYXRlOiBUaHUsIDEyIFNlcCAyMDEzIDEwOjEzOjU2ICswMjAwClN1YmplY3Q6IFtQQVRD
SF0gQWRkZWQgYSBuYW1lZCBvcHRpb24gIzpjbG9zaW5nLXRhZyBzbyBzeG1sLT54bWwgb3V0cHV0
cwogPHQ+PC90PiBpbnN0ZWFkIG9mIDx0Lz4KCi0tLQogbW9kdWxlL3N4bWwvc2ltcGxlLnNjbSB8
IDIxICsrKysrKysrKysrKysrLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQsIDE0IGluc2VydGlvbnMo
KyksIDcgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvbW9kdWxlL3N4bWwvc2ltcGxlLnNjbSBi
L21vZHVsZS9zeG1sL3NpbXBsZS5zY20KaW5kZXggNzAzYWQ5MS4uOGUwOGZjYiAxMDA2NDQKLS0t
IGEvbW9kdWxlL3N4bWwvc2ltcGxlLnNjbQorKysgYi9tb2R1bGUvc3htbC9zaW1wbGUuc2NtCkBA
IC0yNjYsNyArMjY2LDcgQEAgcG9ydC4iCiAgIChhdHRyaWJ1dGUtdmFsdWUtPnhtbCB2YWx1ZSBw
b3J0KQogICAoZGlzcGxheSAjXCIgcG9ydCkpCiAKLShkZWZpbmUgKGVsZW1lbnQtPnhtbCB0YWcg
YXR0cnMgYm9keSBwb3J0KQorKGRlZmluZSAoZWxlbWVudC0+eG1sIHRhZyBhdHRycyBib2R5IGNs
b3NpbmctdGFnIHBvcnQpCiAgIChjaGVjay1uYW1lIHRhZykKICAgKGRpc3BsYXkgI1w8IHBvcnQp
CiAgIChkaXNwbGF5IHRhZyBwb3J0KQpAQCAtMjg3LDcgKzI4Nyw3IEBAIHBvcnQuIgogICAgICAg
ICAobGV0IGxwICgoYm9keSBib2R5KSkKICAgICAgICAgICAoY29uZAogICAgICAgICAgICAoKHBh
aXI/IGJvZHkpCi0gICAgICAgICAgICAoc3htbC0+eG1sIChjYXIgYm9keSkgcG9ydCkKKyAgICAg
ICAgICAgIChzeG1sLT54bWwgKGNhciBib2R5KSBwb3J0ICM6Y2xvc2luZy10YWcgY2xvc2luZy10
YWcpCiAgICAgICAgICAgICAobHAgKGNkciBib2R5KSkpCiAgICAgICAgICAgICgobnVsbD8gYm9k
eSkKICAgICAgICAgICAgIChkaXNwbGF5ICI8LyIgcG9ydCkKQEAgLTI5NSw3ICsyOTUsMTMgQEAg
cG9ydC4iCiAgICAgICAgICAgICAoZGlzcGxheSAiPiIgcG9ydCkpCiAgICAgICAgICAgIChlbHNl
CiAgICAgICAgICAgICAoZXJyb3IgImJhZCBlbGVtZW50IGJvZHkiIHRhZyBib2R5KSkpKSkKLSAg
ICAgIChkaXNwbGF5ICIgLz4iIHBvcnQpKSkKKyAgICAgIChpZiBjbG9zaW5nLXRhZworICAgICAg
ICAoYmVnaW4KKyAgICAgICAgICAoZGlzcGxheSAjXD4gcG9ydCkKKyAgICAgICAgICAoZGlzcGxh
eSAiPC8iIHBvcnQpCisgICAgICAgICAgKGRpc3BsYXkgdGFnIHBvcnQpCisgICAgICAgICAgKGRp
c3BsYXkgI1w+IHBvcnQpKQorICAgICAgICAoZGlzcGxheSAiIC8+IiBwb3J0KSkpKQogCiA7OyBG
SVhNRTogZW5zdXJlIG5hbWUgaXMgdmFsaWQKIChkZWZpbmUgKGVudGl0eS0+eG1sIG5hbWUgcG9y
dCkKQEAgLTMxMSwxMCArMzE3LDExIEBAIHBvcnQuIgogICAoZGlzcGxheSBzdHIgcG9ydCkKICAg
KGRpc3BsYXkgIj8+I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PnhtbCAoY2FkciB0cmVlKSBwb3J0KQpAQCAt
MzM2LDkgKzM0Myw5IEBAIHByZXNlbnQuIgogICAgICAgICAgICAgICAgICAgICAoYXR0cnMgKGFu
ZCAocGFpcj8gZWxlbXMpIChwYWlyPyAoY2FyIGVsZW1zKSkKICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgKGVxPyAnQCAoY2FhciBlbGVtcykpCiAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgIChjZGFyIGVsZW1zKSkpKQotICAgICAgICAgICAgICAgKGVsZW1lbnQtPnhtbCB0
YWcgYXR0cnMgKGlmIGF0dHJzIChjZHIgZWxlbXMpIGVsZW1zKSBwb3J0KSkpKSkKKyAgICAgICAg
ICAgICAgIChlbGVtZW50LT54bWwgdGFnIGF0dHJzIChpZiBhdHRycyAoY2RyIGVsZW1zKSBlbGVt
cykgY2xvc2luZy10YWcgcG9ydCkpKSkpCiAgICAgICAgIDs7IEEgbm9kZWxpc3QuCi0gICAgICAg
IChmb3ItZWFjaCAobGFtYmRhICh4KSAoc3htbC0+eG1sIHggcG9ydCkpIHRyZWUpKSkKKyAgICAg
ICAgKGZvci1lYWNoIChsYW1iZGEgKHgpIChzeG1sLT54bWwgeCBwb3J0ICM6Y2xvc2luZy10YWcg
Y2xvc2luZy10YWcpKSB0cmVlKSkpCiAgICAoKHN0cmluZz8gdHJlZSkKICAgICAoc3RyaW5nLT5l
c2NhcGVkLXhtbCB0cmVlIHBvcnQpKQogICAgKChudWxsPyB0cmVlKSAqdW5zcGVjaWZpZWQqKQot
LSAKMS44LjQKCg==
--089e0112c51cdc0eaf04e62bcb13--




Acknowledgement sent to Andrea Girotto <andrea.girotto@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#15359; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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