bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15359: Closing tag on empty elements for sxml->xml.


From: Andrea Girotto
Subject: bug#15359: Closing tag on empty elements for sxml->xml.
Date: Thu, 12 Sep 2013 10:48:04 +0200

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

Attachment: 0001-Added-a-named-option-closing-tag-so-sxml-xml-outputs.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]