unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: s9nn9s <s9nn9s@gmail.com>
To: guile-user@gnu.org
Subject: Re: sxml boolean
Date: Sat, 31 Mar 2012 14:56:25 +0800	[thread overview]
Message-ID: <87fwcpjm1y.fsf@gmail.com> (raw)
In-Reply-To: CACnQuPwCsdx1JiWw=uKi3uxN_rL-GrMKrw0aBTfNV40LaUpdUQ@mail.gmail.com

john <jptmoore@gmail.com> 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	other threads:[~2012-03-31  6:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-11 10:24 sxml boolean john
2012-03-31  6:56 ` s9nn9s [this message]
2012-03-31 14:47   ` john
2012-03-31 15:46 ` Mark H Weaver
2012-03-31 18:18   ` john

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fwcpjm1y.fsf@gmail.com \
    --to=s9nn9s@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).