[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: An approach to describing the relationships betweenuni

length of amazon
From: "Jeff Greif" <jgreif@a...>
> So that symbolic distances can be used:
>    kilometer(length-of-Amazon-river-in-meters)
>        --> length-of-Amazon-river-in-meters/1000
> ?

Could be. I'm not sure that all information about a type can or should be
crammed into a single identifier. (Or that astronauts prefer named types,
but that's another story. ;-)

I prefer the point of view that types have multiple attributes (along the
lines of what XML Schema datatypes calls facets) and that one of these is
unit-of-measure. But as long as it's clear that the domain of the function
as posed is a distance with an implicit unit of measure (which may be null,
i.e., a pure number) it makes sense.

Bob Foster

> Jeff
> ----- Original Message -----
> From: "Bob Foster" <bob@o...>
> To: "Roger L. Costello" <costello@m...>; <xml-dev@l...>
> Sent: Thursday, July 24, 2003 11:27 AM
> Subject: Re:  Re: An approach to describing the relationships
> betweenunits-of-measure
> > It seems that kilometer, if it is to be viewed as a function, must
> > only on the unit of measure property without affecting the type of the
> > value. If the domain is Distance, the range must be Distance; the
> difference
> > is that the argument distance is expressed in some (unspecified above)
> unit
> > of measure and the result distance is expressed in kilometers.


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.