[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sxml boolean
From: |
john |
Subject: |
Re: sxml boolean |
Date: |
Sat, 31 Mar 2012 15:47:52 +0100 |
On 31 March 2012 07:56, s9nn9s <address@hidden> wrote:
> john <address@hidden> 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?
>>
>> Cheers,
>>
>> John
>
> 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>.
Cheers,
John