[Standards] Data Forms and empty fields

Dave Cridland dave at cridland.net
Mon Dec 22 14:37:52 UTC 2008


On Mon Dec 22 13:24:25 2008, Brett Zamir wrote:
> In the Data Forms spec XEP-0004, what is an implementation to do  
> for each type if there are empty fields?
> 
> Send an empty<value/>  or an empty<field/>?
> 
> An empty field would seem to make sense for lists at least, but I  
> wasn't clear on what it should be for say, text-single.

<value/> is semantically equivalent to <value></value>, and therefore  
suggests an actual value of a zero-length string, rather than no  
value at all.

Which doesn't answer your question, of course, but it suggests that  
the answer might depend on what you mean by "empty fields".

Dave.
-- 
Dave Cridland - mailto:dave at cridland.net - xmpp:dwd at dave.cridland.net
  - acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
  - http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade



More information about the Standards mailing list