-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
schematron.scroll
27 lines (23 loc) · 1.71 KB
/
schematron.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import ../code/conceptPage.scroll
id schematron
name Schematron
appeared 1999
tags xmlFormat
country Republic of China (Taiwan)
originCommunity Academia Sinica
example
<schema xmlns="http://purl.oclc.org/dsdl/schematron">
<pattern>
<title>Date rules</title>
<rule context="Contract">
<assert test="ContractDate < current-date()">ContractDate should be
in the past because future contracts are not allowed.</assert>
</rule>
</pattern>
</schema>
wikipedia https://en.wikipedia.org/wiki/Schematron
summary Schematron is a rule-based validation language for making assertions about the presence or absence of patterns in XML trees. It is a structural schema language expressed in XML using a small number of elements and XPath. In a typical implementation, the Schematron schema XML is processed into normal XSLT code for deployment anywhere that XSLT can be used. Schematron is capable of expressing constraints in ways that other XML schema languages like XML Schema and DTD cannot. For example, it can require that the content of an element be controlled by one of its siblings. Or it can request or require that the root element, regardless of what element that is, must have specific attributes. Schematron can also specify required relationships between multiple XML files. Constraints and content rules may be associated with "plain-English" validation error messages, allowing translation of numeric Schematron error codes into meaningful user error messages. The current ISO recommendation is Information technology, Document Schema Definition Languages (DSDL), Part 3: Rule-based validation, Schematron (ISO/IEC 19757-3:2016).
backlinksCount 35
pageId 347726
dailyPageViews 40
appeared 2016