guile-user
[Top][All Lists]
Advanced

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

Re: sxml boolean


From: s9nn9s
Subject: Re: sxml boolean
Date: Sat, 31 Mar 2012 14:56:25 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

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.






reply via email to

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