On 31 March 2012 07:56, s9nn9s <s9nn9s@...> wrote:
> john <jptmoore@...> writes:
>> Hi Guilers...
>> When using (sxml simple) a conversion from boolean has no value. For
>> example, (sxml->xml '(foo #t)) produces <foo></foo>. Is this intended
>> or a bug? I was expecting perhaps something like <foo>true</foo>,
>> <foo>1</foo> or <foo>#t</foo>. The first two make more sense to me in
>> terms of validating against XML Schema but I think any value is better
>> than no value.
>> Any thoughts?
> since (if "" #t #f) ==> #t, an empty string between to <foo></foo> to
> represent #t seems both right and least verbose.
But (sxml->xml '(foo #f)) also produces <foo></foo>.