W3C home > Mailing lists > Public > www-html@w3.org > October 2003

<quantity> element proposal (was: XHTML 2.0 <datetime> element proposal)

From: Ernest Cline <ernestcline@mindspring.com>
Date: Wed, 29 Oct 2003 22:08:08 -0500
Message-ID: <410-2200310430388218@mindspring.com>
To: (wrong string) Çelik" <tantek@cs.stanford.edu>, "W3C HTML List" <www-html@w3.org>

> [Original Message]
> From: Tantek Çelik <tantek@cs.stanford.edu>

> Similarly, I have encountered instances where a frequency element would
> been quite useful.  Something like:
>  <freq>[decimalfrequency-unit]</freq>
> e.g.
>  <freq>60Hz</freq>
>  <freq>88.5mHz</freq>

Well for XHTML, I think this would be too specialist to be worth including
in the
main spec.  However a slightly more generic version to indicate any sort of
quantity might be worth having with optional sub elements to indicate the
amount and the unit of measure being used.

  <quantity><amount>60</amount> <unit>Hz</unit></quantity>
  <quantity><amount>twelve</amount> lords-a-leaping</quantity>
  <quantity>76 trombones</quantity>

> In any case, rather than waiting to add such new elements to XHTML 2.0,
> not simply create your own XHTML Modularization module[1] for them and mix
> them in with XHTML 1.1 or XHTML Basic or any other XML language?

because there is and likely will be in the foreseeable future a number of
user agents that will only try to handle HTML and XHTML and ignore XML
in general.

> Tantek
> [1]
>  http://www.w3.org/TR/xhtml-modularization/abstraction.html#sec_4.4.1.
Received on Wednesday, 29 October 2003 22:08:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:05 UTC