Re: [xml-dev] An approach to describing the relationships between units-of-measure
by David Carlisle other posts by this author
Jul 21 2003 12:21PM messages near this date
Re: [xml-dev] An approach to describing the relationships between units-of-measure
|
Re: [xml-dev] An approach to describing the relationships between units-of-measure
> {k, m | k = m * 1.62}
here and elsewhere
you mean
{(k, m) | k = m * 1.62}
^ ^
I think, that is you want sets of pairs.
(Which is why you have the <list> connstructor in the MathML
representation of this)
> expressed as xPath(???)
Xpath could express the constraint that something=1.62* something else
eg
($1/cartesian-coordinate/x/kilometer =
$2/cartesian-coordinate/x/kilometer
or
$1/cartesian-coordinate/x/kilometer =
$2/cartesian-coordinate/x/mile * 1.62
)
would return true if the x coordiunates of the locations in $1 and $2
were true, using XSLT2 you could define a function that retuned true or
false with this (and a simliar expression for y coordinate).
> If someone more skilled
> with MathML than I would care to do so, I would greatly appreciate it.)
In your first version you were building sets of pairs of real numbers
for which there is really only one mathml representation.
For this set, again the MathML set construction is fairly automatic
following on from your {} notation which, again is missing the pair
constructor
{ (c, p) | ....
^ ^
However your problem now is not to represent the set but rather the
objects in the set which you have use c.y.kilometer notation.
You could build a mathematical representation of the structired object,
and represent that in MathML, but I'm not sure that is really what you
want to do.
I think I'd be inclined to model everything as a function mapping on to
a canonical representation (say cartesian coordinates in met[re][er]s).
so
<cartesian-coordinate>
<x>
<kilometers>
...
is the mapping (x,y) -> (x/1000,y/1000)
and
<polar-coordinate>
<r>
<kilometer> ..
</r>
<theta>
...
is the mapping
(x,y) -> (r/1000 * cos theta, r/1000 * sin theta)
Then instances are equivalent if evaluating the specified function of
the supplied arguments results in teh same canonical form.
> (6340 k, 3914) in S
^
You mean (6340 , 3914) in S, I think. S consists of pairs of numbers not
dimensions.
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org>
The list archives are at http://lists.xml.org/archives/xml-dev/
To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>
Thread:
Roger L. Costello
=?ISO-8859-1?Q?Bill_de_h=D3ra?=
Emmanuil Batsis (Manos)
John Cowan
David Carlisle
Thomas B. Passin
|