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

Previous Next

Package: guile;

Reported by: Andrea Girotto <andrea.girotto <at> gmail.com>

Date: Thu, 12 Sep 2013 15:52:02 UTC

Severity: wishlist

To reply to this bug, email your comments to 15359 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#15359; Package guile. (Thu, 12 Sep 2013 15:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrea Girotto <andrea.girotto <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Thu, 12 Sep 2013 15:52:02 GMT) Full text and rfc822 format available.

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

From: Andrea Girotto <andrea.girotto <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: Closing tag on empty elements for sxml->xml.
Date: Thu, 12 Sep 2013 10:48:04 +0200
[Message part 1 (text/plain, inline)]
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
[Message part 2 (text/html, inline)]
[0001-Added-a-named-option-closing-tag-so-sxml-xml-outputs.patch (application/octet-stream, attachment)]

Severity set to 'wishlist' from 'normal' Request was from Mark H Weaver <mhw <at> netris.org> to control <at> debbugs.gnu.org. (Fri, 13 Sep 2013 03:51:02 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 276 days ago.

Previous Next


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