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

Re: The text illusion

  • From: Ghislain Fourny <g@28.io>
  • To: "Costello, Roger L." <costello@mitre.org>
  • Date: Fri, 15 Jul 2016 16:02:42 +0200

Re:  The text illusion
Hi Roger,

I'd mention XBRL, which standardizes exactly that on top of XML... in XBRL values are associated with units and contexts (using XML), names are defined in taxonomies (it's actually XML Schema) and can be associated with types and even documentation, references, links to literature, etc.

It would look like so:
_______
<xbrli:xbrl...>

  <xbrli:unit id="feet">
    <xbrli:measure>utr:ft</xbrli:measure><!-- standard units are standardized in a registry -->
  </xbrli:unit>

  <xbrli:context id="mean-sea-level">
    ...
  </xbrli:context>

  <myns:altitude
    unitRef="feet"
    contextRef="mean-sea-level"
    decimals="0"
  >10</myns:altitude><!-- element myns:altitude is defined in the taxonomy -->

</xbrli:xbrl>
_______

Kind regards,
Ghislain



Dr. Ghislain Fourny
Chief Scientist

28msec, Inc.
Menlo Park CA | Zurich, Switzerland


On Fri, Jul 15, 2016 at 3:32 PM, Costello, Roger L. <costello@mitre.org> wrote:

Michael Kay wrote:

 

Ø  you don't know the meaning of a piece of XML

Ø  just by looking at it; you need to know the

Ø  representation conventions

 

What is the best way to inform users of an XML document of its representation conventions? One approach is to inform users by adding more stuff to the XML document, e.g.,

 

<altitude units="feet" reference="mean sea level">10</altitude>

 

But now we’ve got to inform users of the representation conventions of the new stuff.

 

Yikes! We’ve entered an infinite regress.

 

Adding more stuff to the XML document doesn’t seem to be the best way to inform users of its representation conventions.

 

What is the best way to inform users of the representation conventions used by an XML document?

 

/Roger

 




[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!

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.