Re: The <Value>_<Unit> problem

Eddie Robertsson wrote:
> 
> I want the value of productCost
> to be a space separated pair of values like:
> 
> <productCost>20 AUD</productCost>
> <productCost>10 USD</productCost>
> etc.

Wouldn't it be better to encode the components in their own tags, 
e.g. 

<productCost><amount>20</amount><currency>AUD</currency></productCost>
<productCost><amount>10</amount><currency>USD</currency></productCost>

or 

<productCost currency="AUD">20</productCost>
<productCost currency="USD">10</productCost>

I guess you need these compound strings for some purpose (display?). 
But this is a /styling/ issue - i.e. for an XSLT transformation -
and should not be embedded in the data ...  i.e. I would only ever 
expect to see a "human readable string" containing a compound value 
like this in a presentation language like XHTML, not in the data.  

Also, the "currency" should be a reference (probably an anyURI) 
to a definitive list or even a service which can give conversions.  


-- 
Simon.Cox@csiro.au    CSIRO Exploration & Mining
T:+61 8 9284 8443 F:+61 8 9389 1906 C:+61 403 302 672
http://www.ned.dem.csiro.au/research/visualisation/

======================================
We're moving 20th August 2001 to

  Australian Resources Research Centre
  26 Dick Perry Avenue
  KENSINGTON  WA  6151
  T: +61 8 6436 8500

Postal Address: 
  PO Box 1130 
  Bentley WA 6102 
  Australia
======================================

Received on Thursday, 2 August 2001 03:57:17 UTC