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

Is XML Schema a constraint language, a specification language, or agramm

  • From: Roger L Costello <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Thu, 22 Apr 2021 12:26:45 +0000

Is XML Schema a constraint language

Hi Folks,

Thank you for your excellent inputs! To recap, here are three ways to view XML Schema:

XML Schema is a constraint language. An XML Schema states constraints that must be satisfied by instances for them to be “valid”. Determining if an instance is valid is a constraint satisfaction problem.

              Enormous technical breakthroughs in recent years have led to
             amazingly good ways to approach the satisfiability problem.
             We now have algorithms that are much more efficient than
             anyone had dared believe possible before the year 2000. These
             so-called “SAT solvers” are able to handle industrial-strength
             problems, involving millions of variables.
             
“Satisfiability and the Art of Computer Programming” by Donald Knuth

An XML Schema is a specification language. An XML Schema is a specification that informs instance document authors how to construct instances. Determining if an instance is valid is a matter of checking that the instance adheres to the specification.

              Specification languages are generally not directly executed. They
             are meant to describe the what, not the how. Indeed, it is considered
             as an error if a requirement specification is cluttered with unnecessary
             implementation detail.

             “Specification language”, Wikipedia

XML Schema is a regular tree grammar language. An application structures – parses – XML instance documents in accordance with a given grammar (XML Schema).

Parsing is the process of structuring a linear representation
             in accordance with a given grammar.
             For each grammar, there are generally an infinite number of
             linear representations (“sentences”) that can be structured with
             it. That is, a finite-sized grammar can supply structure to an infinite
             number of  sentences. This is the main strength of the grammar
             paradigm and indeed the main source of the importance of grammars:
             they summarize succinctly the structure of an infinite number of
             objects of a certain class.

             “Parsing Techniques” by Dick Grune and Ceriel J. H. Jacobs

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