WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

 « Return to Thread: sxml boolean

Re: sxml boolean

by s9nn9s :: Rate this Message:

| View in Thread

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?
>
> Cheers,
>
> John

since (if "" #t #f) ==> #t, an empty string between to <foo></foo> to
represent  #t seems both right and least verbose.




 « Return to Thread: sxml boolean