2007-04-27, Robin H. Johnson sanoi:

> On Fri, Apr 27, 2007 at 10:32:25AM +0200, Jan Kundr?t wrote:
> > AFAIK the preferred way of specifying boolean values in XML is to
> > use contact="contact", not contact="1".
> I can't find this described anywhere in the XML specification
> http://www.w3.org/TR/REC-xml/
> 
> Have you got a reference for it?

That tradition stems from SGML, and in SGML it was also possible to
minimize this kind of true values by telling attribute without value.
The habit has carried over to XML even though it doesn't support
attribute minimization. The reference can be found in the SGML handbook
if you wish, I suppose.
-- 
Flammie, Gentoo Linux Documentation’s Finnish head translator
and FlameEyes’ bot <http://dev.gentoo.org/~flammie>.

Attachment: signature.asc
Description: PGP signature

Reply via email to