forked from prushforth/validator-mapml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp.xml
16 lines (16 loc) · 895 Bytes
/
temp.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="UTF-8"?>
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"
xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema-datatypes" >
<sch:pattern>
<sch:rule context="input[@type eq 'location' or @type eq 'zoom'][@min][@max][xs:decimal(@min) > xs:decimal(@max)]">
<sch:assert test="false()">@min > @max detected</sch:assert>
</sch:rule>
</sch:rule>
</sch:pattern>
<sch:pattern>
<sch:rule context="select[@id]">
<sch:let name="forid" value="./@id"></sch:let>
<sch:assert test="count(//label[@for eq $forid]) eq 1">There must be only one label per labelled (select) element. Duplicated label for id="<sch:value-of select="$forid"/>".</sch:assert>
</sch:rule>
</sch:pattern>
</sch:schema>