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

Full log


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)]

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

Previous Next


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