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

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

> Similarly, I have encountered instances where a frequency element would
have
> 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><unit>$</unit>1.49</quanity>
  <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,
why
> 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