- From: Eddie Robertsson <eddie@allette.com.au>
- Date: Thu, 02 Aug 2001 18:17:38 +1000
- To: Simon.Cox@csiro.au
- CC: XSD <xmlschema-dev@w3.org>
Hi Simon, I completely agree with your analysis of the problem. However, in this case I was just making up an example from a problem asked a few weeks ago on this list (or maybe xml-dev). I was just giving a better solution to what I suggested at the time. Cheers, -Eddie Simon Cox wrote: > 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 04:19:47 UTC