X-Loop: help-debbugs@HIDDEN Subject: bug#15359: Closing tag on empty elements for sxml->xml. Resent-From: Andrea Girotto <andrea.girotto@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-guile@HIDDEN Resent-Date: Thu, 12 Sep 2013 15:52:02 +0000 Resent-Message-ID: <handler.15359.B.13790010697919 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 15359 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 15359 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-guile@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.13790010697919 (code B ref -1); Thu, 12 Sep 2013 15:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Sep 2013 15:51:09 +0000 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> From: Andrea Girotto <andrea.girotto@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-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->xml procedure serializes the empty= element always in the "short form", i.e.:</div><div><br></div><d= iv><div/></div><div><br><div>having to deal with transformations from= xml to html, I needed to get:</div> </div><div><br></div><div><div></div></div><div><br></div><div>= so I modified sxml->xml (and element->xml) in simple.scm, to have:</d= iv><div><br></div><div><div><div>scheme@(guile-user)> (sxml->xml '= ;(*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><tag></tag></div></div></div><div><br></div><div>default i= s the old behaviour:</div><div><br></div><div><div>scheme@(guile-user)> = (sxml->xml '(*TOP* (tag)))</div><div><tag /></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 MDA6MDA6MDAgMjAwMQpGcm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0+eG1sIChjYXIgYm9keSkgcG9ydCkKKyAgICAg ICAgICAgIChzeG1sLT54bWwgKGNhciBib2R5KSBwb3J0ICM6Y2xvc2luZy10YWcgY2xvc2luZy10 YWcpCiAgICAgICAgICAgICAobHAgKGNkciBib2R5KSkpCiAgICAgICAgICAgICgobnVsbD8gYm9k eSkKICAgICAgICAgICAgIChkaXNwbGF5ICI8LyIgcG9ydCkKQEAgLTI5NSw3ICsyOTUsMTMgQEAg cG9ydC4iCiAgICAgICAgICAgICAoZGlzcGxheSAiPiIgcG9ydCkpCiAgICAgICAgICAgIChlbHNl CiAgICAgICAgICAgICAoZXJyb3IgImJhZCBlbGVtZW50IGJvZHkiIHRhZyBib2R5KSkpKSkKLSAg ICAgIChkaXNwbGF5ICIgLz4iIHBvcnQpKSkKKyAgICAgIChpZiBjbG9zaW5nLXRhZworICAgICAg ICAoYmVnaW4KKyAgICAgICAgICAoZGlzcGxheSAjXD4gcG9ydCkKKyAgICAgICAgICAoZGlzcGxh eSAiPC8iIHBvcnQpCisgICAgICAgICAgKGRpc3BsYXkgdGFnIHBvcnQpCisgICAgICAgICAgKGRp c3BsYXkgI1w+IHBvcnQpKQorICAgICAgICAoZGlzcGxheSAiIC8+IiBwb3J0KSkpKQogCiA7OyBG SVhNRTogZW5zdXJlIG5hbWUgaXMgdmFsaWQKIChkZWZpbmUgKGVudGl0eS0+eG1sIG5hbWUgcG9y dCkKQEAgLTMxMSwxMCArMzE3LDExIEBAIHBvcnQuIgogICAoZGlzcGxheSBzdHIgcG9ydCkKICAg KGRpc3BsYXkgIj8+IiBwb3J0KSkKIAotKGRlZmluZSogKHN4bWwtPnhtbCB0cmVlICM6b3B0aW9u YWwgKHBvcnQgKGN1cnJlbnQtb3V0cHV0LXBvcnQpKSkKKyhkZWZpbmUqIChzeG1sLT54bWwgdHJl ZSAjOm9wdGlvbmFsIChwb3J0IChjdXJyZW50LW91dHB1dC1wb3J0KSkgIzprZXkgKGNsb3Npbmct dGFnICNmKSkKICAgIlNlcmlhbGl6ZSB0aGUgc3htbCB0cmVlIEB2YXJ7dHJlZX0gYXMgWE1MLiBU aGUgb3V0cHV0IHdpbGwgYmUgd3JpdHRlbgogdG8gdGhlIGN1cnJlbnQgb3V0cHV0IHBvcnQsIHVu bGVzcyB0aGUgb3B0aW9uYWwgYXJndW1lbnQgQHZhcntwb3J0fSBpcwogcHJlc2VudC4iCisgIDs7 IENMT1NJTkctVEFHOiBpZiAjdCBlbXB0eSB0YWdzIGFyZSBzZXJpYWxpemVkOiA8dGFnPjwvdGFn PiBvdGhlcndpc2UgKGRlZmF1bHQgY2FzZSkgPHRhZy8+CiAgIChjb25kCiAgICAoKHBhaXI/IHRy ZWUpCiAgICAgKGlmIChzeW1ib2w/IChjYXIgdHJlZSkpCkBAIC0zMjIsNyArMzI5LDcgQEAgcHJl c2VudC4iCiAgICAgICAgIChsZXQgKCh0YWcgKGNhciB0cmVlKSkpCiAgICAgICAgICAgKGNhc2Ug dGFnCiAgICAgICAgICAgICAoKCpUT1AqKQotICAgICAgICAgICAgIChzeG1sLT54bWwgKGNkciB0 cmVlKSBwb3J0KSkKKyAgICAgICAgICAgICAoc3htbC0+eG1sIChjZHIgdHJlZSkgcG9ydCAjOmNs b3NpbmctdGFnIGNsb3NpbmctdGFnKSkKICAgICAgICAgICAgICgoKkVOVElUWSopCiAgICAgICAg ICAgICAgKGlmIChhbmQgKGxpc3Q/IChjZHIgdHJlZSkpICg9IChsZW5ndGggKGNkciB0cmVlKSkg MSkpCiAgICAgICAgICAgICAgICAgIChlbnRpdHktPnhtbCAoY2FkciB0cmVlKSBwb3J0KQpAQCAt MzM2LDkgKzM0Myw5IEBAIHByZXNlbnQuIgogICAgICAgICAgICAgICAgICAgICAoYXR0cnMgKGFu ZCAocGFpcj8gZWxlbXMpIChwYWlyPyAoY2FyIGVsZW1zKSkKICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgKGVxPyAnQCAoY2FhciBlbGVtcykpCiAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIChjZGFyIGVsZW1zKSkpKQotICAgICAgICAgICAgICAgKGVsZW1lbnQtPnhtbCB0 YWcgYXR0cnMgKGlmIGF0dHJzIChjZHIgZWxlbXMpIGVsZW1zKSBwb3J0KSkpKSkKKyAgICAgICAg ICAgICAgIChlbGVtZW50LT54bWwgdGFnIGF0dHJzIChpZiBhdHRycyAoY2RyIGVsZW1zKSBlbGVt cykgY2xvc2luZy10YWcgcG9ydCkpKSkpCiAgICAgICAgIDs7IEEgbm9kZWxpc3QuCi0gICAgICAg IChmb3ItZWFjaCAobGFtYmRhICh4KSAoc3htbC0+eG1sIHggcG9ydCkpIHRyZWUpKSkKKyAgICAg ICAgKGZvci1lYWNoIChsYW1iZGEgKHgpIChzeG1sLT54bWwgeCBwb3J0ICM6Y2xvc2luZy10YWcg Y2xvc2luZy10YWcpKSB0cmVlKSkpCiAgICAoKHN0cmluZz8gdHJlZSkKICAgICAoc3RyaW5nLT5l c2NhcGVkLXhtbCB0cmVlIHBvcnQpKQogICAgKChudWxsPyB0cmVlKSAqdW5zcGVjaWZpZWQqKQot LSAKMS44LjQKCg== --089e0112c51cdc0eaf04e62bcb13--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Andrea Girotto <andrea.girotto@HIDDEN> Subject: bug#15359: Acknowledgement (Closing tag on empty elements for sxml->xml.) Message-ID: <handler.15359.B.13790010697919.ack <at> debbugs.gnu.org> References: <CAEhjTVW+FV3QuwESFr-5JSUwiJD5Jdw2mun=rXF2aFR_8s6efA@HIDDEN> X-Gnu-PR-Message: ack 15359 X-Gnu-PR-Package: guile Reply-To: 15359 <at> debbugs.gnu.org Date: Thu, 12 Sep 2013 15:52:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guile@HIDDEN If you wish to submit further information on this problem, please send it to 15359 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 15359: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D15359 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
Received: (at control) by debbugs.gnu.org; 13 Sep 2013 03:50:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 12 23:50:54 2013 Received: from localhost ([127.0.0.1]:60362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1VKKPF-0006V1-Mr for submit <at> debbugs.gnu.org; Thu, 12 Sep 2013 23:50:53 -0400 Received: from world.peace.net ([96.39.62.75]:59499 ident=hope6) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <mhw@HIDDEN>) id 1VKKPC-0006Up-Nd for control <at> debbugs.gnu.org; Thu, 12 Sep 2013 23:50:51 -0400 Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from <mhw@HIDDEN>) id 1VKKP5-0008MB-OW; Thu, 12 Sep 2013 23:50:44 -0400 From: Mark H Weaver <mhw@HIDDEN> To: control <at> debbugs.gnu.org Date: Thu, 12 Sep 2013 23:50:32 -0400 Message-ID: <87ob7xl6rb.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: severity 15253 wishlist severity 15359 wishlist severity 15330 minor severity 15223 wishlist thanks [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control 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: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: severity 15253 wishlist severity 15359 wishlist severity 15330 minor severity 15223 wishlist thanks [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject severity 15253 wishlist severity 15359 wishlist severity 15330 minor severity 15223 wishlist thanks
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.