[uf-dev] Proper use of value
Michael Kaply
mkaply at us.ibm.com
Tue Apr 22 12:00:27 PDT 2008
OK, how about this.
When retrieving individual values from the documenting if there is any
whitespace, it is collapsed into one space, and leading and trailing white
space is NOT removed.
After the values have been concatenated to create the final value, if there
is any whitespace, it is collapsed into one space, and leading and trailing
whitespace IS removed.
So all of these:
<fn>
<value>John</value>
<value> </value>
<value>Doe</value>
</fn>
<fn>
<value>John</value>
<value> </value>
<value>Doe</value>
</fn>
<fn>
<value> John</value>
<value> </value>
<value>Doe </value>
</fn>
<fn>
<value>John </value>
<value> </value>
<value> Doe</value>
</fn>
<fn>
<value>John </value>
<value> Doe</value>
</fn>
<fn>
<value> John </value>
<value> Doe </value>
</fn>
become
|John Doe|
but this:
<fn>
<value>John</value>
<value>Doe</value>
</fn>
becomes
|JohnDoe|
Does that sound right?
Michael Kaply
Firefox Advocate
mkaply at us.ibm.com
http://www.kaply.com/weblog/ (External Blog)
http://blogs.tap.ibm.com/weblogs/page/mkaply@us.ibm.com (Internal Blog)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://microformats.org/discuss/mail/microformats-dev/attachments/20080422/8ba8eeec/attachment.html
More information about the microformats-dev
mailing list