RE: <length> = a real number plus a unit qualification

Ignoring this option:

         <length value="2.54">cm</length>

if Noah's example makes for better markup. why not move the value into
an attribute also?:

         <length units="cm" value="2.54" />

Bill de hÓra

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of 
> noah_mendelsohn@us.ibm.com
> Sent: 14 May 2002 01:22
> To: Chuck Paussa
> Cc: Jeni Tennison; xmlschema-dev@w3.org
> Subject: Re: <length> = a real number plus a unit qualification
> 
> 
> I understand that it may not meet the need, but there are 
> many who would 
> argue that:
> 
>         <length units="cm">2.54</length>
> 
> is better markup than:
> 
>         <length> 2.54 cm</length>
> 
> It's easier to manipulate with tools like XPath, XSL, and presumably 
> Query, it can be more strongly typed. etc.  Of course, since 
> XML does not 
> have structured attributes, it works only for elements. 
> Still, it's worth 
> considering if it meets your needs.
> 
> ------------------------------------------------------------------
> Noah Mendelsohn                              Voice: 1-617-693-4036
> IBM Corporation                                Fax: 1-617-693-8676
> One Rogers Street
> Cambridge, MA 02142
> ------------------------------------------------------------------
> 
> 
> 
> 

Received on Tuesday, 14 May 2002 07:59:49 UTC