[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to represent a "cost" in XML?
Would you accept using the term Price? UBL has both a structured price and an unstructured price: http://docs.oasis-open.org/ubl/os-UBL-2.2/mod/summary/reports/All-UBL-2.2-Documents.html#Table-Price.Details http://docs.oasis-open.org/ubl/os-UBL-2.2/mod/summary/reports/All-UBL-2.2-Documents.html#Table-UnstructuredPrice.Details Note that UBL uses the Core Component Technical Specification 2.01 for its Core Component Types, one of which is "Amount" which includes currency: http://docs.oasis-open.org/ubl/os-UBL-2.2/mod/summary/reports/All-UBL-2.2-Documents.html#UDT-Amount.Type But from your email, although you say "cost", I wonder if simply the CCTS "Amount" will satisfy your needs. Note that "Amount" also includes an attribute for the version of the currency code list from which your code is being used. You may not be using "RON" currency, but a good example of versioning the code list is that a 2005 RON is worth over 200,000 1951 RON. Amounts can be used for costs, for prices, for discounts, for taxes, for anything with a currency ... which isn't always a "cost". In the future if you are looking for business semantics for XML or JSON, UBL defines a semantic library that is being adopted around the world for business documents: https://en.wikipedia.org/w/index.php?title=Universal_Business_Language I hope this is helpful. . . . . . Ken At 2018-09-26 21:44 +0000, Costello, Roger L. wrote: Hi Folks, -- Contact info, blog, articles, etc. http://www.CraneSoftwrights.com/x/ | Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Streaming hands-on XSLT/XPath 2 training class @ US$45 (5 hours free) |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|