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

XPath as a machine-testable, machine-executable data specificationlangua

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Wed, 30 Jul 2014 20:29:07 +0000

XPath as a machine-testable

Hi Folks,

 

1. Most sentences written in natural languages are subject to differing interpretations. That is, sentences are ambiguous.

 

2. Natural language sentences are not machine-testable or machine-executable.

 

3. Data specifications are often written in a natural language.

 

4. Therefore data specifications are ambiguous, not machine-testable, and not machine-executable.

 

5. Of course, you can create a bunch of unit tests for a data specification that is written in a natural language. But the developers of those unit tests may have misinterpreted the—ambiguous—specification.

 

6. Data relationships in XML-formatted data can be expressed using XPath.

 

7. The meaning of XPath expressions have been precisely, rigorously defined. In fact, XPath expressions have been so rigorously defined, they can be processed by a machine.

 

8. XPath is a machine-executable data relationship language.

 

9. A data specification specifies data relationships.

 

10. Therefore the data relationships in a data specification can be expressed in a machine-testable and machine-executable manner using XPath.

 

11. Although it can be challenging to write correct XPath expressions, with care it is possible.

 

12. The benefit of using XPath as a data specification language is an unambiguous, rigorous, machine-testable, and machine-executable data specification.

 

Recommendations:

 

a. Format your data as XML.

 

b. Use XPath to create a machine-testable, machine-executable data specification.

 

c. Supplement the XPath expressions in the data specification with a natural language description.

 

d. Make the XPath normative and the natural language description non-normative.

 

Thoughts?

 

/Roger

 

P.S. JSON does not have an equivalent XPath language. Rather, there is a JSON Pointer language, but it is very limited and not suitable as a full-fledged machine-executable data relationship language. This gives XML an edge over JSON.

 

 



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