tests.core.xslt-key-01.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of schematron-conformance Show documentation
Show all versions of schematron-conformance Show documentation
Schematron conformance tests
The newest version!
<testcase xmlns="tag:[email protected],2019:Schematron:Testsuite" expect="valid" id="xslt-key-01"> <label>The XSLT key element may be used before the pattern elements</label> <reference>ISO Schematron 2020: Annex C Clause 10 (xslt), Annex H Clause 11 (xslt2), Annex J Clause 11 (xslt3)</reference> <documents> <primary filename="document.xml"> <document xmlns=""/> </primary> </documents> <schemas> <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"> <xsl:key xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="index" match="*" use="'key'"/> <sch:pattern> <sch:rule context="/"> <sch:assert test="count(key('index', 'key')) > 0"/> </sch:rule> </sch:pattern> </sch:schema> </schemas> </testcase>