Sha256: ca434cea3c36b40bded4d0661289a06df0c5542fce34c7a996a27a1f402d1701

Contents?: true

Size: 779 Bytes

Versions: 3

Compression:

Stored size: 779 Bytes

Contents

<?xml version="1.0" encoding="UTF-8"?>
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
    
    <sch:ns uri="http://example.com/ns1" prefix="ex1"/>
    <sch:ns uri="http://example.com/ns2" prefix="ex2"/>
    <sch:ns uri="http://example.com/ns3" prefix="ex3"/>
    
    <sch:pattern>
        <sch:rule context="ex1:article">
            <sch:assert test="ex2:title">article should have a title</sch:assert>
        </sch:rule>
        <sch:rule context="ex3:sec">
            <sch:assert test="ex2:para">sec should have at least one para</sch:assert>
        </sch:rule>
        <sch:rule context="figure">
            <sch:assert test="caption">figure should have a caption</sch:assert>
        </sch:rule>
    </sch:pattern>
    
</sch:schema>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple-xspec-wrapper-0.3.0-java vendor/xspec-1.0.0/tutorial/schematron/demo-04.sch
simple-xspec-wrapper-0.2.0-java vendor/xspec-1.0.0/tutorial/schematron/demo-04.sch
simple-xspec-wrapper-0.1.0-java vendor/xspec-1.0.0/tutorial/schematron/demo-04.sch