[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Need a language whiz: An XML Schema "specifies" how data is to be structured? "describes"? "constrains"?
- From: "Frank Steimke" <f-steimke@berger-und-steimke.de>
- To: <xml-dev@lists.xml.org>
- Date: Fri, 5 Jan 2018 07:28:27 +0100
Greetings,
and thank you all for your comments and hints. They are indeed very helpful.
I totally agree that validation and assessment is only half the story. We can think of many reasons why we have to reject a document eventually, although it has passed the validation and assessment phases. Maybe we could think of more than one assessment phases. Some of them can only take place within the communication endpoint, they are not limited to Schema technique and may use additional resources from this endpoint (e. g. databases). This kind of assessment may tend to be more like an expert system, as Rick said.
The assessment we have in mind is only based on the exchanged document structure and content that has to be checked against rules that can be expressed within Schema language. It is not an expert system. It can be done anywhere between communication endpoints, since it does not rely on addition resources. It is especially suitable in the four corner model (e. g. PEPPOL), located at the transport layer.
We have learned from Mikes post that XSD specification uses the terms validation and assessment interchangeably, while we would like to distinguish them. One difference between these two terms is, that validation is independent from any of the involved parties, while assessment is not.
The result of validation must only depend on the instance and the Schemas (XSD an Schematron in this case). It shall objective and unambiguously tell whether I am obliged to accept the instance (since it is conformant to the agreed specification), or allowed to reject it (since it is not conformant). This may be a legal issue. That’s why we would like to have binary outcome of validation:
validation(schema1, … schemaN, instance) => xs:boolean
I am quite aware of the fact that the outcome validation engines, let it be XSD or Schematron, is a sequence of messages, some of them marked as error or warning. But there must be an objective, user-independent way to decide whether the document is valid with respect to the set of schema1 … schemaN or not.
Assessment, on the other hand, may depend on users preferences. Some users are more relaxed than others. They will accept invalid instances, as long as there are only minor errors. Distinction between minor and severe error depends on user preferences and may change with time. Assessment is not a legal issue (I hope so).
assess(schema1, … schemaN, instance, preferences) => outcome
The outcome includes, but is not limited to, a recommendation whether to accept or reject the instance.
Do you think that this is a sound and consistent way to use these two terms ?
Sincerely,
Frank
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]