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

Re: Re: Identifying the Top 10 xml Issues.. somethingwith lega


top 10 xml product
Hi Peter,

>   <Product Item> PLU&="A256" Qty#=5 Rate$=4.56</>
> ..
> 
> Somewhere, I assume, you have to encode the fact that Rate is in 
> dollars of some sort. Otherwise you cannot reliably convert it. 

Actually that is reading too much into it. The $ only defines that it is
a currency type field equivalent to the database column type currency.

I guess if I was in the UK it could be expressed like:

  <Product Item> PLU&="A256" Qty#=5 Rate£=4.56</>

in Germany with english,

  <Product Item> PLU&="A256" Qty#=5 Rateâ?¬=4,56</>

in Japan,

  <Product Item> PLU&="A256" Qty#=5 Rate¥=456</>

other countries that don't have their own character, like Malaysia who
have RM, would most likely end up having to use the $ character. My
small study sample of malaysians say this wouldn't be a problem for
them.

On Windows these days, all the locale information is available via the
windows api. So obtaining it is trivial.

If there is any actual currency conversion, showing conversion rates and
so forth, these would be at a different level. Like the UBL level for
example. We're only doing basic data recording here.

> 
> Therefore you have to have at least a partial schema or ontology CML 
> does this by having an extensible dictionary system and an extensible 
> system of units (which does not but could include currency).

None!

Just some field types that correspond to the sql field types:

 & - Text
 @ - Date
 # - Number
 ! = Integer
 $ = Currency
 ? = Logical
 % = Mime encoded binary data (not yet implemented)

Add ~ to denote an encrypted field.

I've done this all from memory. It becomes rather second nature after a
while. 

Regards

David


PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.