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