← Prev in month
← Prev in thread
Next in thread →
Next in month →
Re: [xml-dev] Is XML Schema a constraint language or a specification language?
My perspective is that any schema language is a constraint language. When you say "Determining if an instance is valid is a matter of checking that the instance adheres to the specification." I would say "Determining if an instance is valid is a matter of checking that the instance does not violate any of the schema's constraints." And one can say "An authoring tool directs the creation of content that does not violate any of the schema's constraints". Different uses put different spins on the activity, but at the core is the activity is guided by sets of constraints. That way you can have many sets of constraints using different technologies (W3C XML Schema, Schematron, etc.), and then selectively decide if an instance is valid against any or all sets of constraints. RELAX-NG and DTDs define constraints as pattern grammars, W3C XML Schema defines constraints as type hierarchies, and Schematron defines constraints as content assertions. Horses for courses. I hope this helps. . . . . . . Ken At 2021-04-21 12:23 +0000, Roger L Costello wrote: >Hi Folks, > >Is an XML Schema 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. > >Or, is an XML Schema 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. > >/Roger > >_______________________________________________________________________ > >XML-DEV is a publicly archived, unmoderated list hosted by OASIS >to support XML implementation and development. To minimize >spam in the archives, you must subscribe before posting. > >[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ >Or unsubscribe: >subscribe: >List archive: http://lists.xml.org/archives/xml-dev/ >List Guidelines: http://www.oasis-open.org/maillists/guidelines.php -- 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$125 (5 hours free) | Essays (UBL, XML, etc.) http://www.linkedin.com/today/author/gkholman |
← Prev in month
← Prev in thread
Next in thread →
Next in month →