Re: [xml-dev] Need a language whiz: An XML Schema "specifies" how data is to be structured? "describes"? "constrains"?
This is not really an answer, but I wonder whether we are being hampered by a category error, that we should be seeing validators as kinds of expert systems, now that AI is regarded positively again?
- A schema is the ruleset for an expert system that uses XML documents as inputs.
- The expert system may use grammars, regular expressions, Xpaths, simple logic, lookups, etc.
- The output of the expert system is information that the user or technology environment finds useful.
- This may include yes/no validity, implied or inferred properties such as type information, and rich or poor diagnostics.
- It is expedient if the ruleset can also be used for other purposes.
- This may include generative and data binding application.
(My original plan for Schematron was to move it in the direction of using logic by adding unification (and Michael Sperburg McQueen did something cool with Prolog if I remember), but it turned out XPath was so straightforward without it.)
Regards
Rick
On Tue, Nov 14, 2017 at 12:13 AM, Costello, Roger L. <[email protected]> wrote:
Hi Folks,
Which of the following is most accurate and why?
- An XML Schema specifies how data is to be structured.
- An XML Schema describes how data is to be structured.
- An XML Schema states how data is to be structured.
- An XML Schema constrains the structure of data.
- An XML Schema structures data.
- An XML Schema describes data.
- An XML Schema constrains data.
- Other (what?)
/Roger