Sha256: 5ea4f71a2d7ef0be186f68b6f55a6480164f874d806656ab00906d15defdc1e3
Contents?: true
Size: 1.76 KB
Versions: 3
Compression:
Stored size: 1.76 KB
Contents
<?xml version="1.0" encoding="UTF-8"?> <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" queryBinding="xslt2"> <sch:ns uri="local" prefix="local"/> <xsl:function name="local:add" as="xs:integer"> <xsl:param name="a" as="xs:integer"/> <xsl:param name="b" as="xs:integer"/> <xsl:value-of select="$a + $b"/> </xsl:function> <sch:phase id="PhaseA"> <sch:active pattern="Pattern1"/> <sch:active pattern="Pattern3"/> <sch:active pattern="Pattern4"/> </sch:phase> <sch:phase id="PhaseB"> <sch:active pattern="Pattern2"/> <sch:active pattern="Pattern3"/> <sch:active pattern="Pattern4"/> </sch:phase> <sch:pattern id="Pattern1"> <sch:rule context="sec"> <sch:assert test="@sec-type" id="t1-1" role="warn"> sec element should have a sec-type attribute. </sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="Pattern2"> <sch:rule context="sec"> <sch:assert test="@sec-type" id="t2-1" role="error"> sec element should have a sec-type attribute. </sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="Pattern3"> <sch:rule context="sec"> <sch:assert test="title" id="t3-1"> section should have a title </sch:assert> </sch:rule> </sch:pattern> <sch:pattern id="Pattern4"> <sch:rule context="sec"> <sch:report test="count(p) = 1" id="t4-1" role="warn"> Short section has only one paragraph. </sch:report> </sch:rule> </sch:pattern> </sch:schema>
Version data entries
3 entries across 3 versions & 1 rubygems